aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-01-02 21:28:31 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-01-02 21:28:31 -0500
commitdd7a71191a9e887624b2c537a00d8f30bab39337 (patch)
treec5fe73efbd1908989f983ef8e09da571c864728f /src/components
parent9735f3bd1d8f823402814116464f1e3ae344e3e9 (diff)
downloadpersonal-website-dd7a71191a9e887624b2c537a00d8f30bab39337.tar.gz
personal-website-dd7a71191a9e887624b2c537a00d8f30bab39337.tar.bz2
personal-website-dd7a71191a9e887624b2c537a00d8f30bab39337.zip
Finished first part of homepage
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Navbar.astro6
-rw-r--r--src/components/Navbar.css11
2 files changed, 9 insertions, 8 deletions
diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro
index 17da17d..a838438 100644
--- a/src/components/Navbar.astro
+++ b/src/components/Navbar.astro
@@ -2,8 +2,8 @@
import "./Navbar.css"
---
<nav>
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">Projects</a></li>
+ <ul class="nav-list">
+ <li class="nav-links"><a href="/" class="nav-link">Home</a></li>
+ <li class="nav-links"><a href="#" class="nav-link">Projects</a></li>
</ul>
</nav>
diff --git a/src/components/Navbar.css b/src/components/Navbar.css
index 5987d16..7b1a334 100644
--- a/src/components/Navbar.css
+++ b/src/components/Navbar.css
@@ -3,7 +3,7 @@ nav {
padding-top: 20px;
padding-bottom: 30px;
}
-ul {
+ul.nav-list {
list-style-type: none;
margin: 0;
padding: 0;
@@ -12,22 +12,23 @@ ul {
justify-content: center;
}
-li {
+li.nav-links {
margin: 0 1rem;
}
-a {
+
+a.nav-link {
font-size: 1.2rem;
text-decoration: none;
color: #FFFFFF;
}
-a:hover {
+a.nav-link:hover {
font-weight: 500;
color: #9ECD9D;
transition: ease-in-out 0.1s;
}
-a:active {
+a.nav-link:active {
color: #609460;
}