Skip to content

Commit ad15436

Browse files
EunbinJungmtm-git1018ahk0413
authored
Style/community#18 (#79)
* [chore] 메타데이터 추가 * [fix] 수정 * [fix] 스크롤 수정 * [fix] 레이아웃 수정 * [style] 커뮤니티 상세 ui * [style]레시피페이지 * [style]recipe페이지 * [style]칵테일페이지 * [style]페이지 수정사항 수정 * [style]레시피페이지 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [style] select박스 정렬 * [style] 수정사항 반영 * [style] 수정 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [feat] StarBg컴포넌트 * [feat] 라벨 컴포넌트 분리 * [feat]selectBox컴포넌트 다양화 * [design] 채팅 폼 ui * [feat] 레이아웃 footer 로직 추가 * [style] 취향 추천페이지 작업 * [style] layout 양옆 padding 값 수정 * [style] 라디오, input, 쑤리 챗, 나의 챗 컴포넌트 작업 * [feat] keep 버튼 이벤트 전파 막기 추가 * [feat] scrollTopbtn 취향추천 페이지에서 none 처리 * [style] 카드 컴포넌트 구현 완료 * [feat] 스크롤 탑 버튼 throttle 추가 * [design] 헤더 아이콘 hover / 페이지 이동시 추가 * [fix] 헤더아이콘 경고 이슈 해결 * [design] toast 줄바꿈 예시 추가 * [feat] auth 관련 store 생성 * [feat] 로그인 상태에 따라 로직 추가 * [feat] 로그인 시 전페이지로 이동하도록 로직 추가 / 모달 store 추가 * [feat] 소셜로그인 로직 수정 (api 대기중) * [text] 로그인 기능구현중 테스트 * [style] 불필요한 코드 제거 * [style] 커뮤니티 상세페이지 UI * [fix] 수정 * [fix] 수정 * [style] 별배경 추가 * [refactor] 닫힐때 애니메이션 나오게 수정 * [refactor] createPortal 추가 * [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * [chore] next.config.ts파일 * [fix] 클라이언트 페이지 선언 * [fix] 빌드에러 * [fix] z-index 주기 * Squashed commit of the following: commit 643a5f2 Author: mtm-git1018 <[email protected]> Date: Fri Sep 26 09:41:04 2025 +0900 Feat/칵테일 상세페이지#17 (#59) * [style]레시피 상세페이지 * [style]레시피 상세페이지 헤더 * [style]추천리스트 * [style]레시피 상세페이지 * [style]칵테일 상세페이지 * [style] 상세페이지 컴포넌트 정리 * [fix] 경로수정 * [refactor] PageHeader 수정 commit 38cde08 Author: ahk0413 <[email protected]> Date: Fri Sep 26 00:04:49 2025 +0900 [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * 수정 * 수정 * 오류 해결 * [style] 간단 css 수정 * [docs] 폴더정리 * [fix] 경로수정 * [fix]경로수정 * [fix]경로수정 * [fix]경로수정 * [chore] format * [fix] 경로 수정 * [chore] 폴더구조 변경 * [refactor] react-use 사용으로 스크롤 이벤트 최적화 * [fix] 의존성 추가 * Style/community#18 (#62) * [chore] 메타데이터 추가 * [fix] 수정 * [fix] 스크롤 수정 * [fix] 레이아웃 수정 * [style] 커뮤니티 상세 ui * [style]레시피페이지 * [style]recipe페이지 * [style]칵테일페이지 * [style]페이지 수정사항 수정 * [style]레시피페이지 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [style] select박스 정렬 * [style] 수정사항 반영 * [style] 수정 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [feat] StarBg컴포넌트 * [feat] 라벨 컴포넌트 분리 * [feat]selectBox컴포넌트 다양화 * [design] 채팅 폼 ui * [feat] 레이아웃 footer 로직 추가 * [style] 취향 추천페이지 작업 * [style] layout 양옆 padding 값 수정 * [style] 라디오, input, 쑤리 챗, 나의 챗 컴포넌트 작업 * [feat] keep 버튼 이벤트 전파 막기 추가 * [feat] scrollTopbtn 취향추천 페이지에서 none 처리 * [style] 카드 컴포넌트 구현 완료 * [feat] 스크롤 탑 버튼 throttle 추가 * [design] 헤더 아이콘 hover / 페이지 이동시 추가 * [fix] 헤더아이콘 경고 이슈 해결 * [design] toast 줄바꿈 예시 추가 * [feat] auth 관련 store 생성 * [feat] 로그인 상태에 따라 로직 추가 * [feat] 로그인 시 전페이지로 이동하도록 로직 추가 / 모달 store 추가 * [feat] 소셜로그인 로직 수정 (api 대기중) * [text] 로그인 기능구현중 테스트 * [style] 불필요한 코드 제거 * [style] 커뮤니티 상세페이지 UI * [fix] 수정 * [fix] 수정 * [style] 별배경 추가 * [refactor] 닫힐때 애니메이션 나오게 수정 * [refactor] createPortal 추가 * [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * [chore] next.config.ts파일 * [fix] 클라이언트 페이지 선언 * [fix] 빌드에러 * [fix] z-index 주기 * Squashed commit of the following: commit 643a5f2 Author: mtm-git1018 <[email protected]> Date: Fri Sep 26 09:41:04 2025 +0900 Feat/칵테일 상세페이지#17 (#59) * [style]레시피 상세페이지 * [style]레시피 상세페이지 헤더 * [style]추천리스트 * [style]레시피 상세페이지 * [style]칵테일 상세페이지 * [style] 상세페이지 컴포넌트 정리 * [fix] 경로수정 * [refactor] PageHeader 수정 commit 38cde08 Author: ahk0413 <[email protected]> Date: Fri Sep 26 00:04:49 2025 +0900 [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * 수정 * 수정 * 오류 해결 --------- Co-authored-by: mtm1018 <[email protected]> Co-authored-by: ahk0413 <[email protected]> Co-authored-by: ahk0413 <[email protected]> * [docs] 폴더정리 * [fix]경로수정 * [fix]경로수정 * 경로수정 * 폴더오류 * 오류수정 * [fix] 메타태그 * [style] 커뮤니티 탭 최소사이즈 지정 * 포맷 수정 * [chore] 파일 합칠 때 잘못 저장된 파일 삭제 * [style] 글쓰기 * [chore]폴더구조 변경 comment 공유 컴포넌트화 * Squashed commit of the following: commit f98f5c4 Author: ahk0413 <[email protected]> Date: Fri Sep 26 14:42:22 2025 +0900 [docs] 폴더명 카멜케이스 -> 케밥케이스로 변경 (#69) * [docs] 폴더 카멜케이스 -> 케밥케이스 * [fix] 경로 오류 commit b2fea1f Author: ahk0413 <[email protected]> Date: Fri Sep 26 14:01:45 2025 +0900 [fix] 로그인 관련 수정 (#67) * [fix, docs] 로그인 리다이렉트 경로 페이지 수정 및 로그인 관련 폴더 구조 수정 * [feat] 로그아웃 팝업 추가 * [fix] confirm 창 버튼 props 받을 수 있게 수정 * [fix] loginRedirect 경로 수정 * [feat] 로그아웃 confirm 창 연동 , 새로고침시에도 로그인 유지, 로그인, 비로그인 시 메뉴 show/hide 처리 * [fix] 에러 해결 * [fix] husky 오류 해결 commit 9b2f69d Author: EunbinJ <[email protected]> Date: Fri Sep 26 12:43:42 2025 +0900 Style/community#18 (#66) * [chore] 메타데이터 추가 * [fix] 수정 * [fix] 스크롤 수정 * [fix] 레이아웃 수정 * [style] 커뮤니티 상세 ui * [style]레시피페이지 * [style]recipe페이지 * [style]칵테일페이지 * [style]페이지 수정사항 수정 * [style]레시피페이지 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [style] select박스 정렬 * [style] 수정사항 반영 * [style] 수정 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [feat] StarBg컴포넌트 * [feat] 라벨 컴포넌트 분리 * [feat]selectBox컴포넌트 다양화 * [design] 채팅 폼 ui * [feat] 레이아웃 footer 로직 추가 * [style] 취향 추천페이지 작업 * [style] layout 양옆 padding 값 수정 * [style] 라디오, input, 쑤리 챗, 나의 챗 컴포넌트 작업 * [feat] keep 버튼 이벤트 전파 막기 추가 * [feat] scrollTopbtn 취향추천 페이지에서 none 처리 * [style] 카드 컴포넌트 구현 완료 * [feat] 스크롤 탑 버튼 throttle 추가 * [design] 헤더 아이콘 hover / 페이지 이동시 추가 * [fix] 헤더아이콘 경고 이슈 해결 * [design] toast 줄바꿈 예시 추가 * [feat] auth 관련 store 생성 * [feat] 로그인 상태에 따라 로직 추가 * [feat] 로그인 시 전페이지로 이동하도록 로직 추가 / 모달 store 추가 * [feat] 소셜로그인 로직 수정 (api 대기중) * [text] 로그인 기능구현중 테스트 * [style] 불필요한 코드 제거 * [style] 커뮤니티 상세페이지 UI * [fix] 수정 * [fix] 수정 * [style] 별배경 추가 * [refactor] 닫힐때 애니메이션 나오게 수정 * [refactor] createPortal 추가 * [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * [chore] next.config.ts파일 * [fix] 클라이언트 페이지 선언 * [fix] 빌드에러 * [fix] z-index 주기 * Squashed commit of the following: commit 643a5f2 Author: mtm-git1018 <[email protected]> Date: Fri Sep 26 09:41:04 2025 +0900 Feat/칵테일 상세페이지#17 (#59) * [style]레시피 상세페이지 * [style]레시피 상세페이지 헤더 * [style]추천리스트 * [style]레시피 상세페이지 * [style]칵테일 상세페이지 * [style] 상세페이지 컴포넌트 정리 * [fix] 경로수정 * [refactor] PageHeader 수정 commit 38cde08 Author: ahk0413 <[email protected]> Date: Fri Sep 26 00:04:49 2025 +0900 [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * 수정 * 수정 * 오류 해결 * [style] 간단 css 수정 * [docs] 폴더정리 * [fix] 경로수정 * [fix]경로수정 * [fix]경로수정 * [fix]경로수정 * [chore] format * [fix] 경로 수정 * [chore] 폴더구조 변경 * [refactor] react-use 사용으로 스크롤 이벤트 최적화 * [fix] 의존성 추가 * Style/community#18 (#62) * [chore] 메타데이터 추가 * [fix] 수정 * [fix] 스크롤 수정 * [fix] 레이아웃 수정 * [style] 커뮤니티 상세 ui * [style]레시피페이지 * [style]recipe페이지 * [style]칵테일페이지 * [style]페이지 수정사항 수정 * [style]레시피페이지 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [style] select박스 정렬 * [style] 수정사항 반영 * [style] 수정 * [style]recipe페이지 * [feat]selectBox컴포넌트 다양화 * [feat] StarBg컴포넌트 * [feat] 라벨 컴포넌트 분리 * [feat]selectBox컴포넌트 다양화 * [design] 채팅 폼 ui * [feat] 레이아웃 footer 로직 추가 * [style] 취향 추천페이지 작업 * [style] layout 양옆 padding 값 수정 * [style] 라디오, input, 쑤리 챗, 나의 챗 컴포넌트 작업 * [feat] keep 버튼 이벤트 전파 막기 추가 * [feat] scrollTopbtn 취향추천 페이지에서 none 처리 * [style] 카드 컴포넌트 구현 완료 * [feat] 스크롤 탑 버튼 throttle 추가 * [design] 헤더 아이콘 hover / 페이지 이동시 추가 * [fix] 헤더아이콘 경고 이슈 해결 * [design] toast 줄바꿈 예시 추가 * [feat] auth 관련 store 생성 * [feat] 로그인 상태에 따라 로직 추가 * [feat] 로그인 시 전페이지로 이동하도록 로직 추가 / 모달 store 추가 * [feat] 소셜로그인 로직 수정 (api 대기중) * [text] 로그인 기능구현중 테스트 * [style] 불필요한 코드 제거 * [style] 커뮤니티 상세페이지 UI * [fix] 수정 * [fix] 수정 * [style] 별배경 추가 * [refactor] 닫힐때 애니메이션 나오게 수정 * [refactor] createPortal 추가 * [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * [chore] next.config.ts파일 * [fix] 클라이언트 페이지 선언 * [fix] 빌드에러 * [fix] z-index 주기 * Squashed commit of the following: commit 643a5f2 Author: mtm-git1018 <[email protected]> Date: Fri Sep 26 09:41:04 2025 +0900 Feat/칵테일 상세페이지#17 (#59) * [style]레시피 상세페이지 * [style]레시피 상세페이지 헤더 * [style]추천리스트 * [style]레시피 상세페이지 * [style]칵테일 상세페이지 * [style] 상세페이지 컴포넌트 정리 * [fix] 경로수정 * [refactor] PageHeader 수정 commit 38cde08 Author: ahk0413 <[email protected]> Date: Fri Sep 26 00:04:49 2025 +0900 [feat] 로그인 기능 구현 (#63) - 로그아웃 이슈는 추후 논의 필요 * [refactor] modal store 삭제 * [feat] 쿠키 저장 구현중... * [feat] 로그인 쿠키저장하여 이전페이지 이동 완료 * [docs] 의미없는 폴더 삭제 * 수정 * 수정 * 오류 해결 --------- Co-authored-by: mtm1018 <[email protected]> Co-authored-by: ahk0413 <[email protected]> Co-authored-by: ahk0413 <[email protected]> * [docs] 폴더정리 * [fix]경로수정 * [fix]경로수정 * 경로수정 * 폴더오류 * 오류수정 --------- Co-authored-by: mtm1018 <[email protected]> Co-authored-by: ahk0413 <[email protected]> Co-authored-by: ahk0413 <[email protected]> * 수정 * comment 컴포넌트화 * 수정 * '경로 수정' * [style] 커뮤니티 글쓰기 UI * 수정 --------- Co-authored-by: mtm1018 <[email protected]> Co-authored-by: ahk0413 <[email protected]> Co-authored-by: ahk0413 <[email protected]>
1 parent 8044daf commit ad15436

File tree

28 files changed

+360
-64
lines changed

28 files changed

+360
-64
lines changed

src/app/community/[id]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import Comment from '@/domains/shared/components/comment/Comment';
77

88
function Page() {
99
return (
10-
<div className="w-full mb-10 flex relative">
10+
<div className="w-full relative">
1111
<StarBg className="w-full h-32 absolute"></StarBg>
12-
<article className="page-layout max-w-824 flex-1 z-5">
12+
<article className="page-layout max-w-824 z-5">
1313
<DetailHeader />
1414
<DetailTitle />
1515
<DetailContent />

src/app/community/write/page.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
1+
'use client';
2+
3+
import Tag from '@/domains/community/components/tag/Tag';
14
import Category from '@/domains/community/write/Category';
5+
import TagModal from '@/domains/community/write/cocktail-tag/TagModal';
26
import CompleteBtn from '@/domains/community/write/CompleteBtn';
37
import FormTitle from '@/domains/community/write/FormTitle';
8+
import ImageSection from '@/domains/community/write/image-upload/ImageSection';
49
import WriteForm from '@/domains/community/write/WriteForm';
510
import StarBg from '@/domains/shared/components/star-bg/StarBg';
11+
import { useState } from 'react';
612

713
function Page() {
14+
const [isOpen, setIsOpen] = useState(false);
15+
816
return (
9-
<div className="w-full relative">
17+
<div className="w-full mb-20 flex relative">
1018
<StarBg className="w-full h-32 absolute"></StarBg>
11-
<div className="page-layout max-w-824 z-5">
19+
<div className="page-layout max-w-824 flex-1 z-5">
1220
<CompleteBtn />
1321
<section>
1422
<FormTitle />
1523
<Category />
1624
<WriteForm />
1725
</section>
26+
<ImageSection />
27+
<section className="mt-8">
28+
<Tag use="write" onClick={() => setIsOpen(true)} />
29+
</section>
1830
</div>
31+
{isOpen && <TagModal isOpen={isOpen} setIsOpen={setIsOpen} />}
1932
</div>
2033
);
2134
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Tag from './Tag';
2+
import TagList from './TagList';
3+
4+
function CocktailTag({ use }: { use: 'write' | 'detail' }) {
5+
return (
6+
<div
7+
role="list"
8+
className={`flex sm:gap-5 gap-2 sm:flex-row flex-col justify-center sm:items-center items-start sm:mb-0 mb-2 transition-all ease-in `}
9+
>
10+
<Tag use={use} />
11+
<TagList />
12+
</div>
13+
);
14+
}
15+
16+
export default CocktailTag;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import TagIcon from '@/shared/assets/icons/tag_30.svg';
2+
3+
type Props = {
4+
use: 'write' | 'detail';
5+
onClick?: () => void;
6+
};
7+
8+
function Tag({ use, onClick }: Props) {
9+
return use === 'write' ? (
10+
<button
11+
type="button"
12+
onClick={onClick}
13+
className="flex gap-1 items-center justify-center text-sm text-secondary border-1 border-gray p-1 rounded-3xl cursor-pointer w-32 hover:bg-secondary/10 transition-colors duration-75"
14+
aria-label="칵테일 태그 선택"
15+
>
16+
<TagIcon />
17+
칵테일태그
18+
</button>
19+
) : (
20+
<p className="flex gap-1 items-center justify-center text-sm text-secondary">
21+
<TagIcon />
22+
칵테일태그
23+
</p>
24+
);
25+
}
26+
27+
export default Tag;
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import CloseIcon from '@/shared/assets/icons/close_20.svg';
2+
3+
function TagList({ hasDelete }: { hasDelete?: boolean }) {
4+
return (
5+
<ul className="flex text-sm gap-2 items-center text-primary font-light">
6+
<li
7+
className={`bg-[#FFE4E6] pl-2 pr-1 py-[1px] rounded-md flex gap-2 ${hasDelete && 'hover:opacity-90'}`}
8+
>
9+
<p>올드패션</p>
10+
{hasDelete && (
11+
<button
12+
type="button"
13+
className=" rounded-md transition-colors ease-in hover:text-primary/40"
14+
>
15+
<CloseIcon />
16+
</button>
17+
)}
18+
</li>
19+
<li
20+
className={`bg-[#FFE4E6] pl-2 pr-1 py-[1px] rounded-md flex gap-2 ${hasDelete && 'hover:opacity-90'}`}
21+
>
22+
<p>미도리 샤워</p>
23+
{hasDelete && (
24+
<button
25+
type="button"
26+
className=" rounded-md transition-colors ease-in hover:text-primary/40"
27+
>
28+
<CloseIcon />
29+
</button>
30+
)}
31+
</li>
32+
</ul>
33+
);
34+
}
35+
36+
export default TagList;

src/domains/community/detail/CocktailTag.tsx

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

src/domains/community/detail/DetailContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Image from 'next/image';
22
import prePost from '@/shared/assets/images/prepost_img.webp';
33

4-
import PostInfo from '../main/PostInfo';
4+
import PostInfo from '../components/postInfo/PostInfo';
55

6-
import CocktailTag from './CocktailTag';
6+
import CocktailTag from '../components/tag/CocktailTag';
77
import DetailTabMobile from './tab/DetailTabMobile';
88

99
function DetailContent() {
@@ -34,7 +34,7 @@ function DetailContent() {
3434
<br />
3535
<p>글입니다다다다다다다다다다다다</p>
3636
</article>
37-
<CocktailTag />
37+
<CocktailTag use="detail" />
3838
<PostInfo />
3939
<div className="block md:hidden mt-2">
4040
<DetailTabMobile />

src/domains/community/main/PostCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Image from 'next/image';
22
import prePost from '@/shared/assets/images/prepost_img.webp';
33

4-
import PostInfo from './PostInfo';
4+
import PostInfo from '../components/postInfo/PostInfo';
55
import Label from '@/domains/shared/components/label/Label';
66

77
function PostCard({ label }: { label: string }) {
88
return (
9-
<article className="pt-[30] pb-3 border-b-1 border-gray-light">
9+
<article className="pt-5 pb-3 border-b-1 border-gray-light">
1010
<Label title={label} />
1111

1212
<section className="flex items-start justify-between mt-3 cursor-pointer" role="link">

src/domains/community/write/Category.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import SelectBox from '@/domains/shared/components/select-box/SelectBox';
22

33
function Category() {
44
return (
5-
<div>
6-
<SelectBox option={['레시피', '팁', '질문', '자유']} title="카테고리" />
5+
<div className="w-full h-[38px] flex items-center justify-end mt-10">
6+
<SelectBox option={['레시피', '팁', '질문', '자유']} title="카테고리" use="write" />
77
</div>
88
);
99
}

0 commit comments

Comments
 (0)