일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Python
- 파이썬 반복문
- 파이썬 제어문
- 성공
- 장고 가상환경
- git
- 파이썬
- Kotlin If
- 좋은글
- Kotlin 조건문
- 다중조건문
- 파이썬 장고
- github
- 도전
- NextJs
- 희망
- django virtualenv
- python Django
- Kotlin else if
- Python Class
- 자바 기본타입
- Kotlin Class
- 클래스 속성
- 강제 타입변환
- 파이썬 클래스
- activate 오류
- Kotlin 클래스 속성정의
- 넥스트js
- Kotlin 클래스
- Variable declaration
Archives
- Today
- Total
키모스토리
#1. Setup 본문
반응형
최소 사양 선택으로 프로젝트 생성
npx create-next-app@latest
- globals.css
@import "tailwindcss";
- layout.jsx
import "./globals.css";
export default function RootLayout({ children }) {
return (
<html lang="en">
<body lang="en">
<header>
<nav>Nav</nav>
</header>
<main>
{children}
</main>
<footer>
footer
</footer>
</body>
</html>
);
}
- page.jsx
export default function Home() {
return (
<div>
<h1>Home page</h1>
</div>
);
}
- tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [],
};
.next 폴더 삭제 후 npm run dev 로 초기화
반응형
'Web Devlopment > Next-Blog Project' 카테고리의 다른 글
#6. Active Links (0) | 2025.04.05 |
---|---|
#5. server-only (0) | 2025.04.05 |
#4. register (MongoDB, Jose, session, cookie) (0) | 2025.04.04 |
#3. zod.dev (validation) (0) | 2025.04.04 |
#2. useActionState (0) | 2025.04.04 |