Skip to content

Commit 4f3a49a

Browse files
committed
feat: add archive shelf search field
1 parent 467aec2 commit 4f3a49a

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

src/components/archive/BookArchive.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { useState, useEffect } from 'react';
44
import Link from 'next/link';
5+
import { Search } from 'lucide-react';
56
import type { Post, Category, Series } from '@/types/archive';
67
import { useLang } from '@/components/layout/LangProvider';
78
import i18n from '@/lib/i18n';
@@ -255,17 +256,22 @@ export default function BookArchive({ posts, categories, series, fontClassName }
255256
>
256257
<RulingLines />
257258

258-
{/* 헤더 */}
259+
{/* 검색 */}
259260
<div className="mt-6 mb-5">
260-
<p className="text-xs tracking-[0.35em] uppercase mb-3" style={{ color: TEXT_LABEL }}>
261-
{t.archiveLabel}
261+
<label className="mb-3 block text-[10px] tracking-[0.35em] uppercase" style={{ color: 'rgba(255,255,255,0.62)' }}>
262+
Search
263+
</label>
264+
<div className="mx-auto flex h-11 w-[92%] items-center gap-3 rounded-md border bg-black/25 px-4 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)] backdrop-blur-sm" style={{ borderColor: 'rgba(255,255,255,0.18)' }}>
265+
<Search size={15} className="shrink-0 text-white/70" />
266+
<input
267+
type="search"
268+
placeholder={lang === 'en' ? 'Search the shelves' : '서가에서 찾기'}
269+
className="w-full bg-transparent text-sm text-white outline-none placeholder:text-white/60"
270+
/>
271+
</div>
272+
<p className="mt-3 text-[10px]" style={{ color: 'rgba(255,255,255,0.25)' }}>
273+
{lang === 'en' ? 'Search by title, tag, or content.' : '제목, 태그, 기록 내용으로 찾습니다.'}
262274
</p>
263-
<h1
264-
className={`text-2xl leading-tight ${fontClassName}`}
265-
style={{ color: TEXT_ACTIVE }}
266-
>
267-
{t.infiniteArchive}
268-
</h1>
269275
</div>
270276

271277
<Ornament />

0 commit comments

Comments
 (0)