Skip to content

Commit 43889e5

Browse files
committed
feat: add Home button to Book Review page for quick navigation
1 parent 5a1d39c commit 43889e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pages/book.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { GetStaticProps } from 'next';
22
import Header from '../components/Header';
33
import BookCard from '../components/BookCard';
44
import { getBooksMetaOnly, BookMeta } from '../lib/books';
5+
import { Home } from "lucide-react";
6+
import Link from "next/link";
57

68
export default function BooksPage({ books }: { books: BookMeta[] }) {
79
return (
@@ -24,6 +26,13 @@ export default function BooksPage({ books }: { books: BookMeta[] }) {
2426
</div>
2527
)}
2628
</main>
29+
<Link
30+
href="/"
31+
className="fixed bottom-6 right-6 z-50 bg-white border border-gray-300 rounded-lg shadow-md p-3 hover:shadow-lg transition"
32+
aria-label="홈으로 가기"
33+
>
34+
<Home className="w-6 h-6 text-gray-800"/>
35+
</Link>
2736
</>
2837
);
2938
}

0 commit comments

Comments
 (0)