Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
87e3f15
chore: 머지 후 브랜치 삭제 github action 추가
withyj-codeit Sep 3, 2023
1472169
Initial commit from Create Next App
withyj-codeit Nov 23, 2023
671d4d5
reset
hanseulhee Oct 10, 2023
14baca2
fix: 머지 후 브랜치 삭제 github action 수정
hanseulhee Oct 10, 2023
8d163dd
env: workflows 폴더로 이동
hanseulhee Oct 10, 2023
cf2e3df
Merge branch 'Next.js-고한샘' of https://github.com/codeit-bootcamp-fron…
gohansaem1 May 30, 2024
398ac6c
fix: 불필요파일 제거, 필요아이콘 세팅
gohansaem1 May 30, 2024
a04698a
test css, 라우팅, 검색쿼리
gohansaem1 May 30, 2024
8f535bd
배포 브랜치 변경용 커밋
gohansaem1 May 30, 2024
921aec0
배포 중 오류 해결
gohansaem1 May 30, 2024
f56d696
배포 중 오류 해결 2
gohansaem1 May 30, 2024
2ee994e
배포 중 오류 해결 3
gohansaem1 May 30, 2024
d80a89a
모르겠다
gohansaem1 May 30, 2024
5d76a22
.
gohansaem1 May 30, 2024
6f12196
.
gohansaem1 May 31, 2024
6cdee27
..
gohansaem1 May 31, 2024
af57418
버셀, 빌드코드제거
gohansaem1 May 31, 2024
c0b2b55
dfd
gohansaem1 May 31, 2024
c5cd127
게시판 글 가져오기 api 확인
gohansaem1 May 31, 2024
069ebed
feat: 검색 기능 구현
gohansaem1 May 31, 2024
c59c0eb
feat: 드롭다운 버튼 기능구현
gohansaem1 May 31, 2024
365a414
feat: 공통 헤더 컴포넌트 추가
gohansaem1 May 31, 2024
b690f65
feat:설정페이지 테마기능 구현
gohansaem1 May 31, 2024
d3bb2bb
fix: header css 수정, 구글폰트 적용하기
gohansaem1 May 31, 2024
eb445b0
fix: 네트리파이 빌드오류
gohansaem1 May 31, 2024
b3d39fd
fix: 타입스크립트 변환
gohansaem1 Jun 3, 2024
fbb8fcf
feat/ 글쓰기 버튼 컴포넌트, addboard 링크 연결
gohansaem1 Jun 6, 2024
270af41
feat: 개별 게시글 페이지, 댓글 달기 기본레이아웃 구성 구현
gohansaem1 Jun 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions components/BlueButton.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.write {
width: 84px;
height: 42px;
border-radius: 8px;
background-color: #3692ff;
font-family: Pretendard;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 버튼에만 Pretendard가 적용되어야 하나요?
그런게 아니라면 font는 최상위 node에서 사용하는게 좋을것 같습니다 ㅎ

font-size: 16px;
font-weight: 600;
color: #ffffff;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
5 changes: 5 additions & 0 deletions components/BlueButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import styles from "@/components/BlueButton.module.css";

export default function BlueButton({ children }) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export const BlueButton:React.FC<PropsWithChildren> = ({ children }) => {

이렇게하면 타입을 지정할 수 있어요

return <div className={styles.write}>{children}</div>;
}
1 change: 1 addition & 0 deletions components/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const SearchForm: React.FC<SearchFormProps> = ({

if (!value) {
router.push("/boards");
onChangeKeyword(" ");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty string이 아니라 공백으로 처리하는게 맞나요?

return;
}
if (onChangeKeyword) {
Expand Down
7 changes: 7 additions & 0 deletions pages/addboard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function AddBoard() {
return (
<>
<h2>add</h2>
</>
);
}
11 changes: 9 additions & 2 deletions pages/boards.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import BlueButton from "@/components/BlueButton";
import BoardItem from "@/components/BoardItem";
import DropDown from "@/components/DropDown";
import SearchForm from "@/components/SearchForm";
import axios from "@/lib/axios";
import Link from "next/link";
import { useEffect, useState } from "react";

interface Article {
Expand Down Expand Up @@ -39,8 +41,7 @@ export default function BoardPage() {

return (
<>
<SearchForm keyword={keyword} onChangeKeyword={setKeyword} />
<DropDown order={orderBy} onChangeOrder={setOrderBy} />
<h2>베스트 게시글</h2>
<ul>
{bestList.map((article) => {
return (
Expand All @@ -51,6 +52,12 @@ export default function BoardPage() {
);
})}
</ul>
<SearchForm keyword={keyword} onChangeKeyword={setKeyword} />
<DropDown order={orderBy} onChangeOrder={setOrderBy} />
<h2>게시글</h2>
<Link href="/addboard">
<BlueButton>글쓰기</BlueButton>
</Link>
<ul>
{boardList.map((article) => {
return (
Expand Down