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 54093ae commit 2ea7eb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
27 changes: 11 additions & 16 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,23 @@ import { Link } from 'react-router-dom';

const Navbar = () => {
return (
<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 p-3">
<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 shadow-sm p-3">
<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">
<li className="hover:text-black transition duration-200 ease-in-out">
<Link to="/">剑来</Link>
</li>
<li className="hover:text-black transition duration-200 ease-in-out">
<Link to="/xuezhong">雪中</Link>
</li>
<li className="hover:text-black transition duration-200 ease-in-out">
<Link to="/animation">动漫</Link>
</li>
<li className="hover:text-black transition duration-200 ease-in-out">
<Link to="/romantic">浪漫</Link>
</li>
{/* <li className="hover:text-black transition duration-200 ease-in-out">
<Link to="/search">搜索</Link>
</li> */}
{[
{ name: '剑来', path: '/' },
{ name: '雪中', path: '/xuezhong' },
{ name: '动漫', path: '/animation' },
{ name: '浪漫', path: '/romantic' },
].map((item, index) => (
<li key={index} className="hover:text-black transition duration-200 ease-in-out">
<Link to={item.path}>{item.name}</Link>
</li>
))}
</div>
</ul>
);
Expand Down
2 changes: 1 addition & 1 deletion src/data/dictum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ export const dictums3: dictumsType = [
},
{
dictum:
'ᵀʰᵒᵘˢᵃⁿᵈˢ ᵒᶠ ᵐⁱˡᵉˢ ⁱⁿ ᵗʰᵉ ᵐᵒᵘⁿᵗᵃⁱⁿˢ, ʸᵒᵘ ᵃʳᵉ ᵐʸ ʳᵒᵐᵃⁿᶜᵉ ʰⁱᵈᵈᵉⁿ ⁱⁿ ᵗʰᵉ ˢᵗᵃʳˢ. 山野千里,你是我藏在星星里的浪漫。',
'Thousands of miles in the mountains, you are my romance hidden in the stars. 山野千里,你是我藏在星星里的浪漫。',
},
{
dictum:
Expand Down

0 comments on commit 2ea7eb5

Please sign in to comment.