Commit 7520d5f5 authored by timel's avatar timel

feat: nav link

parent c711f067
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
padding: 0 2rem; padding: 0 2rem 0 1rem;
gap: 1.5rem; gap: 1.5rem;
box-sizing: border-box; box-sizing: border-box;
.logo-container { .logo-container {
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
} }
} }
a { .link {
color: white; color: white;
font-size: 0.825rem; font-size: 0.825rem;
line-height: var(--header-height); line-height: var(--header-height);
......
...@@ -44,20 +44,33 @@ export const Component = () => { ...@@ -44,20 +44,33 @@ export const Component = () => {
<> <>
{!pathnamesHideHeader.includes(pathname) && ( {!pathnamesHideHeader.includes(pathname) && (
<nav className={styles.navbar}> <nav className={styles.navbar}>
<div className={styles["logo-container"]}> <a
href="https://github.com/DarkNeos/neos-ts"
title="repo"
className={styles["logo-container"]}
>
<img <img
className={styles.logo} className={styles.logo}
src={`${NeosConfig.assetsPath}/neos-logo.svg`} src={`${NeosConfig.assetsPath}/neos-logo.svg`}
alt="NEOS" alt="NEOS"
/> />
</div> </a>
<NavLink to="/">主页</NavLink>
<NavLink to="/match">匹配</NavLink> <NavLink to="/" className={styles.link}>
<NavLink to="/build">组卡</NavLink> 主页
</NavLink>
<NavLink to="/match" className={styles.link}>
匹配
</NavLink>
<NavLink to="/build" className={styles.link}>
组卡
</NavLink>
<span style={{ flexGrow: 1 }} /> <span style={{ flexGrow: 1 }} />
<span className={styles.profile}> <span className={styles.profile}>
<NeosAvatar /> <NeosAvatar />
<NavLink to="/profile">个人中心</NavLink> <NavLink to="/profile" className={styles.link}>
个人中心
</NavLink>
</span> </span>
</nav> </nav>
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment