Skip to content

Commit

Permalink
move : 폴더구조 및 라우팅 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
binllionaire committed Dec 21, 2023
1 parent 1a9bbd1 commit c5b9251
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 92 deletions.
6 changes: 6 additions & 0 deletions app/(route)/main/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Image from "next/image";
import styles from "./page.module.css";

export default function OnBoarding() {
return <p>온보딩</p>;
}
6 changes: 6 additions & 0 deletions app/(route)/search/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Image from "next/image";
import styles from "./page.module.css";

export default function Detail() {
return <p>검색 페이지 상세</p>;
}
6 changes: 6 additions & 0 deletions app/(route)/search/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Image from "next/image";
import styles from "./page.module.css";

export default function Search() {
return <p>검색 페이지</p>;
}
Empty file added app/_apis/.keep
Empty file.
Empty file added app/_assets/.keep
Empty file.
Empty file added app/_styles/.keep
Empty file.
Empty file added app/_types/.keep
Empty file.
96 changes: 4 additions & 92 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,95 +1,7 @@
import Image from 'next/image'
import styles from './page.module.css'
import Image from "next/image";
import styles from "./page.module.css";
import OnBoarding from "./(route)/main/page";

export default function Home() {
return (
<main className={styles.main}>
<div className={styles.description}>
<p>
Get started by editing&nbsp;
<code className={styles.code}>app/page.tsx</code>
</p>
<div>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
By{' '}
<Image
src="/vercel.svg"
alt="Vercel Logo"
className={styles.vercelLogo}
width={100}
height={24}
priority
/>
</a>
</div>
</div>

<div className={styles.center}>
<Image
className={styles.logo}
src="/next.svg"
alt="Next.js Logo"
width={180}
height={37}
priority
/>
</div>

<div className={styles.grid}>
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Docs <span>-&gt;</span>
</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>

<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Learn <span>-&gt;</span>
</h2>
<p>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
</a>

<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Templates <span>-&gt;</span>
</h2>
<p>Explore starter templates for Next.js.</p>
</a>

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Deploy <span>-&gt;</span>
</h2>
<p>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
</div>
</main>
)
return <OnBoarding />;
}

0 comments on commit c5b9251

Please sign in to comment.