Skip to content

Commit b26756a

Browse files
authored
[정성현] sprint9 (#123)
* chore: 프로젝트 초기화 - 프로젝트 내 불필요 파일 및 코드 제거 * feat: 초기 환경 구성 - 프로젝트 구조화 및 경로 별칭 적용 - 메타 데이터 작성 및 전역 CSS 적용 - README.md 작성 * feat: 레이아웃및 헤더 구현 - 레이아웃 구현 및 App 컴포넌트에 적용 - 헤더 구현 - 관련 페이지 컴포넌트 작성 * feat: API 구조및 getArticles 구현 - api 구조, api 타입, api 훅 구현 - getArticles API 구현 * feat: 자유게시판 베스트 게시글 구현 - 미디어 쿼리 적용 - api 적용 - CSS 관련 일부 적용
1 parent 8d163dd commit b26756a

40 files changed

+1064
-515
lines changed

README.md

Lines changed: 44 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,56 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
# 🐼 판다마켓
22

3-
## Getting Started
3+
> 일상의 모든 물건을 믿고 거래할 수 있는 **중고 거래 플랫폼**
44
5-
First, run the development server:
5+
- [판다마켓 바로가기](https://codeit-fe10-pandamarket.vercel.app)
6+
- 코드잇 스프린트 FE-10 스프린트 미션
7+
- 2024.08.05.(월) ~ 개발 진행 중
68

7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
9+
![판다마켓 이미지](/public/readme_banner.png)
2010

21-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
11+
<br />
2212

23-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
13+
## 기술 스택
2414

25-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
15+
- **개발 환경**
16+
- Visual Studio Code
17+
- Git, Github
18+
- Vercel
19+
- **FE 기술**
20+
- HTML, CSS, CSS Module
21+
- JS, TS, React, Next.js
2622

27-
## Learn More
23+
<br />
2824

29-
To learn more about Next.js, take a look at the following resources:
25+
## 네이밍 규칙
3026

31-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
32-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27+
- **HTML**
28+
- id: camelCase
29+
- name: camelCase
30+
- class: `camelElement_camelModifier`
31+
- **CSS**
32+
- 변수: kebab-case
33+
- **JS**
34+
- 식별자: camelCase
35+
- 타입: PascalCase
3336

34-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
37+
<br />
3538

36-
## Deploy on Vercel
39+
## 프로젝트 구조
3740

38-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
39-
40-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
41+
```
42+
codeit-fe10-sprint-mission
43+
├─ .github : GitHub 설정
44+
├─ public : 정적 파일
45+
│ ├─ fonts : 글꼴
46+
│ ├─ icons : 아이콘
47+
│ ├─ images : 이미지
48+
│ └─ meta : 메타데이터
49+
└─ src : 소스 코드
50+
├─ apis : 통신 API
51+
├─ components : 컴포넌트
52+
│ ├─ common : 공용 컴포넌트
53+
│ └─ layout : 레이아웃 컴포넌트
54+
├─ pages : 페이지
55+
└─ styles : 전역 CSS
56+
```

next.config.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4-
}
4+
images: {
5+
remotePatterns: [
6+
{
7+
protocol: "https",
8+
hostname: "sprint-fe-project.s3.ap-northeast-2.amazonaws.com",
9+
pathname: "/Sprint_Mission/user/**",
10+
},
11+
],
12+
},
13+
};
514

6-
module.exports = nextConfig
15+
module.exports = nextConfig;

pages/_app.tsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

pages/_document.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

pages/api/hello.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

pages/index.tsx

Lines changed: 0 additions & 114 deletions
This file was deleted.

public/favicon.ico

-25.3 KB
Binary file not shown.

public/fonts/PretendardVariable.woff2

1.96 MB
Binary file not shown.

public/icons/heart_inactive.svg

Lines changed: 3 additions & 0 deletions
Loading

public/images/logo_w153x3.png

6.85 KB
Loading

0 commit comments

Comments
 (0)