-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a header with site nav and a footer social media links
- Loading branch information
1 parent
0c3b2d8
commit 5edcc97
Showing
10 changed files
with
143 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
import Social from "./Social.astro" | ||
--- | ||
<style> | ||
footer { | ||
display: flex; | ||
gap: 1rem; | ||
margin-top: 2rem; | ||
} | ||
</style> | ||
|
||
<footer> | ||
<Social platform="twitter" username="DanielWElliott" /> | ||
<Social platform="github" username="DanielWElliott" /> | ||
<Social platform="youtube" username="@DanielWElliott" /> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
--- | ||
<div class="hamburger"> | ||
<span class="line"></span> | ||
<span class="line"></span> | ||
<span class="line"></span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
import Hamburger from "./Hamburger.astro" | ||
import Navigation from "./Navigation.astro" | ||
--- | ||
<header> | ||
<nav> | ||
<Hamburger /> | ||
<Navigation /> | ||
</nav> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
const urlBase = import.meta.env.BASE_URL; | ||
--- | ||
<div class="nav-links"> | ||
<a href={urlBase}>Home</a> | ||
<a href={`${urlBase}/about/`}>About</a> | ||
<a href={`${urlBase}/blog/`}>Blog</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
const { platform, username} = Astro.props; | ||
--- | ||
<a href={`https://www.${platform}.com/${username}`}>{platform}</a> | ||
|
||
<style> | ||
a { | ||
padding: 0.5rem 1rem; | ||
color: white; | ||
background-color: #4c1d95; | ||
text-decoration: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
document.querySelector('.hamburger').addEventListener('click', () => { | ||
document.querySelector('.nav-links').classList.toggle('expanded'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters