chore: updated dependencies
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
enabled: process.env.ANALYZE === 'true',
|
||||
openAnalyzer: false
|
||||
|
||||
+23
-23
@@ -7,46 +7,46 @@
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"postinstall": "husky install"
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.10.4",
|
||||
"@emotion/styled": "^11.10.4",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.2.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
||||
"@emotion/react": "^11.11.1",
|
||||
"@emotion/styled": "^11.11.0",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@mui/material": "^5.10.6",
|
||||
"formik": "^2.2.9",
|
||||
"gsap": "^3.11.1",
|
||||
"@mui/material": "^5.14.9",
|
||||
"formik": "^2.4.4",
|
||||
"gsap": "^3.12.2",
|
||||
"isomorphic-fetch": "^3.0.0",
|
||||
"next": "12.3.1",
|
||||
"next-connect": "^0.13.0",
|
||||
"next": "13.4.19",
|
||||
"next-connect": "^1.0.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"sharp": "^0.31.0",
|
||||
"swiper": "^8.4.2",
|
||||
"yup": "^0.32.11"
|
||||
"sharp": "^0.32.5",
|
||||
"swiper": "^10.2.0",
|
||||
"yup": "^1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.1.2",
|
||||
"@commitlint/config-conventional": "^17.1.0",
|
||||
"@emotion/eslint-plugin": "^11.10.0",
|
||||
"@next/bundle-analyzer": "^12.3.1",
|
||||
"@commitlint/cli": "^17.7.1",
|
||||
"@commitlint/config-conventional": "^17.7.0",
|
||||
"@emotion/eslint-plugin": "^11.11.0",
|
||||
"@next/bundle-analyzer": "^13.4.19",
|
||||
"@types/isomorphic-fetch": "^0.0.36",
|
||||
"@types/node": "18.7.18",
|
||||
"@types/react": "18.0.20",
|
||||
"@types/node": "20.6.0",
|
||||
"@types/react": "18.2.21",
|
||||
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
||||
"@typescript-eslint/parser": "^5.38.0",
|
||||
"eslint": "^8.23.1",
|
||||
"eslint-config-next": "12.3.1",
|
||||
"eslint-config-next": "latest",
|
||||
"eslint-config-standard": "^17.0.0",
|
||||
"eslint-plugin-import": "^2.25.2",
|
||||
"eslint-plugin-n": "^15.2.5",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^6.0.1",
|
||||
"eslint-plugin-react": "^7.31.8",
|
||||
"husky": "^8.0.1",
|
||||
"typescript": "4.8.3"
|
||||
"husky": "^8.0.3",
|
||||
"typescript": "5.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Container, Paper, Typography } from '@mui/material'
|
||||
import NextLink from 'next/link'
|
||||
import MuiLink from '@mui/material/Link'
|
||||
import NextLink from 'next/link'
|
||||
|
||||
import { FooterColumn } from '@interfaces'
|
||||
import { faAngleRight } from '@fortawesome/free-solid-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { FooterColumn } from '@interfaces'
|
||||
|
||||
const Footer = () => {
|
||||
const columns: FooterColumn[] = [
|
||||
@@ -50,11 +50,12 @@ const Footer = () => {
|
||||
{column.links.map((link, index) => (
|
||||
<li key={index}>
|
||||
<FontAwesomeIcon icon={faAngleRight} listItem />
|
||||
<NextLink href={link.url} passHref>
|
||||
<MuiLink>
|
||||
<MuiLink
|
||||
component={NextLink}
|
||||
href={link.url}
|
||||
>
|
||||
{link.label}
|
||||
</MuiLink>
|
||||
</NextLink>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { AppBar, Box, Container, IconButton, NoSsr, ListItemButton, Divider } from '@mui/material'
|
||||
import NextLink from 'next/link'
|
||||
import { AppBar, Box, Container, Divider, IconButton, ListItemButton, NoSsr } from '@mui/material'
|
||||
import dynamic from 'next/dynamic'
|
||||
import NextLink from 'next/link'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
@@ -65,12 +65,10 @@ const Header = () => {
|
||||
>
|
||||
<div>
|
||||
<NextLink href="/">
|
||||
<a>
|
||||
<EntGamers
|
||||
width="40"
|
||||
height="40"
|
||||
/>
|
||||
</a>
|
||||
</NextLink>
|
||||
</div>
|
||||
<div
|
||||
@@ -120,14 +118,14 @@ const Header = () => {
|
||||
sx={{ paddingTop: '0' }}
|
||||
>
|
||||
{MenuItems.map(({ label, url }) => (
|
||||
<NextLink key={`menu-item-${label}`} href={url} passHref>
|
||||
<ListItemButton
|
||||
component="a"
|
||||
key={`menu-item-${label}`}
|
||||
href={url}
|
||||
component={NextLink}
|
||||
selected={router.pathname === url}
|
||||
>
|
||||
<ListItemText primary={label} />
|
||||
</ListItemButton>
|
||||
</NextLink>
|
||||
))}
|
||||
</List>
|
||||
</Box>
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import gsap, { Linear } from 'gsap'
|
||||
import ScrollTrigger from 'gsap/dist/ScrollTrigger'
|
||||
import ScrollToPlugin from 'gsap/dist/ScrollToPlugin'
|
||||
import { SocialSliderProps } from '@components/pages/home/socialNetworks/SocialSlider'
|
||||
import { Container, Paper } from '@mui/material'
|
||||
import gsap, { Linear } from 'gsap'
|
||||
import ScrollToPlugin from 'gsap/dist/ScrollToPlugin'
|
||||
import ScrollTrigger from 'gsap/dist/ScrollTrigger'
|
||||
import { FC, useEffect, useRef } from 'react'
|
||||
|
||||
import SocialSlider, { SocialSliderProps } from '@components/pages/home/socialNetworks/SocialSlider'
|
||||
|
||||
gsap.registerPlugin(ScrollTrigger, ScrollToPlugin)
|
||||
|
||||
export interface SocialNetworksProps {
|
||||
socialNetworks: SocialSliderProps['slides']
|
||||
}
|
||||
|
||||
const SocialNetworks: FC<SocialNetworksProps> = ({ socialNetworks }) => {
|
||||
const SocialNetworks: FC<SocialNetworksProps> = () => {
|
||||
const layer01 = useRef<HTMLDivElement| null>(null)
|
||||
const layer02 = useRef<HTMLDivElement| null>(null)
|
||||
const layer03 = useRef<HTMLDivElement| null>(null)
|
||||
@@ -87,9 +86,9 @@ const SocialNetworks: FC<SocialNetworksProps> = ({ socialNetworks }) => {
|
||||
component={Container}
|
||||
variant='glass'
|
||||
>
|
||||
<SocialSlider
|
||||
{/* <SocialSlider
|
||||
slides={socialNetworks}
|
||||
/>
|
||||
/> */}
|
||||
</Paper>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Container, Button, Typography } from '@mui/material'
|
||||
import { Button, Container, Typography } from '@mui/material'
|
||||
import NextLink from 'next/link'
|
||||
import { FC } from 'react'
|
||||
|
||||
@@ -57,24 +57,22 @@ const Team: FC<TeamProps> = ({ title, teamMembers, joinTeamButtonText, viewTeamB
|
||||
marginBlock: '16px'
|
||||
}}
|
||||
>
|
||||
<NextLink href="/equipo" passHref>
|
||||
<Button
|
||||
href="/equipo"
|
||||
variant="contained"
|
||||
color="info"
|
||||
component="a"
|
||||
component={NextLink}
|
||||
>
|
||||
{viewTeamButtonText}
|
||||
</Button>
|
||||
</NextLink>
|
||||
<NextLink href="/equipo/unirse" passHref>
|
||||
<Button
|
||||
href="/equipo/unirse"
|
||||
variant="contained"
|
||||
color="success"
|
||||
component="a"
|
||||
component={NextLink}
|
||||
>
|
||||
{joinTeamButtonText}
|
||||
</Button>
|
||||
</NextLink>
|
||||
</div>
|
||||
</Container>
|
||||
</div>
|
||||
|
||||
@@ -4,12 +4,12 @@ import { Avatar, Card, CardContent, IconButton, Tooltip, Typography } from '@mui
|
||||
import NextImage from 'next/image'
|
||||
import { FC } from 'react'
|
||||
|
||||
import { SocialLink } from '@interfaces'
|
||||
import { faGlobe } from '@fortawesome/free-solid-svg-icons'
|
||||
import BadgeBook from '@assets/images/gaming/BadgeBook.png'
|
||||
import BadgeShield from '@assets/images/gaming/BadgeShield.png'
|
||||
import BadgeSword from '@assets/images/gaming/BadgeSword.png'
|
||||
import ButtonA from '@assets/images/gaming/ButtonA.png'
|
||||
import { faGlobe } from '@fortawesome/free-solid-svg-icons'
|
||||
import { SocialLink } from '@interfaces'
|
||||
|
||||
export interface ProfileCardProps {
|
||||
userName: string
|
||||
@@ -47,6 +47,7 @@ const ProfileCard: FC<ProfileCardProps> = ({ avatar, biography, socialNetworks,
|
||||
>
|
||||
<NextImage
|
||||
src={role === 'moderator' ? BadgeShield : role === 'collaborator' ? BadgeBook : BadgeSword}
|
||||
alt={role}
|
||||
width={30}
|
||||
height={30}
|
||||
/>
|
||||
@@ -62,6 +63,7 @@ const ProfileCard: FC<ProfileCardProps> = ({ avatar, biography, socialNetworks,
|
||||
>
|
||||
<NextImage
|
||||
src={ButtonA}
|
||||
alt="Button A"
|
||||
width={30}
|
||||
height={30}
|
||||
/>
|
||||
@@ -90,6 +92,7 @@ const ProfileCard: FC<ProfileCardProps> = ({ avatar, biography, socialNetworks,
|
||||
>
|
||||
<NextImage
|
||||
src={avatar}
|
||||
alt={userName}
|
||||
width={150}
|
||||
height={150}
|
||||
/>
|
||||
|
||||
+2
-3
@@ -34,17 +34,16 @@ const Page404 = () => {
|
||||
>
|
||||
El árbol que buscas no está aquí
|
||||
</Typography>
|
||||
<NextLink href="/">
|
||||
<Button
|
||||
sx={{
|
||||
marginBlock: 1
|
||||
}}
|
||||
component="a"
|
||||
href="/"
|
||||
component={NextLink}
|
||||
variant="contained"
|
||||
>
|
||||
Volver al inicio
|
||||
</Button>
|
||||
</NextLink>
|
||||
</Box>
|
||||
</Contained>
|
||||
)
|
||||
|
||||
+8
-11
@@ -3,9 +3,9 @@ import { GetStaticProps, InferGetStaticPropsType } from 'next'
|
||||
import NextLink from 'next/link'
|
||||
import { FC } from 'react'
|
||||
|
||||
import ProfileCard, { ProfileCardProps } from '@components/profiles/ProfileCard'
|
||||
import Contained from '@components/layouts/Contained'
|
||||
import Seo from '@components/Seo'
|
||||
import Contained from '@components/layouts/Contained'
|
||||
import ProfileCard, { ProfileCardProps } from '@components/profiles/ProfileCard'
|
||||
import { EquipoPageProps } from '@interfaces'
|
||||
|
||||
export const getStaticProps: GetStaticProps<EquipoPageProps> = async () => {
|
||||
@@ -103,15 +103,14 @@ const Equipo: FC<InferGetStaticPropsType<typeof getStaticProps>> = (
|
||||
marginBlock: 2
|
||||
}}
|
||||
>
|
||||
<NextLink href="/equipo/unirse" passHref>
|
||||
<Button
|
||||
href="/equipo/unirse"
|
||||
variant="contained"
|
||||
color="primary"
|
||||
component="a"
|
||||
component={NextLink}
|
||||
>
|
||||
Quiero ser administrador
|
||||
</Button>
|
||||
</NextLink>
|
||||
</Box>
|
||||
<Typography variant="h2" align="center" gutterBottom >
|
||||
{moderatorsTitle}
|
||||
@@ -157,15 +156,14 @@ const Equipo: FC<InferGetStaticPropsType<typeof getStaticProps>> = (
|
||||
marginBlock: 2
|
||||
}}
|
||||
>
|
||||
<NextLink href="/equipo/unirse" passHref>
|
||||
<Button
|
||||
href="/equipo/unirse"
|
||||
variant="contained"
|
||||
color="primary"
|
||||
component="a"
|
||||
component={NextLink}
|
||||
>
|
||||
Quiero ser moderador
|
||||
</Button>
|
||||
</NextLink>
|
||||
</Box>
|
||||
<Typography variant="h2" align="center" gutterBottom >
|
||||
{collaboratorsTitle}
|
||||
@@ -211,15 +209,14 @@ const Equipo: FC<InferGetStaticPropsType<typeof getStaticProps>> = (
|
||||
marginBlock: 2
|
||||
}}
|
||||
>
|
||||
<NextLink href="/equipo/unirse" passHref>
|
||||
<Button
|
||||
href="/equipo/unirse"
|
||||
variant="contained"
|
||||
color="primary"
|
||||
component="a"
|
||||
component={NextLink}
|
||||
>
|
||||
Quiero ser colaborador
|
||||
</Button>
|
||||
</NextLink>
|
||||
</Box>
|
||||
|
||||
</Contained>
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
import type { NextPage } from 'next'
|
||||
|
||||
import Seo from '@components/Seo'
|
||||
import Footer from '@components/layouts/Footer'
|
||||
import Header from '@components/layouts/Header'
|
||||
import Clanes from '@components/pages/home/Clanes'
|
||||
import Hero from '@components/pages/home/Hero'
|
||||
import SocialNetworks from '@components/pages/home/SocialNetworks'
|
||||
import Team from '@components/pages/home/Team'
|
||||
import Header from '@components/layouts/Header'
|
||||
import Footer from '@components/layouts/Footer'
|
||||
import Seo from '@components/Seo'
|
||||
|
||||
const Home: NextPage = () => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user