Skip to content

Commit

Permalink
style(navbar): 完善导航栏样式
Browse files Browse the repository at this point in the history
  • Loading branch information
opacity committed Apr 3, 2024
1 parent 9aeb9cb commit b6da486
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 18 deletions.
4 changes: 4 additions & 0 deletions public/images/nav/book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/nav/book_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/images/nav/find.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/nav/find_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/images/nav/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/nav/user_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 16 additions & 18 deletions src/app/_components/common/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
"use client"
import React from 'react';
import Link from 'next/link';

const Navbar = () => {
return (
<nav>
<ul>
<li>
<Link href="find">
发现
</Link>
</li>
<li>
<Link href="subscribe">
订阅
</Link>
</li>
<li>
<Link href="user">
我的
</Link>
</li>
</ul>
<nav className='flex justify-center'>
<div className='flex flex-row justify-center w-65% h-20.8 text-center text-4 bg-[#FFF] border-rd-13 shadow-[0px_1px_4px_2px_rgba(0,0,0,0.05)] overflow-hidden'>
<Link href="find" className='flex-1 text-[#b5b5b5] font-500 mt-1.2'>
<img src={"/images/nav/find.svg"} alt={"find"} className='m-auto mb-1.2 w-9.6 h-9.6'></img>
发现
</Link>
<Link href="subscribe" className='flex-1 text-[#b5b5b5] font-500 mt-1.2'>
<img src={"/images/nav/book.svg"} alt={"subscribe"} className='m-auto mb-1.2 w-9.6 h-9.6'></img>
订阅
</Link>
<Link href="user" className='flex-1 text-[#b5b5b5] font-500 mt-1.2'>
<img src={"/images/nav/user.svg"} alt={"use"} className='m-auto mb-1.2 w-9.6 h-9.6'></img>
我的
</Link>
</div>
</nav>
);
};
Expand Down

0 comments on commit b6da486

Please sign in to comment.