Skip to content
Merged

Dev #153

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a47fb14
[fix] ์ฑ—๋ด‡ ์ถ”์ฒœ ํŽ˜์ด์ง€ ์ˆ˜์ • ๋ฐ ๊ธฐ๋Šฅ์ถ”๊ฐ€ (#130)
ahk0413 Oct 13, 2025
61bd59c
Design/main#11 (#131)
EunbinJung Oct 13, 2025
f071906
Style/main page 2#122 (#132)
mtm-git1018 Oct 13, 2025
bd767b0
Style/๋ฉ”์ธํŽ˜์ด์ง€ ์Šฌ๋ผ์ด๋“œ์˜์—ญ (#135)
mtm-git1018 Oct 14, 2025
1dbeb90
[fix] ๋กœ๊ทธ์•„์›ƒ ์‹œ auth/me api ์ž๋™ํ˜ธ์ถœ๋กœ 401 ์—๋Ÿฌ (#136)
ahk0413 Oct 14, 2025
993820d
Design/main#11 (#138)
EunbinJung Oct 15, 2025
d6035f4
[fix] ๋ ˆ์ด์•„์›ƒ ๋ถ„๋ฆฌ (#139)
ahk0413 Oct 15, 2025
0a71cd0
Refactor/recipe fetch (#140)
mtm-git1018 Oct 15, 2025
8ee022c
Merge remote-tracking branch 'origin/main' into dev
mtm-git1018 Oct 15, 2025
95248c2
[fix] ๊ฒฝ๋กœ ์˜ค๋ฅ˜ ์ˆ˜์ •
mtm-git1018 Oct 15, 2025
a160b2a
๊ฒฝ๋กœ ์ˆ˜์ •
mtm-git1018 Oct 15, 2025
9c64186
[fix] ๊ฒฝ๋กœ์ˆ˜์ •
mtm-git1018 Oct 15, 2025
52e82c3
Feat/write#19 (#142)
EunbinJung Oct 15, 2025
3f0e6f3
[fix] MainSlide ์ˆ˜์ • (#143)
ahk0413 Oct 15, 2025
1d0e476
Refactor/์นตํ…Œ์ผ ์ •๋ ฌ ๊ธฐ๋Šฅ ์ˆ˜์ • (#144)
mtm-git1018 Oct 15, 2025
0d6c6be
Merge remote-tracking branch 'origin/main' into dev
mtm-git1018 Oct 15, 2025
c3c3644
[fix]์ถฉ๋Œ์—๋Ÿฌ์ˆ˜์ •
mtm-git1018 Oct 15, 2025
d28a1f4
[style] ํฐํŠธ ์ถ”๊ฐ€
mtm-git1018 Oct 15, 2025
94a65e0
[fix]ํŒŒ์ผ ๋‚ด ์ฝ”๋“œ์ค‘๋ณต ์ˆ˜์ •
mtm-git1018 Oct 15, 2025
9e976a5
[chore]ํฌ๋งคํŒ…
mtm-git1018 Oct 15, 2025
06e809c
[fix]ํƒ€์ž…์ค‘๋ณต ์ˆ˜์ •
mtm-git1018 Oct 15, 2025
fcef37f
[chore]ํฌ๋งคํŒ…
mtm-git1018 Oct 15, 2025
ca5539a
docs/ ํฐํŠธ ์ถ”๊ฐ€ ๋ฐ ์‚ญ์ œ (#146)
mtm-git1018 Oct 15, 2025
1c30893
[fix] scroll ์œ„์น˜์ด๋™
ahk0413 Oct 15, 2025
b517217
Merge remote-tracking branch 'origin/dev' into dev
ahk0413 Oct 15, 2025
ad53efa
Feat/write#19 (#147)
EunbinJung Oct 15, 2025
13fd5e1
Merge remote-tracking branch 'origin/dev' into dev
ahk0413 Oct 15, 2025
b75f7e8
[style] ํฐํŠธ ์ถ”๊ฐ€
mtm-git1018 Oct 15, 2025
0efeda3
Merge branch 'dev' of https://github.com/prgrms-web-devcourse-final-pโ€ฆ
mtm-git1018 Oct 15, 2025
82254e5
[feat] ์Šคํฌ๋กค ๋ฒ„ํŠผ ์ถ”๊ฐ€
ahk0413 Oct 15, 2025
d02add2
Merge remote-tracking branch 'origin/dev' into dev
ahk0413 Oct 15, 2025
3723a9b
[fix] ์‹œ์ž‘ ์• ๋‹ˆ๋ฉ”์ด์…˜ ์›๋ณต
ahk0413 Oct 15, 2025
c99fd87
[docs]README
mtm-git1018 Oct 15, 2025
49a5fbd
Feat/write#19 (#148)
EunbinJung Oct 15, 2025
85690d2
Merge branch 'main' into dev
EunbinJung Oct 15, 2025
c4b7b8b
[fix] ๋กœ๊ทธ์ธ ์‹œ ์—ฌ๋Ÿฌ๋ฒˆ ๋œจ๋Š” toast ์•Œ๋ฆผ ์ด์Šˆ ์ˆ˜์ •
ahk0413 Oct 15, 2025
b3ceb95
Merge branch 'dev' of https://github.com/prgrms-web-devcourse-final-pโ€ฆ
ahk0413 Oct 15, 2025
dfe596e
fix/๋ฉ”์ธํŽ˜์ด์ง€ ์•„์ฝ”๋””์–ธ๋ฐ•์Šค ์˜ค๋ฅ˜ ์ˆ˜์ • (#151)
mtm-git1018 Oct 15, 2025
93c9bef
Merge remote-tracking branch 'origin/main' into dev
mtm-git1018 Oct 15, 2025
1353b45
[fix] ์ˆ˜์ •
EunbinJung Oct 16, 2025
ff1a17a
[fix] ๋‹ค์‹œ ์ˆ˜์ •
EunbinJung Oct 16, 2025
c7f4eb3
์ˆ˜์ •
EunbinJung Oct 16, 2025
42e2438
์ˆ˜์ •
EunbinJung Oct 16, 2025
2591b69
Merge branch 'dev' of https://github.com/prgrms-web-devcourse-final-pโ€ฆ
EunbinJung Oct 16, 2025
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
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# SSOUL ํ”„๋กœ์ ํŠธ ์ธ์ˆ˜์ธ๊ณ„ ๋ฌธ์„œ

## ๏ฟฝ๏ฟฝ ํ”„๋กœ์ ํŠธ ๊ฐœ์š”
## ํ”„๋กœ์ ํŠธ ๊ฐœ์š”

**ํ”„๋กœ์ ํŠธ๋ช…**: SSOUL (์นตํ…Œ์ผ์„ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ์„œ๋น„์Šค)
**๊ธฐ์ˆ  ์Šคํƒ**: Next.js 15, React 19, TypeScript, Tailwind CSS
**์ €์žฅ์†Œ**: https://github.com/prgrms-web-devcourse-final-project/WEB5_6_HaeDokCoding_FE

## ๏ฟฝ๏ฟฝ ์‹œ์ž‘ํ•˜๊ธฐ
## ์‹œ์ž‘ํ•˜๊ธฐ

### ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ค์ •
```bash
Expand Down Expand Up @@ -60,7 +60,7 @@ src/
โ””โ”€โ”€ utills/ # ์œ ํ‹ธ๋ฆฌํ‹ฐ ํ•จ์ˆ˜
```

## ๏ฟฝ๏ฟฝ ์ฃผ์š” ๊ธฐ๋Šฅ
## ์ฃผ์š” ๊ธฐ๋Šฅ

### 1. ์ธ์ฆ ์‹œ์Šคํ…œ
- **์†Œ์…œ ๋กœ๊ทธ์ธ**: Google, Kakao, Naver ์ง€์›
Expand All @@ -72,19 +72,19 @@ src/

### 2. ํŽ˜์ด์ง€๋ณ„ ๊ธฐ๋Šฅ

#### ๏ฟฝ๏ฟฝ ๋ฉ”์ธ ํŽ˜์ด์ง€ (`/`)
#### ๋ฉ”์ธ ํŽ˜์ด์ง€ (`/`)
- ํ˜„์žฌ ๊ธฐ๋ณธ ๊ตฌ์กฐ๋งŒ ๊ตฌํ˜„๋จ
- ์ถ”ํ›„ ํ™•์žฅ ์˜ˆ์ •

#### ๏ฟฝ๏ฟฝ ์นตํ…Œ์ผ ๋ ˆ์‹œํ”ผ (`/recipe`)
#### ์นตํ…Œ์ผ ๋ ˆ์‹œํ”ผ (`/recipe`)
- **์ฃผ์š” ์ปดํฌ๋„ŒํŠธ**:
- `CocktailList`: ์นตํ…Œ์ผ ๋ชฉ๋ก ํ‘œ์‹œ
- `Accordion`: ํ•„ํ„ฐ๋ง ์˜ต์…˜
- `SelectBox`: ์ •๋ ฌ ์˜ต์…˜
- **๊ธฐ๋Šฅ**: ๊ฒ€์ƒ‰, ํ•„ํ„ฐ๋ง, ์ •๋ ฌ
- **์ƒ์„ธ ํŽ˜์ด์ง€**: `/recipe/[id]` - ๊ฐœ๋ณ„ ์นตํ…Œ์ผ ์ƒ์„ธ ์ •๋ณด

#### ๏ฟฝ๏ฟฝ ์ปค๋ฎค๋‹ˆํ‹ฐ (`/community`)
#### ์ปค๋ฎค๋‹ˆํ‹ฐ (`/community`)
- **์ฃผ์š” ์ปดํฌ๋„ŒํŠธ**:
- `PostCard`: ๊ฒŒ์‹œ๋ฌผ ์นด๋“œ
- `CommunityTab`: ์นดํ…Œ๊ณ ๋ฆฌ ํƒญ
Expand All @@ -93,28 +93,28 @@ src/
- **๊ธ€์“ฐ๊ธฐ**: `/community/write`
- **์ƒ์„ธ ํŽ˜์ด์ง€**: `/community/[id]`

#### ๏ฟฝ๏ฟฝ ์ทจํ–ฅ ์ถ”์ฒœ (`/recommend`)
#### ์ทจํ–ฅ ์ถ”์ฒœ (`/recommend`)
- **์ฑ—๋ด‡ ๊ธฐ๋ฐ˜ ์ถ”์ฒœ**: `ChatSection` ์ปดํฌ๋„ŒํŠธ
- **์ฃผ์š” ์ปดํฌ๋„ŒํŠธ**:
- `BotMessage`, `UserMessage`: ๋ฉ”์‹œ์ง€ ์ปดํฌ๋„ŒํŠธ
- `BotOptions`: ์„ ํƒ ์˜ต์…˜
- `MessageInput`: ์ž…๋ ฅ์ฐฝ
- `TypingIndicator`: ํƒ€์ดํ•‘ ํšจ๊ณผ

#### ๏ฟฝ๏ฟฝ ๋งˆ์ดํŽ˜์ด์ง€ (`/mypage`)
#### ๋งˆ์ดํŽ˜์ด์ง€ (`/mypage`)
- **๊ธฐ๋ณธ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ**: `/mypage` โ†’ `/mypage/mybar`
- **์ฃผ์š” ์„น์…˜**:
- `/mypage/mybar`: ๋‚˜๋งŒ์˜ ๋ฐ”
- `/mypage/my-active`: ํ™œ๋™ ๋‚ด์—ญ (๊ฒŒ์‹œ๋ฌผ, ๋Œ“๊ธ€, ์ข‹์•„์š”)
- `/mypage/my-alarm`: ์•Œ๋ฆผ ์„ค์ •
- `/mypage/my-setting`: ๊ณ„์ • ์„ค์ •

#### ๏ฟฝ๏ฟฝ ๋กœ๊ทธ์ธ (`/login`)
#### ๋กœ๊ทธ์ธ (`/login`)
- **์†Œ์…œ ๋กœ๊ทธ์ธ**: `SocialLogin` ์ปดํฌ๋„ŒํŠธ
- **์„ฑ๊ณต ํŽ˜์ด์ง€**: `/login/success`
- **์‹ ๊ทœ ์‚ฌ์šฉ์ž**: `/login/user/first-user`

## ๏ฟฝ๏ฟฝ ๊ธฐ์ˆ ์  ์„ธ๋ถ€์‚ฌํ•ญ
## ๊ธฐ์ˆ ์  ์„ธ๋ถ€์‚ฌํ•ญ

### ์ƒํƒœ ๊ด€๋ฆฌ
- **Zustand**: ํด๋ผ์ด์–ธํŠธ ์ƒํƒœ ๊ด€๋ฆฌ
Expand All @@ -136,34 +136,34 @@ src/
- **Husky**: Git hooks
- **Lint-staged**: ์ปค๋ฐ‹ ์ „ ๊ฒ€์‚ฌ

## ๏ฟฝ๏ฟฝ ์ฃผ์š” ์„ค์ • ํŒŒ์ผ
## ์ฃผ์š” ์„ค์ • ํŒŒ์ผ

- `next.config.ts`: Next.js ์„ค์ •
- `tailwind.config.js`: Tailwind CSS ์„ค์ •
- `eslint.config.mjs`: ESLint ์„ค์ •
- `tsconfig.json`: TypeScript ์„ค์ •

## ๏ฟฝ๏ฟฝ ๋ฐ˜์‘ํ˜• ๋””์ž์ธ
## ๋ฐ˜์‘ํ˜• ๋””์ž์ธ

ํ”„๋กœ์ ํŠธ๋Š” ๋ชจ๋ฐ”์ผ ์šฐ์„ (Mobile-first) ์ ‘๊ทผ ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค:
- **๋ชจ๋ฐ”์ผ**: ๊ธฐ๋ณธ ์Šคํƒ€์ผ
- **ํƒœ๋ธ”๋ฆฟ**: `md:` prefix
- **๋ฐ์Šคํฌํ†ฑ**: `lg:`, `xl:` prefix

## ๏ฟฝ๏ฟฝ ์ฃผ์˜์‚ฌํ•ญ
## ์ฃผ์˜์‚ฌํ•ญ

1. **ํ™˜๊ฒฝ ๋ณ€์ˆ˜**: ๊ฐœ๋ฐœ/์šด์˜ ํ™˜๊ฒฝ์— ๋งž๋Š” API URL ์„ค์ • ํ•„์š”
2. **์ธ์ฆ ํ† ํฐ**: localStorage์— ์ €์žฅ๋˜๋ฏ€๋กœ ๋ณด์•ˆ ๊ณ ๋ ค ํ•„์š”
3. **API ํ†ต์‹ **: `credentials: 'include'` ์„ค์ •์œผ๋กœ ์ฟ ํ‚ค ๊ธฐ๋ฐ˜ ์ธ์ฆ
4. **Git Hooks**: Husky ์„ค์ •์œผ๋กœ ์ปค๋ฐ‹ ์ „ ์ž๋™ ๊ฒ€์‚ฌ

## ๏ฟฝ๏ฟฝ ์ถ”๊ฐ€ ๋ฌธ์˜
## ์ถ”๊ฐ€ ๋ฌธ์˜

- **์ €์žฅ์†Œ ์ด์Šˆ**: https://github.com/prgrms-web-devcourse-final-project/WEB5_6_HaeDokCoding_FE/issues
- **์ฃผ์š” ๋ธŒ๋žœ์น˜**: `main` (๋ฉ”์ธ), `dev` (๊ฐœ๋ฐœ)

---

**์ž‘์„ฑ์ผ**: 2025-10-14
**์ž‘์„ฑ์ž**: ์ด์„ฑํ—Œ
**์ž‘์„ฑ์ž**: ์ •์€๋นˆ | ๊น€์•„ํ˜„ | ๋ฌธํƒœ๋ฏผ
**๋ฒ„์ „**: 1.0
13 changes: 0 additions & 13 deletions src/app/(no-layout)/layout.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import '@/shared/styles/global.css';
import type { Metadata } from 'next';
import '@/shared/styles/global.css';
import { Toaster } from 'react-hot-toast';
import ScrollTopBtnWrapper from '@/shared/components/scroll-top/ScrollTopBtnWrapper';
import KaKaoScript from './api/kakao/KaKaoScript';
Expand Down
4 changes: 2 additions & 2 deletions src/domains/community/api/fetchPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const fetchPostByTab = async ({
const params = new URLSearchParams();

if (category && category !== 'all') {
const categoryId = tabItem.findIndex((tab) => tab.key === category);
if (categoryId >= 0) {
const categoryId = tabItem.findIndex((tab) => tab.key === category) + 1;
if (categoryId > 0) {
params.set('categoryId', categoryId.toString());
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/domains/community/write/WriteSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function WriteSection({ mode, postId }: Props) {
return;
}

const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName);
const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName) + 1;

if (categoryId === -1) {
toastError('์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”.');
Expand Down Expand Up @@ -216,7 +216,7 @@ function WriteSection({ mode, postId }: Props) {
return false;
}

const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName);
const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName) + 1;
if (categoryId === -1) {
toastError('์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”.');
return false;
Expand Down
64 changes: 64 additions & 0 deletions src/domains/main/api/useSSENotification.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { useEffect, useRef, useState } from 'react';
import { getApi } from '@/app/api/config/appConfig';

export function useSSENotification(isLoggedIn: boolean) {
const [hasNewNotification, setHasNewNotification] = useState(false);
const eventSourceRef = useRef<EventSource | null>(null);
const isConnectingRef = useRef(false);

useEffect(() => {
// ๋กœ๊ทธ์ธ ์•ˆ ํ–ˆ์œผ๋ฉด ์—ฐ๊ฒฐ ์•ˆ ํ•จ
if (!isLoggedIn) {
if (eventSourceRef.current) {
eventSourceRef.current.close();
eventSourceRef.current = null;
isConnectingRef.current = false;
}
return;
}

// ์ด๋ฏธ ์—ฐ๊ฒฐ ์ค‘์ด๊ฑฐ๋‚˜ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์œผ๋ฉด ์ค‘๋ณต ๋ฐฉ์ง€
if (isConnectingRef.current || eventSourceRef.current) {
return;
}

isConnectingRef.current = true;

const eventSource = new EventSource(`${getApi}/me/subscribe`, {
withCredentials: true,
});

eventSourceRef.current = eventSource;

eventSource.onopen = () => {
isConnectingRef.current = false;
};

eventSource.onmessage = () => {
setHasNewNotification(true);
};

eventSource.onerror = () => {
isConnectingRef.current = false;

if (eventSource.readyState === EventSource.CLOSED) {
eventSourceRef.current = null;
}
};

// cleanup ํ•จ์ˆ˜
return () => {
if (eventSourceRef.current) {
eventSourceRef.current.close();
eventSourceRef.current = null;
}
isConnectingRef.current = false;
};
}, [isLoggedIn]); // isLoggedIn๋งŒ ์˜์กด์„ฑ์œผ๋กœ

const clearNotification = () => {
setHasNewNotification(false);
};

return { hasNewNotification, clearNotification };
}
9 changes: 5 additions & 4 deletions src/domains/main/cocktailDrop/CocktailDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function CocktailDrop({ isDesktop = false }: CocktailDropProps) {

// ๋กœ๊ณ  ์œ„์—์„œ ์•„๋ž˜๋กœ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๋“ฑ์žฅ
const screenWidth = window.innerWidth;

const viewportHeight = window.innerHeight;
const isTablet = screenWidth >= 640 && screenWidth < 1024;
const isMobile = screenWidth < 640;
Expand All @@ -54,7 +55,7 @@ function CocktailDrop({ isDesktop = false }: CocktailDropProps) {
? `-${viewportHeight * 0.3}px`
: isTablet
? `-${viewportHeight * -0.8}px`
: '0px';
: '210px';

gsap.fromTo(
logoRef.current,
Expand Down Expand Up @@ -87,16 +88,16 @@ function CocktailDrop({ isDesktop = false }: CocktailDropProps) {
{/* ๋Œ€๊ฐ์„  ์ค„ 1 */}
<div
ref={line1Ref}
className="absolute md:top-[100px] top-[75px] left-[-50%] w-[200%] md:h-[80px] h-[50px] bg-secondary/80 rotate-[8deg] z-10"
className="absolute lg:top-[150px] md:top-[100px] top-[75px] left-[-50%] w-[200%] md:h-[80px] h-[50px] bg-secondary/80 rotate-[8deg] z-10"
/>
{/* ๋Œ€๊ฐ์„  ์ค„ 2 */}
<div
ref={line2Ref}
className="absolute md:top-[200px] top-[150px] left-[-50%] w-[200%] md:h-[80px] h-[50px] bg-secondary rotate-[8deg] z-10"
className="absolute lg:top-[250px] md:top-[200px] top-[150px] left-[-50%] w-[200%] md:h-[80px] h-[50px] bg-secondary rotate-[8deg] z-10"
/>

{/* ๋กœ๊ณ  */}
<div ref={logoRef} className="absolute z-4 md:w-115 w-65 md:h-90 h-40">
<div ref={logoRef} className="absolute z-4 lg:w-125 md:w-115 w-65 lg:h-110 md:h-90 h-40">
<Image
src="/logo.svg"
alt="๋กœ๊ณ  ์ด๋ฏธ์ง€"
Expand Down
4 changes: 2 additions & 2 deletions src/domains/main/components/3d/HomeText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function HomeText({ isDesktop }: { isDesktop: boolean }) {
SSoul์ด ์‰ฝ๊ฒŒ ๊ณจ๋ผ๋“œ๋ฆด๊ฒŒ์š”.
</p>
) : (
<p className="absolute bottom-45 right-12 font-serif text-xl text-right font-normal z-20">
์–ด๋–ค ์นตํ…Œ์ผ์ด ๋Œ๋ฆฌ์‹œ๋‚˜์š”? SSoul์ด ์‰ฝ๊ฒŒ ๊ณจ๋ผ๋“œ๋ฆด๊ฒŒ์š”.
<p className="absolute bottom-45 right-32 font-serif text-2xl text-right font-normal z-20">
์–ด๋–ค ์นตํ…Œ์ผ์ด ๋Œ๋ฆฌ์‹œ๋‚˜์š”? <br /> SSoul์ด ์‰ฝ๊ฒŒ ๊ณจ๋ผ๋“œ๋ฆด๊ฒŒ์š”.
</p>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ function MobileAbv() {
<h2 className="text-xl sm:text-2xl font-black text-white">๋‚ด ์•Œ์ฝœ๋„์ˆ˜ UP</h2>
<button
type="button"
className={clsx(`block duration-300 sm:hidden`, isClick ? 'rotate-135' : 'rotate-0')}
className={clsx(
`block z-1 duration-300 sm:hidden`,
isClick ? 'rotate-[135deg]' : 'rotate-0'
)}
onClick={() => setIsClick(!isClick)}
>
<Add />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function MobileSlideCommunity() {
<h2 className="text-xl sm:text-2xl font-black text-white">ํ•จ๊ป˜ ๋‚˜๋ˆ„๋Š” ์นตํ…Œ์ผ ์ด์•ผ๊ธฐ</h2>
<button
type="button"
className={clsx(`block duration-300 sm:hidden`, isClick ? 'rotate-135' : 'rotate-0')}
className={clsx(
`block duration-300 z-1 sm:hidden`,
isClick ? 'rotate-[135deg]' : 'rotate-0'
)}
onClick={() => setIsClick(!isClick)}
>
<Add />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ function MobileSlideTest() {
<h2 className="text-xl sm:text-2xl font-black text-white">AI๊ธฐ๋ฐ˜ ์ทจํ–ฅํ…Œ์ŠคํŠธ</h2>
<button
type="button"
className={clsx(`block duration-300 sm:hidden`, isClick ? 'rotate-135' : 'rotate-0')}
onClick={() => setIsClick(!isClick)}
className={clsx(
`block duration-300 z-1 sm:hidden`,
isClick ? 'rotate-[135deg]' : 'rotate-0'
)}
onClick={() => {
setIsClick(!isClick);
}}
>
<Add />
<Add className="pointer-events-none" />
</button>
</header>
<div
Expand Down
14 changes: 1 addition & 13 deletions src/domains/mypage/components/pages/my-active/MyLike.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ function MyLike() {
fetchLike();
}, []);

useEffect(() => {
console.log(myLike);
}, [myLike]);

return (
<section className="flex justify-center">
{myLike.length > 0 ? (
<PostCard posts={myLike} isLoading={isLoading} />
) : (
<div>์•„์ง ์ข‹์•„์š”๋ฅผ ๋ˆ„๋ฅธ ๊ธ€์ด ์—†์Šต๋‹ˆ๋‹ค</div>
)}
</section>
);
return <PostCard posts={myLike} isLoading={isLoading} />;
}
export default MyLike;
1 change: 0 additions & 1 deletion src/domains/shared/components/comment/CommentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ function CommentList({
aria-label="๋Œ“๊ธ€ ๋ชฉ๋ก"
className="flex flex-col mt-6 overflow-y-auto no-scrollbar"
ref={parentRef}
style={{ minHeight: '300px', maxHeight: '600px' }}
>
<ul>
{comments?.map((comment, index) => {
Expand Down
Loading