From f09b374fb92fd3c2a403b3d0735be4cfa494b788 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Thu, 25 Apr 2024 12:04:32 +0200 Subject: [PATCH] :truck: Move foundation to its own directory --- src/app/(foundation)/page.tsx | 17 ----------------- .../components/BackgroundImage.tsx | 0 .../components/Button.tsx | 0 .../components/Container.tsx | 0 .../components/DiamondIcon.tsx | 0 .../components/Footer.tsx | 4 ++-- .../components/Header.tsx | 0 .../components/Hero.tsx | 6 +++--- .../components/Layout.tsx | 4 ++-- .../components/Logo.tsx | 0 .../components/Newsletter.tsx | 4 ++-- .../components/Projects.tsx | 6 +++--- .../components/Schedule.tsx | 4 ++-- .../components/Sponsors.tsx | 2 +- src/app/{(foundation) => foundation}/layout.tsx | 2 +- src/app/foundation/page.tsx | 17 +++++++++++++++++ src/app/not-found.tsx | 8 ++++---- 17 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 src/app/(foundation)/page.tsx rename src/app/{(foundation) => foundation}/components/BackgroundImage.tsx (100%) rename src/app/{(foundation) => foundation}/components/Button.tsx (100%) rename src/app/{(foundation) => foundation}/components/Container.tsx (100%) rename src/app/{(foundation) => foundation}/components/DiamondIcon.tsx (100%) rename src/app/{(foundation) => foundation}/components/Footer.tsx (87%) rename src/app/{(foundation) => foundation}/components/Header.tsx (100%) rename src/app/{(foundation) => foundation}/components/Hero.tsx (87%) rename src/app/{(foundation) => foundation}/components/Layout.tsx (67%) rename src/app/{(foundation) => foundation}/components/Logo.tsx (100%) rename src/app/{(foundation) => foundation}/components/Newsletter.tsx (96%) rename src/app/{(foundation) => foundation}/components/Projects.tsx (96%) rename src/app/{(foundation) => foundation}/components/Schedule.tsx (95%) rename src/app/{(foundation) => foundation}/components/Sponsors.tsx (97%) rename src/app/{(foundation) => foundation}/layout.tsx (67%) create mode 100644 src/app/foundation/page.tsx diff --git a/src/app/(foundation)/page.tsx b/src/app/(foundation)/page.tsx deleted file mode 100644 index adff97d..0000000 --- a/src/app/(foundation)/page.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { Hero } from '@/app/(foundation)/components/Hero' -import { Newsletter } from '@/app/(foundation)/components/Newsletter' -import { Projects } from '@/app/(foundation)/components/Projects' -import { Schedule } from '@/app/(foundation)/components/Schedule' -import { Sponsors } from '@/app/(foundation)/components/Sponsors' - -export default function Home() { - return ( - <> - - - - - - - ) -} diff --git a/src/app/(foundation)/components/BackgroundImage.tsx b/src/app/foundation/components/BackgroundImage.tsx similarity index 100% rename from src/app/(foundation)/components/BackgroundImage.tsx rename to src/app/foundation/components/BackgroundImage.tsx diff --git a/src/app/(foundation)/components/Button.tsx b/src/app/foundation/components/Button.tsx similarity index 100% rename from src/app/(foundation)/components/Button.tsx rename to src/app/foundation/components/Button.tsx diff --git a/src/app/(foundation)/components/Container.tsx b/src/app/foundation/components/Container.tsx similarity index 100% rename from src/app/(foundation)/components/Container.tsx rename to src/app/foundation/components/Container.tsx diff --git a/src/app/(foundation)/components/DiamondIcon.tsx b/src/app/foundation/components/DiamondIcon.tsx similarity index 100% rename from src/app/(foundation)/components/DiamondIcon.tsx rename to src/app/foundation/components/DiamondIcon.tsx diff --git a/src/app/(foundation)/components/Footer.tsx b/src/app/foundation/components/Footer.tsx similarity index 87% rename from src/app/(foundation)/components/Footer.tsx rename to src/app/foundation/components/Footer.tsx index 5f04498..0b124f0 100644 --- a/src/app/(foundation)/components/Footer.tsx +++ b/src/app/foundation/components/Footer.tsx @@ -1,5 +1,5 @@ -import { Container } from '@/app/(foundation)/components/Container' -import { Logo } from '@/app/(foundation)/components/Logo' +import { Container } from '@/app/foundation/components/Container' +import { Logo } from '@/app/foundation/components/Logo' import { IconBrandGithub, IconBrandLinkedin } from '@tabler/icons-react' export function Footer() { diff --git a/src/app/(foundation)/components/Header.tsx b/src/app/foundation/components/Header.tsx similarity index 100% rename from src/app/(foundation)/components/Header.tsx rename to src/app/foundation/components/Header.tsx diff --git a/src/app/(foundation)/components/Hero.tsx b/src/app/foundation/components/Hero.tsx similarity index 87% rename from src/app/(foundation)/components/Hero.tsx rename to src/app/foundation/components/Hero.tsx index 8228422..db6746a 100644 --- a/src/app/(foundation)/components/Hero.tsx +++ b/src/app/foundation/components/Hero.tsx @@ -1,6 +1,6 @@ -import { BackgroundImage } from '@/app/(foundation)/components/BackgroundImage' -import { Button } from '@/app/(foundation)/components/Button' -import { Container } from '@/app/(foundation)/components/Container' +import { BackgroundImage } from '@/app/foundation/components/BackgroundImage' +import { Button } from '@/app/foundation/components/Button' +import { Container } from '@/app/foundation/components/Container' export function Hero() { return ( diff --git a/src/app/(foundation)/components/Layout.tsx b/src/app/foundation/components/Layout.tsx similarity index 67% rename from src/app/(foundation)/components/Layout.tsx rename to src/app/foundation/components/Layout.tsx index 0dc7460..5d8a7ec 100644 --- a/src/app/(foundation)/components/Layout.tsx +++ b/src/app/foundation/components/Layout.tsx @@ -1,5 +1,5 @@ -import { Footer } from '@/app/(foundation)/components/Footer' -import { Header } from '@/app/(foundation)/components/Header' +import { Footer } from '@/app/foundation/components/Footer' +import { Header } from '@/app/foundation/components/Header' export function Layout({ children, diff --git a/src/app/(foundation)/components/Logo.tsx b/src/app/foundation/components/Logo.tsx similarity index 100% rename from src/app/(foundation)/components/Logo.tsx rename to src/app/foundation/components/Logo.tsx diff --git a/src/app/(foundation)/components/Newsletter.tsx b/src/app/foundation/components/Newsletter.tsx similarity index 96% rename from src/app/(foundation)/components/Newsletter.tsx rename to src/app/foundation/components/Newsletter.tsx index 568aecc..5fb91ad 100644 --- a/src/app/(foundation)/components/Newsletter.tsx +++ b/src/app/foundation/components/Newsletter.tsx @@ -1,5 +1,5 @@ -import { Button } from '@/app/(foundation)/components/Button' -import { Container } from '@/app/(foundation)/components/Container' +import { Button } from '@/app/foundation/components/Button' +import { Container } from '@/app/foundation/components/Container' function ArrowRightIcon(props: React.ComponentPropsWithoutRef<'svg'>) { return ( diff --git a/src/app/(foundation)/components/Projects.tsx b/src/app/foundation/components/Projects.tsx similarity index 96% rename from src/app/(foundation)/components/Projects.tsx rename to src/app/foundation/components/Projects.tsx index 1e715d9..7ada1f0 100644 --- a/src/app/(foundation)/components/Projects.tsx +++ b/src/app/foundation/components/Projects.tsx @@ -1,8 +1,8 @@ 'use client' -import { BackgroundImage } from '@/app/(foundation)/components/BackgroundImage' -import { Button } from '@/app/(foundation)/components/Button' -import { Container } from '@/app/(foundation)/components/Container' +import { BackgroundImage } from '@/app/foundation/components/BackgroundImage' +import { Button } from '@/app/foundation/components/Button' +import { Container } from '@/app/foundation/components/Container' import { IconChevronRight } from '@tabler/icons-react' interface Day { diff --git a/src/app/(foundation)/components/Schedule.tsx b/src/app/foundation/components/Schedule.tsx similarity index 95% rename from src/app/(foundation)/components/Schedule.tsx rename to src/app/foundation/components/Schedule.tsx index 57d679a..134c59d 100644 --- a/src/app/(foundation)/components/Schedule.tsx +++ b/src/app/foundation/components/Schedule.tsx @@ -1,7 +1,7 @@ 'use client' -import { Button } from '@/app/(foundation)/components/Button' -import { Container } from '@/app/(foundation)/components/Container' +import { Button } from '@/app/foundation/components/Button' +import { Container } from '@/app/foundation/components/Container' export function Schedule() { return ( diff --git a/src/app/(foundation)/components/Sponsors.tsx b/src/app/foundation/components/Sponsors.tsx similarity index 97% rename from src/app/(foundation)/components/Sponsors.tsx rename to src/app/foundation/components/Sponsors.tsx index b1bb7ba..f7cfa4d 100644 --- a/src/app/(foundation)/components/Sponsors.tsx +++ b/src/app/foundation/components/Sponsors.tsx @@ -1,6 +1,6 @@ import Image from 'next/image' -import { Container } from '@/app/(foundation)/components/Container' +import { Container } from '@/app/foundation/components/Container' const sponsors = [ { diff --git a/src/app/(foundation)/layout.tsx b/src/app/foundation/layout.tsx similarity index 67% rename from src/app/(foundation)/layout.tsx rename to src/app/foundation/layout.tsx index 4089060..d14980d 100644 --- a/src/app/(foundation)/layout.tsx +++ b/src/app/foundation/layout.tsx @@ -1,4 +1,4 @@ -import { Layout } from '@/app/(foundation)/components/Layout' +import { Layout } from '@/app/foundation/components/Layout' export default function MainLayout({ children, diff --git a/src/app/foundation/page.tsx b/src/app/foundation/page.tsx new file mode 100644 index 0000000..6d723c5 --- /dev/null +++ b/src/app/foundation/page.tsx @@ -0,0 +1,17 @@ +import { Hero } from '@/app/foundation/components/Hero' +import { Newsletter } from '@/app/foundation/components/Newsletter' +import { Projects } from '@/app/foundation/components/Projects' +import { Schedule } from '@/app/foundation/components/Schedule' +import { Sponsors } from '@/app/foundation/components/Sponsors' + +export default function Home() { + return ( + <> + + + + + + + ) +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index e6d5bf2..78f637b 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,7 +1,7 @@ -import { BackgroundImage } from '@/app/(foundation)/components/BackgroundImage' -import { Button } from '@/app/(foundation)/components/Button' -import { Container } from '@/app/(foundation)/components/Container' -import { Layout } from '@/app/(foundation)/components/Layout' +import { BackgroundImage } from '@/app/foundation/components/BackgroundImage' +import { Button } from '@/app/foundation/components/Button' +import { Container } from '@/app/foundation/components/Container' +import { Layout } from '@/app/foundation/components/Layout' export default function NotFound() { return (