Fixed nav links and added rocket icon

This commit is contained in:
blake committed 2025-09-07 00:27:44 -05:00
1 parent d126880707
commit 83f78d4297
3 files changed
+96 -18

No files matched your search

+37 -10
View File
@@ -73,18 +73,45 @@ nav {
align-items: center;
}
a:link,
a:visited {
.nav-links {
list-style: none;
}
.main-nav-link {
display: inline-block;
}
.main-nav-link:link,
.main-nav-link:visited {
color: #fff;
text-decoration: none;
transition: all 0.3s ease;
}
a:hover,
a:active {
.main-nav-link:hover,
.main-nav-link:active {
transform: scale(1.1);
text-decoration: none;
font-weight: 500;
}
.nav-links {
display: flex;
gap: 5rem;
align-items: center;
}
.rocket-icon {
max-width: 4rem;
}
.main-nav-link.nav-btn:link,
.nav-btn:visited {
transition: all 0.3s;
}
.main-nav-link.nav-btn:hover,
.nav-btn:active {
transform: scale(1.3);
}
h1,
@@ -93,6 +120,7 @@ h3 {
font-family: "Space Grotesk", sans-serif;
font-weight: 700;
line-height: 1.05;
letter-spacing: -1.2px;
}
h1 {
@@ -107,6 +135,10 @@ h3 {
font-size: 3rem;
}
p {
line-height: 1.6;
}
.btn:link,
.btn:visited {
display: inline-block;
@@ -130,11 +162,6 @@ h3 {
font-weight: 500;
}
.nav-links {
display: flex;
gap: 5rem;
}
.logo {
width: 20rem;
}
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="512"
viewBox="0 0 512 512"
width="512"
version="1.1"
id="svg2"
sodipodi:docname="9036037_rocket_sharp_icon.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<sodipodi:namedview
id="namedview2"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1">
<inkscape:page
x="0"
y="0"
width="512"
height="512"
id="page2"
margin="0"
bleed="0" />
</sodipodi:namedview>
<title
id="title1" />
<path
d="m 477.64,38.26 a 4.75,4.75 0 0 0 -3.55,-3.66 c -58.57,-14.32 -193.9,36.71 -267.22,110 a 317,317 0 0 0 -35.63,42.1 c -22.61,-2 -45.22,-0.33 -64.49,8.07 C 52.38,218.7 36.55,281.14 32.14,308 a 9.64,9.64 0 0 0 10.55,11.2 L 130,309.57 a 194.1,194.1 0 0 0 1.19,19.7 19.53,19.53 0 0 0 5.7,12 L 170.7,375 a 19.59,19.59 0 0 0 12,5.7 193.53,193.53 0 0 0 19.59,1.19 l -9.58,87.2 a 9.65,9.65 0 0 0 11.2,10.55 c 26.81,-4.3 89.36,-20.13 113.15,-74.5 8.4,-19.27 10.12,-41.77 8.18,-64.27 a 317.66,317.66 0 0 0 42.21,-35.64 C 441,232.05 491.74,99.74 477.64,38.26 Z M 294.07,217.93 a 48,48 0 1 1 67.86,0 47.95,47.95 0 0 1 -67.86,0 z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
<path
d="m 168.4,399.43 c -5.48,5.49 -14.27,7.63 -24.85,9.46 -23.77,4.05 -44.76,-16.49 -40.49,-40.52 1.63,-9.11 6.45,-21.88 9.45,-24.88 a 4.37,4.37 0 0 0 -3.65,-7.45 60,60 0 0 0 -35.13,17.12 C 50.22,376.69 48,464 48,464 c 0,0 87.36,-2.22 110.87,-25.75 A 59.69,59.69 0 0 0 176,403.09 c 0.37,-4.18 -4.72,-6.67 -7.6,-3.66 z"
id="path2"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+16 -8
View File
@@ -18,13 +18,21 @@
<body>
<nav>
<img class="logo" src="img/logo.svg" alt="Cosmically Creative Logo" />
<div class="nav-links">
<a href="index.html">Home</a>
<a href="services.html">Services</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
<a href="articles.html">Articles</a>
</div>
<ul class="nav-links">
<li><a class="main-nav-link" href="index.html">Home</a></li>
<li><a class="main-nav-link" href="services.html">Services</a></li>
<li><a class="main-nav-link" href="about.html">About</a></li>
<li><a class="main-nav-link" href="contact.html">Contact</a></li>
<li><a class="main-nav-link" href="articles.html">Articles</a></li>
<li>
<a class="main-nav-link nav-btn" href="contact.html"
><img
class="rocket-icon"
src="img/icons/rocket.svg"
alt="rocket icon"
/></a>
</li>
</ul>
</nav>
<main>
<section class="hero-section">
@@ -35,7 +43,7 @@
websites that shine. Let me elevate your online presence and bring
your vision to life, one cosmic creation at a time!
</p>
<a href="services.html" class="btn">Initiate Launch 🚀</a>
<a href="services.html" class="btn">Initiate Launch</a>
</div>
</section>
</main>