Skip to content

Commit 26309c1

Browse files
authored
[style] 스켈레톤 ui 작업 (#75)
* [style] 추천 배경 이미지 변경 , repeat 넣기 * [style] 하트 z-index 제거 * [style] 배경 변경 * [style] input 최대 width 제한 * [style] 스켈레톤 ui 추가(spinner 오류로 임시)
1 parent ff188b0 commit 26309c1

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed

src/app/recommend/loading.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
function Loading() {
2+
return (
3+
<div className="page-layout w-full flex-center">
4+
<div className="flex flex-col gap-3">
5+
<div className="w-[6.25rem] h-[5rem] rounded-2xl rounded-tl-none bg-gray animation-pulse"></div>
6+
<p>
7+
쑤리가 출근 중이에요… 🍸
8+
<br />곧 맞춤 칵테일을 추천해드릴게요.
9+
</p>
10+
</div>
11+
</div>
12+
);
13+
}
14+
export default Loading;

src/app/recommend/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Bg from '@/shared/assets/images/recommend_bg.webp';
66
function Page() {
77
return (
88
<div
9-
className="relative bg-repeat-y bg-top bg-auto w-full flex"
9+
className="relative bg-repeat bg-auto w-full flex"
1010
style={{ backgroundImage: `url(${Bg.src})` }}
1111
>
1212
<h1 className="sr-only">취향추천하기</h1>

src/domains/recommend/components/ChatCocktailCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ function ChatCocktailCard() {
88
<div className="relative flex flex-col w-full min-w-[200px] rounded-2xl overflow-hidden bg-white shadow-[0_0_12px_rgba(255,255,255,0.4)]">
99
<Link href="/" className="block relative">
1010
<div className="relative w-full h-[200px]">
11-
<Image src={Dummy} fill className="object-cover" alt="칵테일 이름" />
11+
<Image src={Dummy} fill className="object-cover" alt="칵테일 이름" sizes="200px" />
1212
</div>
1313

1414
<div className="p-3 flex flex-col gap-1 text-center">
1515
<strong className="text-black text-lg">{'진피즈'}</strong>
1616
<span className="text-gray-500 text-sm">+ 상세보기</span>
1717
</div>
1818
</Link>
19-
<Keep className="absolute top-2 right-2 z-50" />
19+
<Keep className="absolute top-2 right-2" />
2020
</div>
2121
);
2222
}

src/domains/recommend/components/ChatForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import Send from '@/shared/assets/icons/send_36.svg';
44
import { keyDown } from '@/shared/utills/keyDown';
5-
import { useState } from 'react';
65

76
function ChatForm() {
87
const handleInput = (e: React.FormEvent<HTMLTextAreaElement>) => {
@@ -15,7 +14,7 @@ function ChatForm() {
1514
};
1615

1716
return (
18-
<div className="fixed left-0 bottom-0 w-full px-3 py-4 bg-primary">
17+
<div className="fixed left-1/2 bottom-0 -translate-x-1/2 w-full max-w-[62.5rem] px-3 py-4 bg-primary">
1918
<form onSubmit={(e) => e.preventDefault()}>
2019
<div className="flex items-end w-full gap-2">
2120
<label htmlFor="chatInput" className="sr-only">

src/domains/recommend/components/SsuryChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function SsuryChat() {
4848
alt="쑤리아바타"
4949
width={80}
5050
height={80}
51-
className="object-cover w-15 h-15"
51+
className="object-cover w-15 h-15 md:w-20 md:h-20"
5252
/>
5353
</div>
5454
<strong>쑤리</strong>
-227 KB
Loading

0 commit comments

Comments
 (0)