From 36db958929b78464f8e8a25d6840501e601eb3f7 Mon Sep 17 00:00:00 2001 From: OneRandomGithubUser <70461479+Anantu05@users.noreply.github.com> Date: Fri, 20 Oct 2023 23:52:44 +0530 Subject: [PATCH 01/15] Initial commit Migrated from pages to app router --- .../account.tsx => app/account/page.tsx} | 1 + src/{pages/index.tsx => app/index/page.tsx} | 1 + src/app/layout.tsx | 54 +++++++++++++++++++ src/{pages/login.tsx => app/login/page.tsx} | 3 +- src/{pages/logout.tsx => app/logout/page.tsx} | 4 +- src/{pages/404.tsx => app/not-found.tsx} | 0 src/{pages => app/search}/search.tsx | 0 src/components/Seo.tsx | 7 ++- src/pages/_app.tsx | 15 ------ src/pages/_document.tsx | 21 -------- tailwind.config.ts | 2 +- tsconfig.json | 9 +++- 12 files changed, 72 insertions(+), 45 deletions(-) rename src/{pages/account.tsx => app/account/page.tsx} (95%) rename src/{pages/index.tsx => app/index/page.tsx} (99%) create mode 100644 src/app/layout.tsx rename src/{pages/login.tsx => app/login/page.tsx} (95%) rename src/{pages/logout.tsx => app/logout/page.tsx} (87%) rename src/{pages/404.tsx => app/not-found.tsx} (100%) rename src/{pages => app/search}/search.tsx (100%) delete mode 100644 src/pages/_app.tsx delete mode 100644 src/pages/_document.tsx diff --git a/src/pages/account.tsx b/src/app/account/page.tsx similarity index 95% rename from src/pages/account.tsx rename to src/app/account/page.tsx index 90aa73a..7df893e 100644 --- a/src/pages/account.tsx +++ b/src/app/account/page.tsx @@ -1,3 +1,4 @@ +'use client'; import * as React from 'react'; import Seo from '@/components/Seo'; diff --git a/src/pages/index.tsx b/src/app/index/page.tsx similarity index 99% rename from src/pages/index.tsx rename to src/app/index/page.tsx index e3de527..66c38ce 100644 --- a/src/pages/index.tsx +++ b/src/app/index/page.tsx @@ -1,3 +1,4 @@ +'use client'; import * as React from 'react'; import Carousel, { CarouselProps } from '@/components/carousel/Carousel'; diff --git a/src/app/layout.tsx b/src/app/layout.tsx new file mode 100644 index 0000000..6eb3ed1 --- /dev/null +++ b/src/app/layout.tsx @@ -0,0 +1,54 @@ +import React from 'react'; + +import '../styles/globals.css'; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + +
+ + + {children} + + ); +} + +/*return ( + + + + + + +