- 내 각: 아이콘 고르기(my_gak.icon), 카드는 아이콘·점수·아쉬운 조건만, 눌러서 상세(시간대·조건별 점수), 공유는 공통 공유 창 - 이야기: 오늘 쓴 내 글 묶음, '내 글' 칩·탭, 무한 스크롤, 사진 카메라 버튼, 지우기 확인, ⋯ 메뉴 하트 옆, 글 시간 서버 계산(1일 전) - 공유 이미지: 1:1·4:5 는 아래 얇은 띠 한 줄로 카드를 크게 - 행사: 수집 때 주소 저장(event.address), 행사 포스트에 장소·주소·기간 - 히어로 말풍선 '오늘 낮은 / 내일 낮은', 내일을 볼 때 배경도 따라감, 달 보름 순간이 낮이면 뜨는 시각으로 - 단풍 지도 피드 맨 위, 행사·계절 띠 포스트 틀 되돌림, 쇼츠 홈 버튼 가림·닫기 버튼, 하단 여백, 회색 글자 대비 - 토스 앱에선 쇼츠 플레이어를 하나만 띄움
81 lines
3.1 KiB
TypeScript
81 lines
3.1 KiB
TypeScript
type P = { className?: string }
|
|
|
|
const line = { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round' } as const
|
|
|
|
// 좋아요·댓글·보내기 세 아이콘이 나란히 놓일 때 크기가 같아 보이게: 하트는 원래 그림이 작아 10% 키우고(보이는 칸을 좁힘), 보내기는 커서 5% 줄인다
|
|
export function HeartIcon({ className }: P) {
|
|
return (
|
|
<svg viewBox="1.1 1.95 21.8 21.8" className={className} aria-hidden="true">
|
|
<path d="M12 20.5s-8-4.9-8-11A4.6 4.6 0 0 1 12 6.8a4.6 4.6 0 0 1 8 2.7c0 6.1-8 11-8 11z" />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export function CommentIcon({ className }: P) {
|
|
return (
|
|
<svg viewBox="0 0 24 24" className={className} aria-hidden="true">
|
|
<path d="M20.5 12a8.5 8.5 0 0 1-12.6 7.4L3.5 20.5l1.2-4.2A8.5 8.5 0 1 1 20.5 12z" />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export function SendIcon({ className }: P) {
|
|
return (
|
|
<svg viewBox="-0.65 -0.65 25.3 25.3" className={className} aria-hidden="true">
|
|
<path d="M21 3 10 14M21 3l-6.5 18-4-7.5L3 9.5z" />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export function CloseIcon({ className }: P) {
|
|
return (
|
|
<svg viewBox="0 0 24 24" {...line} strokeWidth="2.4" className={className} aria-hidden="true">
|
|
<path d="M6 6l12 12M18 6 6 18" />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export function CameraIcon({ className }: P) {
|
|
return (
|
|
<svg viewBox="0 0 24 24" {...line} strokeWidth="2" className={className} aria-hidden="true">
|
|
<path d="M4 8.5A1.5 1.5 0 0 1 5.5 7h2.2l1.5-2h5.6l1.5 2h2.2A1.5 1.5 0 0 1 20 8.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z" />
|
|
<circle cx="12" cy="13" r="3.5" />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export function PinIcon({ className }: P) {
|
|
return (
|
|
<svg viewBox="0 0 24 24" {...line} strokeWidth="2.2" className={className} aria-hidden="true">
|
|
<path d="M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z" />
|
|
<circle cx="12" cy="9.5" r="2.5" />
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export function TabIcon({ name, className }: P & { name: 'today' | 'gak' | 'sky' | 'week' | 'season' | 'talk' }) {
|
|
return (
|
|
<svg viewBox="0 0 24 24" {...line} className={className} aria-hidden="true">
|
|
{name === 'today' && <path d="M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z" />}
|
|
{name === 'gak' && (
|
|
<>
|
|
<rect x="3.5" y="3.5" width="7" height="7" rx="2" />
|
|
<rect x="13.5" y="3.5" width="7" height="7" rx="2" />
|
|
<rect x="3.5" y="13.5" width="7" height="7" rx="2" />
|
|
<rect x="13.5" y="13.5" width="7" height="7" rx="2" />
|
|
</>
|
|
)}
|
|
{name === 'sky' && <path d="M3 18h18M6 14a6 6 0 0 1 12 0M12 4v3M4.9 7.9l2 2M19.1 7.9l-2 2M8 21h8" />}
|
|
{name === 'week' && (
|
|
<>
|
|
<rect x="3.5" y="5" width="17" height="15.5" rx="2.5" />
|
|
<path d="M3.5 10h17M8 3v4M16 3v4" />
|
|
<circle cx="12" cy="15" r="1.6" />
|
|
</>
|
|
)}
|
|
{name === 'talk' && <path d="M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H10l-4.5 4v-4h0A1.5 1.5 0 0 1 4 14.5zM8 8.5h8M8 12h5" />}
|
|
{name === 'season' && <path d="M12 6.5C10 5 7 4.5 3.5 5v14c3.5-.5 6.5 0 8.5 1.5 2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5zM12 6.5v14" />}
|
|
</svg>
|
|
)
|
|
}
|