mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
feat: Add navigation links to header with responsive styling
This commit is contained in:
@@ -30,6 +30,24 @@
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
margin-right: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navLink {
|
||||||
|
color: var(--color-text);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 1rem;
|
||||||
|
opacity: 0.8;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navLink:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.header img {
|
.header img {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -453,4 +471,13 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
gap: 1rem;
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navLink {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,14 @@ export default function Home() {
|
|||||||
<div className={[styles.page, styles.pageWithHeader].join(" ")}>
|
<div className={[styles.page, styles.pageWithHeader].join(" ")}>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<div className={styles.logoMark}>
|
<div className={styles.logoMark}>
|
||||||
<img src="/unicord.png"></img>
|
<img src="/unicord.png" alt="Unicord logo"></img>
|
||||||
<div><span className={styles.logoMarkSpan}>uni</span>cord</div>
|
<div><span className={styles.logoMarkSpan}>uni</span>cord</div>
|
||||||
</div>
|
</div>
|
||||||
|
<nav className={styles.nav}>
|
||||||
|
<a href="/docs" className={styles.navLink}>Docs</a>
|
||||||
|
<a href="https://github.com/unicorddev/unicord" className={styles.navLink}>Source</a>
|
||||||
|
<a href="https://discord.gg/your-invite-here" className={styles.navLink}>Discord</a>
|
||||||
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<main className={styles.main}>
|
<main className={styles.main}>
|
||||||
<div className={styles.hero}>
|
<div className={styles.hero}>
|
||||||
|
|||||||
Reference in New Issue
Block a user