From 51009510ff1f932b2e603ad4a299d0d1c201d02c Mon Sep 17 00:00:00 2001 From: Juun Date: Thu, 14 Dec 2023 13:07:24 +0900 Subject: [PATCH] fix(multiple sources): structure update, added page template created DefaultPage template for setting "flex w-full flex-col items-center justify-between" div. --- src/pages/about.tsx | 6 +++--- src/pages/index.tsx | 39 +++++++++++++++++++---------------- src/templates/DefaultPage.tsx | 15 ++++++++++++++ src/templates/Main.tsx | 4 ++-- src/templates/index.ts | 4 ++++ 5 files changed, 45 insertions(+), 23 deletions(-) create mode 100644 src/templates/DefaultPage.tsx create mode 100644 src/templates/index.ts diff --git a/src/pages/about.tsx b/src/pages/about.tsx index be8b747..13513bf 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -1,7 +1,7 @@ import Image from 'next/image'; import { Meta } from '@/layouts/Meta'; -import { Main } from '@/templates/Main'; +import { DefaultPage, Main } from '@/templates'; const About = () => (
( /> } > -
+

This Project is built with

(

-
+
); diff --git a/src/pages/index.tsx b/src/pages/index.tsx index fc291f3..00d7605 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,5 @@ import { Meta } from '@/layouts/Meta'; -import { Main } from '@/templates/Main'; +import { DefaultPage, Main } from '@/templates'; const Index = () => (
( /> } > -

- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Reiciendis - delectus dolore inventore repellendus suscipit maiores veritatis - doloribus, architecto deleniti error ratione libero vero autem est - temporibus fugiat sunt ut eos. -

-

- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Hic dolores quos - voluptatibus tenetur cumque, unde porro quaerat veritatis similique - possimus cupiditate. Doloribus expedita iure qui delectus dolorem optio - magni repellendus? -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem dolor - nostrum fuga et. Aliquid, vitae totam. Ad eligendi voluptatem debitis - atque fuga! Molestiae, sequi eos natus ex necessitatibus corrupti ratione. -

+ +

+ Lorem ipsum dolor, sit amet consectetur adipisicing elit. Reiciendis + delectus dolore inventore repellendus suscipit maiores veritatis + doloribus, architecto deleniti error ratione libero vero autem est + temporibus fugiat sunt ut eos. +

+

+ Lorem ipsum dolor, sit amet consectetur adipisicing elit. Hic dolores + quos voluptatibus tenetur cumque, unde porro quaerat veritatis similique + possimus cupiditate. Doloribus expedita iure qui delectus dolorem optio + magni repellendus? +

+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem dolor + nostrum fuga et. Aliquid, vitae totam. Ad eligendi voluptatem debitis + atque fuga! Molestiae, sequi eos natus ex necessitatibus corrupti + ratione. +

+
); diff --git a/src/templates/DefaultPage.tsx b/src/templates/DefaultPage.tsx new file mode 100644 index 0000000..dc50739 --- /dev/null +++ b/src/templates/DefaultPage.tsx @@ -0,0 +1,15 @@ +import type { ReactNode } from 'react'; + +type IDefaultPageProps = { + children: ReactNode; +}; + +const DefaultPage = (props: IDefaultPageProps) => { + return ( +
+ {props.children} +
+ ); +}; + +export { DefaultPage }; diff --git a/src/templates/Main.tsx b/src/templates/Main.tsx index 9f016e7..9b3995d 100644 --- a/src/templates/Main.tsx +++ b/src/templates/Main.tsx @@ -37,8 +37,8 @@ const Main = (props: IMainProps) => {
  • diff --git a/src/templates/index.ts b/src/templates/index.ts new file mode 100644 index 0000000..63f8be4 --- /dev/null +++ b/src/templates/index.ts @@ -0,0 +1,4 @@ +import { DefaultPage } from './DefaultPage'; +import { Main } from './Main'; + +export { DefaultPage, Main };