-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Write longer content, split Header and Footer components (#23)
- Loading branch information
Showing
7 changed files
with
134 additions
and
98 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
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,43 @@ | ||
--- | ||
import { RiInstagramLine, RiLinkedinLine } from "react-icons/ri"; | ||
const year = new Date().getFullYear(); | ||
--- | ||
|
||
<footer> | ||
<span class="copyright" | ||
>© 2022 – {year} Namesake</span | ||
> | ||
<div class="social"> | ||
<a | ||
href="https://www.instagram.com/joinnamesake/" | ||
aria-label="View Namesake on Instagram" | ||
title="View Namesake on Instagram"><RiInstagramLine size="24px" /></a | ||
> | ||
<a | ||
href="https://www.linkedin.com/company/namesake-collaborative/" | ||
aria-label="View Namesake on LinkedIn" | ||
title="View Namesake on LinkedIn"><RiLinkedinLine size="24px" /></a | ||
> | ||
</div> | ||
</footer> | ||
|
||
<style> | ||
footer { | ||
display: flex; | ||
gap: var(--space-m); | ||
align-items: center; | ||
padding: var(--space-s) var(--space-l); | ||
border-top: 1px solid var(--gray-12); | ||
width: 100%; | ||
} | ||
|
||
.copyright { | ||
font-size: var(--step--1); | ||
} | ||
|
||
.social { | ||
display: flex; | ||
gap: var(--space-s); | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
import Logo from "./Logo.astro"; | ||
--- | ||
|
||
<header> | ||
<a href="/" aria-label="Namesake homepage"><Logo /></a> | ||
</header> | ||
|
||
<style> | ||
header { | ||
position: sticky; | ||
background-color: var(--pink-7); | ||
top: 0; | ||
display: flex; | ||
justify-content: flex-start; | ||
padding: var(--space-m) var(--space-l); | ||
width: 100%; | ||
border-bottom: 1px solid var(--gray-12); | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ | |
|
||
<style> | ||
.logo { | ||
height: var(--step-2); | ||
height: var(--step-0); | ||
width: auto; | ||
} | ||
</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