refactor: split components to multiple subdirs
subdirs - homepage - trainingpage - layout
This commit is contained in:
parent
0f8f9ccb04
commit
c170415fd0
15 changed files with 21 additions and 21 deletions
|
|
@ -1,15 +1,15 @@
|
|||
import Head from "next/head";
|
||||
|
||||
import { Header } from "@/components/Header";
|
||||
import { Hero } from "@/components/Hero";
|
||||
import { CallToAction } from "@/components/CallToAction";
|
||||
import { Faqs } from "@/components/Faqs";
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Pricing } from "@/components/Pricing";
|
||||
import { PrimaryFeatures } from "@/components/PrimaryFeatures";
|
||||
import { TechStack } from "@/components/TechStack";
|
||||
import { Testimonials } from "@/components/Testimonials";
|
||||
import { Environment } from "@/components/Environment";
|
||||
import { Header } from "@/components/layout/Header";
|
||||
import { Hero } from "@/components/homepage/Hero";
|
||||
import { CallToAction } from "@/components/homepage/CallToAction";
|
||||
import { Faqs } from "@/components/homepage/Faqs";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { Pricing } from "@/components/homepage/Pricing";
|
||||
import { PrimaryFeatures } from "@/components/homepage/PrimaryFeatures";
|
||||
import { TechStack } from "@/components/homepage/TechStack";
|
||||
import { Testimonials } from "@/components/homepage/Testimonials";
|
||||
import { Environment } from "@/components/homepage/Environment";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import ErrorPage from "next/error";
|
|||
import TrainingType from "@/types/training";
|
||||
import { getAllTraining, getTrainingBySlug } from "@/lib/cms/training";
|
||||
import markdownToHTML from "@/lib/markdownToHTML";
|
||||
import { Header } from "@/components/Header";
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Training } from "@/components/Training";
|
||||
import { Header } from "@/components/layout/Header";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { Training } from "@/components/trainingpage/Training";
|
||||
|
||||
type Props = {
|
||||
training: TrainingType;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import Head from "next/head";
|
||||
|
||||
import { Header } from "@/components/Header";
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Header } from "@/components/layout/Header";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { getAllTraining } from "@/lib/cms/training";
|
||||
import TrainingType from "@/types/training";
|
||||
import { TrainingListGrid } from "@/components/TrainingListGrid";
|
||||
import { TrainingListGrid } from "@/components/trainingpage/TrainingListGrid";
|
||||
|
||||
export const getStaticProps = async () => {
|
||||
const allTraining = getAllTraining([
|
||||
|
|
|
|||
Reference in a new issue