From ee5d1a76b9307c468ab554f9bd558e65af14b37d Mon Sep 17 00:00:00 2001 From: Rudra Sankha Sinhamahapatra Date: Sun, 3 Nov 2024 17:59:49 +0530 Subject: [PATCH] folder structure refactored --- app/layout.tsx | 2 +- app/page.tsx | 12 +-- components/Pricing/GrowthCard.tsx | 2 +- components/Pricing/MvpCard.tsx | 2 +- components/Pricing/StartupCard.tsx | 89 ++++++++++--------- components/Team/Team.tsx | 2 +- components/{ => main/accordian}/Accordian.tsx | 4 +- .../{ => main/accordian}/AccordianItem.tsx | 0 components/{ => main/bottom}/Bottom.tsx | 2 +- components/{ => main/contact}/Contact.tsx | 4 +- components/main/{ => hero}/Hero.tsx | 2 +- components/{ => main/navbar}/Navbar.tsx | 2 +- components/{ => main/services}/Services.tsx | 4 +- components/{ => main/team}/Team.tsx | 4 +- components/{ => shared}/Container.tsx | 0 components/{ => shared}/Topic.tsx | 0 16 files changed, 67 insertions(+), 64 deletions(-) rename components/{ => main/accordian}/Accordian.tsx (88%) rename components/{ => main/accordian}/AccordianItem.tsx (100%) rename components/{ => main/bottom}/Bottom.tsx (97%) rename components/{ => main/contact}/Contact.tsx (98%) rename components/main/{ => hero}/Hero.tsx (98%) rename components/{ => main/navbar}/Navbar.tsx (98%) rename components/{ => main/services}/Services.tsx (96%) rename components/{ => main/team}/Team.tsx (97%) rename components/{ => shared}/Container.tsx (100%) rename components/{ => shared}/Topic.tsx (100%) diff --git a/app/layout.tsx b/app/layout.tsx index 31c355c..b5ff6d2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { Space_Grotesk } from 'next/font/google'; import "./globals.css"; -import Navbar from "@/components/Navbar"; +import Navbar from "@/components/main/navbar/Navbar"; export const metadata: Metadata = { title: "Create Next App", diff --git a/app/page.tsx b/app/page.tsx index 947d4cd..fb430f3 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,12 +1,12 @@ -import Accordian from "@/components/Accordian"; -import { Bottom } from "@/components/Bottom"; -import ContactPage from "@/components/Contact"; -import HeroSection from "@/components/main/Hero"; +import Accordian from "@/components/main/accordian/Accordian"; +import { Bottom } from "@/components/main/bottom/Bottom"; +import ContactPage from "@/components/main/contact/Contact"; +import HeroSection from "@/components/main/hero/Hero"; import PricingSection from "@/components/Pricing/PricingSection"; -import Services from "@/components/Services"; -import TeamPage from "@/components/Team"; +import Services from "@/components/main/services/Services"; +import TeamPage from "@/components/main/team/Team"; export default function Home() { return ( diff --git a/components/Pricing/GrowthCard.tsx b/components/Pricing/GrowthCard.tsx index c1c23cc..48c532e 100644 --- a/components/Pricing/GrowthCard.tsx +++ b/components/Pricing/GrowthCard.tsx @@ -43,7 +43,7 @@ export const GrowthCard = () => { - +
- +
- - - - ) -} \ No newline at end of file + + + ); +}; diff --git a/components/Team/Team.tsx b/components/Team/Team.tsx index 8389a99..a67730c 100644 --- a/components/Team/Team.tsx +++ b/components/Team/Team.tsx @@ -1,5 +1,5 @@ "use client"; -import Container from "../Container"; +import Container from "../shared/Container"; import { TopLeftShiningLight, TopRightShiningLight, diff --git a/components/Accordian.tsx b/components/main/accordian/Accordian.tsx similarity index 88% rename from components/Accordian.tsx rename to components/main/accordian/Accordian.tsx index 0f72ac5..f3c331c 100644 --- a/components/Accordian.tsx +++ b/components/main/accordian/Accordian.tsx @@ -1,8 +1,8 @@ import { Process } from '@/data/process' -import Container from './Container' +import Container from '../../shared/Container' import AccordionItem from './AccordianItem' -import Topic from './Topic' +import Topic from '../../shared/Topic' export default function Accordian() { return ( diff --git a/components/AccordianItem.tsx b/components/main/accordian/AccordianItem.tsx similarity index 100% rename from components/AccordianItem.tsx rename to components/main/accordian/AccordianItem.tsx diff --git a/components/Bottom.tsx b/components/main/bottom/Bottom.tsx similarity index 97% rename from components/Bottom.tsx rename to components/main/bottom/Bottom.tsx index faf650b..3e9a14a 100644 --- a/components/Bottom.tsx +++ b/components/main/bottom/Bottom.tsx @@ -1,6 +1,6 @@ /* eslint-disable @next/next/no-img-element */ import Link from "next/link" -import Container from "./Container" +import Container from "../../shared/Container" export const Bottom = () => { return ( diff --git a/components/Contact.tsx b/components/main/contact/Contact.tsx similarity index 98% rename from components/Contact.tsx rename to components/main/contact/Contact.tsx index 2ba6f30..0d284e7 100644 --- a/components/Contact.tsx +++ b/components/main/contact/Contact.tsx @@ -1,8 +1,8 @@ "use client" import { useState, FormEvent } from 'react'; -import Container from './Container'; -import Topic from './Topic'; +import Container from '../../shared/Container'; +import Topic from '../../shared/Topic'; import Image from 'next/image'; diff --git a/components/main/Hero.tsx b/components/main/hero/Hero.tsx similarity index 98% rename from components/main/Hero.tsx rename to components/main/hero/Hero.tsx index afa72bc..d0ed988 100644 --- a/components/main/Hero.tsx +++ b/components/main/hero/Hero.tsx @@ -8,7 +8,7 @@ import { TopLeftShiningLight, TopRightShiningLight, } from "@/components/farmui/ShinyLights"; -import Container from "../Container"; +import Container from "../../shared/Container"; import Link from "next/link"; export default function FUIDarkHeroSectionWithScrolls() { diff --git a/components/Navbar.tsx b/components/main/navbar/Navbar.tsx similarity index 98% rename from components/Navbar.tsx rename to components/main/navbar/Navbar.tsx index 5c5a24b..f949f1d 100644 --- a/components/Navbar.tsx +++ b/components/main/navbar/Navbar.tsx @@ -1,7 +1,7 @@ "use client"; import { useState } from "react"; import Link from "next/link"; -import Container from "./Container"; +import Container from "../../shared/Container"; import { menuItems } from "@/data/menuitems"; const Navigation = () => { diff --git a/components/Services.tsx b/components/main/services/Services.tsx similarity index 96% rename from components/Services.tsx rename to components/main/services/Services.tsx index f7a865d..e12a697 100644 --- a/components/Services.tsx +++ b/components/main/services/Services.tsx @@ -1,7 +1,7 @@ /* eslint-disable @next/next/no-img-element */ import { servicesData } from "@/data/service"; -import Container from "./Container"; -import Topic from "./Topic"; +import Container from "../../shared/Container"; +import Topic from "../../shared/Topic"; function Services() { return ( diff --git a/components/Team.tsx b/components/main/team/Team.tsx similarity index 97% rename from components/Team.tsx rename to components/main/team/Team.tsx index 27e45c7..f873f05 100644 --- a/components/Team.tsx +++ b/components/main/team/Team.tsx @@ -1,8 +1,8 @@ /* eslint-disable @next/next/no-img-element */ "use client" import { teamData } from "@/data/process"; -import Container from "./Container"; -import Topic from "./Topic"; +import Container from "../../shared/Container"; +import Topic from "../../shared/Topic"; import { useRouter } from "next/navigation"; import { TeamMember } from "@/data/TeamMember"; diff --git a/components/Container.tsx b/components/shared/Container.tsx similarity index 100% rename from components/Container.tsx rename to components/shared/Container.tsx diff --git a/components/Topic.tsx b/components/shared/Topic.tsx similarity index 100% rename from components/Topic.tsx rename to components/shared/Topic.tsx