|
2 | 2 |
|
3 | 3 | import { useState, useEffect } from 'react'; |
4 | 4 | import Link from 'next/link'; |
| 5 | +import { Search } from 'lucide-react'; |
5 | 6 | import type { Post, Category, Series } from '@/types/archive'; |
6 | 7 | import { useLang } from '@/components/layout/LangProvider'; |
7 | 8 | import i18n from '@/lib/i18n'; |
@@ -255,17 +256,22 @@ export default function BookArchive({ posts, categories, series, fontClassName } |
255 | 256 | > |
256 | 257 | <RulingLines /> |
257 | 258 |
|
258 | | - {/* 헤더 */} |
| 259 | + {/* 검색 */} |
259 | 260 | <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.' : '제목, 태그, 기록 내용으로 찾습니다.'} |
262 | 274 | </p> |
263 | | - <h1 |
264 | | - className={`text-2xl leading-tight ${fontClassName}`} |
265 | | - style={{ color: TEXT_ACTIVE }} |
266 | | - > |
267 | | - {t.infiniteArchive} |
268 | | - </h1> |
269 | 275 | </div> |
270 | 276 |
|
271 | 277 | <Ornament /> |
|
0 commit comments