feat: 앱을 웹과 맞춤 — 좋아요 하트·토스트, 별똥별, 단풍잎, 고운바탕, 안내 높이 유지, 시트 배경 페이드
This commit is contained in:
1 parent
865c521ab8
commit
b5d9adf396
19 files changed
+247
-52
No files matched your search
@@ -3,6 +3,7 @@ import { ARTICLE_LABEL, cardBg, dateRange, shortDay } from '@nalssigak/shared/li
|
||||
import { LinearGradient } from 'expo-linear-gradient';
|
||||
import { Pressable, Text, View } from 'react-native';
|
||||
|
||||
import { Fall } from '@/components/fall';
|
||||
import { Credit, Ic, Skel, Thumb } from '@/components/ui';
|
||||
import { CARD_BG } from '@/lib/colors';
|
||||
import { useSky } from '@/lib/sky';
|
||||
@@ -54,10 +55,12 @@ export function SeasonHead({ week: w, onPress }: { week: ResSeasonWeek; onPress:
|
||||
return (
|
||||
<Pressable onPress={onPress} className={HEAD_BOX}>
|
||||
<LinearGradient colors={CARD_BG[night ? 'night' : 'day'].peach} style={{ position: 'absolute', inset: 0 }} />
|
||||
<Ic name="maple" size={140} style={{ position: 'absolute', top: '18%', right: 14, width: '38%' }} />
|
||||
<Fall d={100} f={4800} style={{ position: 'absolute', top: '18%', right: 14, width: '38%', alignItems: 'center' }}>
|
||||
<Ic name="maple" size={140} />
|
||||
</Fall>
|
||||
<Text className="text-[13px] font-extrabold text-ink opacity-75">이번 주 특집{w.start && w.end ? ` · ${dateRange(w.start, w.end)}` : ''}</Text>
|
||||
<Text className="mt-1 max-w-[62%] font-jua text-[29px] leading-tight text-ink">{w.headline}</Text>
|
||||
{poem.length > 0 && <Text className="mt-auto max-w-[72%] pt-3 text-[22px] leading-[37px] text-ink">{poem.join('\n')}</Text>}
|
||||
{poem.length > 0 && <Text className="mt-auto max-w-[72%] pt-3 font-batang text-[22px] leading-[37px] text-ink">{poem.join('\n')}</Text>}
|
||||
{w.term_now && w.term_next && (
|
||||
<View className={`max-w-[70%] ${poem.length ? 'mt-2.5' : 'mt-auto'}`}>
|
||||
<View className="flex-row justify-between">
|
||||
|
||||
Reference in new issue
Block a user