diff --git a/.dockerignore b/.dockerignore index ba8f9ed..33bf32b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ node_modules/ .next/ .env.local -.env.template -src/old_pages/ \ No newline at end of file +.env.template \ No newline at end of file diff --git a/src/components/sections/home/Hero.tsx b/src/components/sections/home/Hero.tsx index ee8e1b6..748955f 100644 --- a/src/components/sections/home/Hero.tsx +++ b/src/components/sections/home/Hero.tsx @@ -4,7 +4,8 @@ import IconLink from "@/components/atoms/IconLink"; import { FacebookIco, TwitterIcon, GithubIcon, YoutubeIcon } from "@/components/icons/social"; import Image from "next/image"; import {fetchAPI, getStrapiURL} from "@/utils/api"; -export default function Hero({data}) { +export default async function Hero({data}) { + //const members = await fetchAPI("/api/members") return (
diff --git a/src/old_pages/_app.tsx b/src/old_pages/_app.tsx deleted file mode 100644 index 2a4a45d..0000000 --- a/src/old_pages/_app.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import '@/styles/globals.css' -import type { AppProps } from 'next/app' -import AppLayout from '@/layouts/AppLayout' -import Head from 'next/head' - -import localFont from 'next/font/local' -export const poppins = localFont({ - src: [ - { - path: './../fonts/Poppins-Regular.ttf', - weight: '400', - style: 'normal', - }, - { - path: './../fonts/Poppins-Medium.ttf', - weight: '500', - style: 'normal', - }, - { - path: './../fonts/Poppins-SemiBold.ttf', - weight: '600', - style: 'normal', - }, - { - path: './../fonts/Poppins-Bold.ttf', - weight: '700', - style: 'normal', - }, - ] -}) - -export default function App({ Component, pageProps }: AppProps) { - return <> - - - - - - - - - - -} diff --git a/src/old_pages/_document.tsx b/src/old_pages/_document.tsx deleted file mode 100644 index 85da388..0000000 --- a/src/old_pages/_document.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { Html, Head, Main, NextScript } from 'next/document' - - -export default function Document() { - return ( - - - -
- - - - ) -} diff --git a/src/old_pages/faq.tsx b/src/old_pages/faq.tsx index 3c84d42..5c590a0 100644 --- a/src/old_pages/faq.tsx +++ b/src/old_pages/faq.tsx @@ -3,7 +3,7 @@ import Question from "@/components/atoms/question"; import PageHeader from "@/components/elements/PageHeader"; import Head from "next/head"; import { useCallback, useState } from "react"; -import AppContainer from "../app/components/atoms/AppContainer"; +import AppContainer from "@/components/atoms/AppContainer"; export default function Faq() { const [open, setOpen] = useState("")