Skip to content

Commit

Permalink
feat: ✨ 文本
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuba-Ahhh committed Sep 30, 2024
1 parent 238ceb8 commit df9c5b6
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 68 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<meta name="description" content="React Typescript Starter Template with Vite" />
<link rel="icon" type="image/svg+xml" href="/icons/favicon.jpeg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<title>JianLai</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css" />
</head>
<body>
<div id="root"></div>
Expand Down
3 changes: 3 additions & 0 deletions src/components/DictumList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const DictumList = () => {
swapy.destroy();
};
}, []);

const origin = `—— 烽火戏诸侯《剑来》`;
return (
<div className="grid gap-8 p-8 md:grid-cols-2 lg:grid-cols-3" id="container">
{dictums.map((dictum, index) => (
Expand All @@ -37,6 +39,7 @@ const DictumList = () => {
data-swapy-item={dictum}
>
<p className="text-lg font-semibold text-gray-900 leading-relaxed">{dictum}</p>
<p className="text-right text-[#6f7070]">{origin}</p>
</div>
</div>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Navbar = () => {
<ul className="navbar bg-base-100 text-base-content sticky top-0 z-30 flex h-16 w-full justify-center bg-opacity-90 backdrop-blur transition-shadow duration-100 [transform:translate3d(0,0,0)] shadow-sm">
<li className="navbar-start">
<Link to="/" className="text-2xl font-bold">
剑来小说
小说
</Link>
</li>
<div className="navbar-end flex-grow flex justify-end items-center space-x-4">
Expand Down
Loading

0 comments on commit df9c5b6

Please sign in to comment.