-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTimerSection.tsx
More file actions
65 lines (63 loc) · 2.81 KB
/
TimerSection.tsx
File metadata and controls
65 lines (63 loc) · 2.81 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
import { Trans, useTranslation } from 'react-i18next';
import timer from '../../../assets/landing/timer.png';
import timerOperationTime from '../../../assets/landing/timer_operation_time.png';
import timerTimeBased from '../../../assets/landing/timer_timebased.png';
import keyInfo from '../../../assets/landing/key_info.png';
import timeoutButton from '../../../assets/landing/timeout_button.png';
export default function TimerSection() {
const { t } = useTranslation();
return (
<section
id="section2"
className="flex w-[95%] max-w-[1226px] flex-col gap-24 md:w-[64%]"
>
<div>
<div className="relative inline-block text-[min(max(0.875rem,1.5vw),1.4rem)] font-semibold">
<span className="relative z-10">{t('타이머 화면')}</span>
<span className="absolute bottom-0 left-0 z-0 h-4 w-full bg-brand/70"></span>
</div>
<h2 className="mt-4 whitespace-pre-line text-left text-[min(max(1.25rem,2.75vw),2.5rem)] font-bold">
{t('원하는 때에\n작전 시간 사용하기')}
</h2>
</div>
<div className="flex flex-row items-center justify-center gap-8 px-4">
<img src={timer} alt="section301" className="flex w-1/2" />
<div className="flex w-1/2 flex-col items-center gap-4">
<h3 className="whitespace-pre-line text-[min(max(1.1rem,1.75vw),1.8rem)] font-semibold">
<Trans
i18nKey={
'토론자가 작전 시간을\n요청하면 <0/>\n버튼을 눌러 시간을 사용해요'
}
components={[
<img
key="timeout-button"
src={timeoutButton}
alt={t('작전 시간 사용')}
className="inline-block h-[1.8rem] align-middle"
style={{ transform: 'translateY(-0.1em)' }}
/>,
]}
/>
</h3>
</div>
</div>
<div className="flex flex-row items-center justify-center gap-8 px-4">
<div className="flex w-1/2 flex-col items-center gap-4">
<h3 className="whitespace-pre-line text-[min(max(1.1rem,1.75vw),1.8rem)] font-semibold">
{t('작전 시간이 나타나면\n원하는 시간을 입력하세요!')}
</h3>
</div>
<img src={timerOperationTime} alt="section302" className="flex w-1/2" />
</div>
<div>
<h2 className="mt-4 whitespace-pre-line text-left text-[min(max(1.25rem,2.75vw),2.5rem)] font-bold">
{t('키보드 단축키로\n더 편리한 조작')}
</h2>
</div>
<div className="flex flex-row items-center justify-center gap-8 px-4">
<img src={keyInfo} alt="section203" className="m-10 w-1/3" />
<img src={timerTimeBased} alt="section203" className="w-1/2" />
</div>
</section>
);
}