diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..3b9faef --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/components/*": ["./src/components/*"], + "@/utils/*": ["./src/utils/*"], + "@/public/*": ["./public/*"], + "@/locales/*": ["./locales/*"], + "@/app/*": ["./src/app/*"] + } + } +} diff --git a/next.config.js b/next.config.js index 22a3ba3..2b08ebc 100644 --- a/next.config.js +++ b/next.config.js @@ -1,12 +1,7 @@ /** @type {import('next').NextConfig} */ -import { getLocaleList } from './src/utils/locale.js'; const nextConfig = { reactStrictMode: true, - i18n: { - locales: getLocaleList(), - defaultLocale: 'en-US', - }, images: { remotePatterns: [ { diff --git a/package-lock.json b/package-lock.json index 61d61c5..5454efb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "phosphor-react-sc": "^1.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "server-only": "^0.0.1", "sharp": "^0.32.4" }, "devDependencies": { @@ -3252,6 +3253,11 @@ "node": ">=10" } }, + "node_modules/server-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz", + "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==" + }, "node_modules/sharp": { "version": "0.32.5", "hasInstallScript": true, diff --git a/package.json b/package.json index 644d436..da71c98 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "phosphor-react-sc": "^1.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "server-only": "^0.0.1", "sharp": "^0.32.4" }, "devDependencies": { diff --git a/src/app/layout.js b/src/app/layout.js index 17f4205..88c5acb 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -1,8 +1,30 @@ +import '../styles/globals.css'; + +import { Poppins } from 'next/font/google'; +const poppins = Poppins({ + weight: ['400', '700'], + variable: '--font-poppins', + fallback: ['Arial', 'Helvetica', 'system-ui', 'sans-serif'], + subsets: ['latin'], // this is the preloaded subset, all subsets will be available +}); + +export default function RootLayout({ children }) { + return ( + +
+ {children} + + + ); +} + export const metadata = { title: { template: '%s | Pretendo Network', default: 'Pretendo Network', // a default is required when creating a template }, + description: + 'An open source Nintendo Network replacement that aims to build custom servers for the WiiU and 3DS family of consoles', manifest: '/site.webmanifest', applicationName: 'Pretendo Network', themeColor: '#1b1f3b', @@ -10,7 +32,8 @@ export const metadata = { title: 'Pretendo Network', }, openGraph: { - description: 'The React Framework for the Web', + description: + 'An open source Nintendo Network replacement that aims to build custom servers for the WiiU and 3DS family of consoles', url: 'https://pretendo.network', siteName: 'Pretendo Network', images: [ @@ -39,25 +62,3 @@ export const metadata = { 'msapplication-config': '/assets/browserconfig.xml', }, }; - -import '../styles/globals.css'; - -import { Poppins } from 'next/font/google'; -const poppins = Poppins({ - weight: ['400', '700'], - variable: '--font-poppins', - fallback: ['Arial', 'Helvetica', 'system-ui', 'sans-serif'], - subsets: ['latin'], // this is the preloaded subset, all subsets will be available -}); - -export default function RootLayout({ - // Layouts must accept a children prop. - // This will be populated with nested layouts or pages - children, -}) { - return ( - - {children} - - ); -} diff --git a/src/app/page.js b/src/app/page.js index af0ae1c..df9e028 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -1,24 +1,24 @@ -import { getLocale } from '../utils/locale.js'; +import Button from '@/components/Button/Button'; +import ButtonWidget from '@/components/ButtonWidget/ButtonWidget'; +import Caption from '@/components/Caption/Caption'; +import Faq from '@/components/Faq/Faq'; +import Hero from '@/components/Hero/Hero'; +import Logo from '@/components/Logo/Logo'; +import TeamCard from '@/components/TeamCard/TeamCard'; +import Title from '@/components/Title/Title'; +import Section from '@/components/Section/Section'; +import ShowcaseSection from '@/components/ShowcaseSection/ShowcaseSection'; -import Button from '../components/Button/Button'; -import ButtonWidget from '../components/ButtonWidget/ButtonWidget'; -import Caption from '../components/Caption/Caption'; -import Faq from '../components/Faq/Faq'; -import Hero from '../components/Hero/Hero'; -import Logo from '../components/Logo/Logo'; -import TeamCard from '../components/TeamCard/TeamCard'; -import Title from '../components/Title/Title'; -import Section from '../components/Section/Section'; -import ShowcaseSection from '../components/ShowcaseSection/ShowcaseSection'; +import { getLocale } from '@/utils/locale'; -import ImageFix from '../components/ImageFix/ImageFix'; +import ImageFix from '@/components/ImageFix/ImageFix'; import styles from './page.module.css'; -import juxtImage from '../../public/assets/images/showcase/juxt.png'; -import networkImage from '../../public/assets/images/showcase/network.png'; -import pcmouseImage from '../../public/assets/images/showcase/pcmouse.png'; -import wiiuchatImage from '../../public/assets/images/showcase/wiiuchat.png'; +import juxtImage from '@/public/assets/images/showcase/juxt.png'; +import networkImage from '@/public/assets/images/showcase/network.png'; +import pcmouseImage from '@/public/assets/images/showcase/pcmouse.png'; +import wiiuchatImage from '@/public/assets/images/showcase/wiiuchat.png'; const showcaseImages = { juxt: juxtImage, @@ -28,7 +28,7 @@ const showcaseImages = { }; export default function Home(ctx) { - const locale = getLocale('TODO'); + const { locale } = getLocale('TODO'); return (