From d5e497d15dace78e5b5bbd933b85985ba7d58a4c Mon Sep 17 00:00:00 2001 From: Michael Brusegard <56915010+michaelbrusegard@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:49:54 +0100 Subject: [PATCH] docs: added documentation links to README.md --- README.md | 9 + src/app/[locale]/(layout)/about/page.tsx | 2 +- src/app/[locale]/(layout)/events/page.tsx | 2 +- src/app/[locale]/(layout)/news/page.tsx | 2 +- src/app/[locale]/layout.tsx | 2 +- src/app/layout.tsx | 4 +- src/components/layout/Header.tsx | 4 +- src/components/layout/LogoLink.tsx | 4 +- .../old/context/modal/ModalContext.ts | 14 -- src/components/old/context/modal/ModalHook.ts | 11 -- .../old/context/modal/ModalProvider.tsx | 74 -------- src/components/old/modals/AuthModal.tsx | 32 ---- src/components/old/pages/Home.tsx | 49 ----- src/components/old/structure/Content.tsx | 34 ---- src/components/old/structure/Footer.tsx | 82 --------- src/components/old/structure/Header.tsx | 44 ----- src/components/old/structure/Modal.tsx | 51 ----- src/components/old/structure/Page.tsx | 18 -- src/{components => }/design/Field.tsx | 174 +++++++++--------- src/{components => }/design/TypeWriter.tsx | 0 src/styles/globals.css | 8 + 21 files changed, 108 insertions(+), 512 deletions(-) delete mode 100644 src/components/old/context/modal/ModalContext.ts delete mode 100644 src/components/old/context/modal/ModalHook.ts delete mode 100644 src/components/old/context/modal/ModalProvider.tsx delete mode 100644 src/components/old/modals/AuthModal.tsx delete mode 100644 src/components/old/pages/Home.tsx delete mode 100644 src/components/old/structure/Content.tsx delete mode 100644 src/components/old/structure/Footer.tsx delete mode 100644 src/components/old/structure/Header.tsx delete mode 100644 src/components/old/structure/Modal.tsx delete mode 100644 src/components/old/structure/Page.tsx rename src/{components => }/design/Field.tsx (50%) rename src/{components => }/design/TypeWriter.tsx (100%) diff --git a/README.md b/README.md index 6a31951..87b7dea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,14 @@ ## Getting Started +Here is a list of documentation to help you get started: + +- [Next.js](https://nextjs.org/docs) - Framework for routing and server-side rendering +- [React](https://react.dev/reference/react) - Library for building user interfaces +- [Tailwind CSS](https://tailwindcss.com/docs) - Styling library +- [Shadcn/ui](https://ui.shadcn.com/docs) - Reusable UI components +- [Lucide](https://lucide.dev/icons/) - Icons library +- [Next-intl](https://next-intl-docs.vercel.app/) - Internationalization library + First, install dependencies: ```bash diff --git a/src/app/[locale]/(layout)/about/page.tsx b/src/app/[locale]/(layout)/about/page.tsx index 62e11ac..e6f0dae 100644 --- a/src/app/[locale]/(layout)/about/page.tsx +++ b/src/app/[locale]/(layout)/about/page.tsx @@ -1,6 +1,6 @@ import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; -export async function generatemeta({ +export async function generateMetadata({ params: { locale }, }: { params: { locale: string }; diff --git a/src/app/[locale]/(layout)/events/page.tsx b/src/app/[locale]/(layout)/events/page.tsx index c897d58..06f2b35 100644 --- a/src/app/[locale]/(layout)/events/page.tsx +++ b/src/app/[locale]/(layout)/events/page.tsx @@ -1,6 +1,6 @@ import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; -export async function generatemeta({ +export async function generateMetadata({ params: { locale }, }: { params: { locale: string }; diff --git a/src/app/[locale]/(layout)/news/page.tsx b/src/app/[locale]/(layout)/news/page.tsx index c0849f0..864f40d 100644 --- a/src/app/[locale]/(layout)/news/page.tsx +++ b/src/app/[locale]/(layout)/news/page.tsx @@ -1,6 +1,6 @@ import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; -export async function generatemeta({ +export async function generateMetadata({ params: { locale }, }: { params: { locale: string }; diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 7e8e7e3..095affa 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -30,7 +30,7 @@ export function generateStaticParams() { return locales.map((locale) => ({ locale })); } -export async function generatemeta({ +export async function generateMetadata({ params: { locale }, }: Omit) { const t = await getTranslations({ locale, namespace: 'meta' }); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ff155bc..b331630 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,6 @@ -import { type ReactNode } from "react"; +import { type ReactNode } from 'react'; -import "@/styles/globals.css"; +import '@/styles/globals.css'; type Props = { children: ReactNode; diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index e8920eb..fc7ae25 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -18,9 +18,7 @@ function Header() { events={t('events')} about={t('about')} /> -
- -
+