-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOnboardingNicknamePage.tsx
More file actions
72 lines (61 loc) · 2.09 KB
/
OnboardingNicknamePage.tsx
File metadata and controls
72 lines (61 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { Button, Header } from '@/components';
import Input from '@/components/common/Input/Input';
import ProgressBar from '@/components/common/ProgressBar/ProgressBar';
const OnboardingNicknamePage = () => {
const [input, setInput] = useState('');
const navigate = useNavigate();
const handleNext = () => {
navigate('/onboarding/genre');
};
const handleBack = () => {
navigate(-1);
};
return (
<div className="min-h-screen bg-gray-900 text-white w-full max-w-[375px] mx-auto relative pb-32">
{/* 상단 헤더 */}
<Header title="" onBackClick={handleBack} showLike={false} showBookmark={false} />
{/* 진행도 바 */}
<ProgressBar currentStep={1} totalSteps={3} />
{/* 콘텐츠 영역 */}
<div className="px-6 mt-6">
{/* 타이틀 */}
<h1 className="text-title-2 mb-10">프로필을 만들어주세요</h1>
{/* 프로필 이미지 (예시용 박스) */}
<div className="flex justify-center mb-10">
<div className="w-36 h-36 rounded-full bg-gray-100 flex items-center justify-center text-black text-sm">
갤러리 아이콘
</div>
</div>
{/* 닉네임 입력 */}
<div className="mb-2">
<Input
label=""
value={input}
onChange={setInput}
placeholder="닉네임을 입력해주세요"
placeholderColorType="gray"
showBackground={true}
/>
</div>
<p className="text-caption-3 text-gray-500 ml-1">10자 이내로 작성해주세요.</p>
</div>
{/* 하단 버튼 */}
<div className="fixed bottom-8 left-1/2 -translate-x-1/2 w-full max-w-[375px] px-6">
<Button
onClick={handleNext}
disabled={!input.trim()}
variant="primary"
color="red"
size="lg"
fontType="title-3"
className="w-full"
>
다음
</Button>
</div>
</div>
);
};
export default OnboardingNicknamePage;