Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 62 additions & 32 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,51 +1,81 @@
<footer>
Made with 🥯 by Brian Perry.
<div class="social-links">
<a href="https://bsky.app/profile/brianperry.dev" target="_blank">
<span class="sr-only">Follow me on Bluesky</span>
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="32" height="32" viewBox="0 0 576 512"><path fill="currentColor" d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3M288 227.1c-26.1-50.7-97.1-145.2-163.1-191.8C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3.5-6.6 1-10 1.4c-93.9 14-177.3 48.2-67.9 169.9C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1"/></svg>
</a>
<a href="https://github.com/backlineint" target="_blank">
<span class="sr-only">Go to my GitHub profile</span>
<svg
viewBox="0 0 16 16"
aria-hidden="true"
width="32"
height="32"
astro-icon="social/github"
><path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
></path></svg
>
</a>
</div>
<div class="internal-links">
<a href="/feed.xml">Feed</a> •
<a href="/style-guide">Style Guide</a>
<div class="footer-inner">
<p class="copyright">Made with 🥯 by Brian Perry.</p>
<div class="footer-links">
<div class="social-links">
<a href="https://bsky.app/profile/brianperry.dev" target="_blank">
<span class="sr-only">Follow me on Bluesky</span>
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" height="24" viewBox="0 0 576 512"><path fill="currentColor" d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3M288 227.1c-26.1-50.7-97.1-145.2-163.1-191.8C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3.5-6.6 1-10 1.4c-93.9 14-177.3 48.2-67.9 169.9C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1"/></svg>
</a>
<a href="https://github.com/backlineint" target="_blank">
<span class="sr-only">Go to my GitHub profile</span>
<svg
viewBox="0 0 16 16"
aria-hidden="true"
width="24"
height="24"
astro-icon="social/github"
><path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
></path></svg
>
</a>
</div>
<div class="internal-links">
<a href="/feed.xml">Feed</a>
<span class="separator">&middot;</span>
<a href="/style-guide">Style Guide</a>
</div>
</div>
</div>
</footer>
<style>
footer {
padding: 2em 1em 2.5em 1em;
background: var(--surface-2);
padding: var(--size-7) var(--size-5);
border-top: 1px solid var(--surface-3);
color: var(--text-2);
text-align: center;
font-size: var(--font-size-1);
}
.footer-inner {
max-width: 1250px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--size-5);
@media (max-width: 720px) {
flex-direction: column;
text-align: center;
}
}
.copyright {
margin: 0;
}
.footer-links {
display: flex;
align-items: center;
gap: var(--size-5);
}
.social-links {
display: flex;
justify-content: center;
gap: 1em;
margin-top: 1em;
gap: var(--size-2);
}
.social-links a {
text-decoration: none;
color: var(--text-2);
display: flex;
}
.social-links a:hover {
color: var(--text-1);
}
.internal-links {
margin-top: var(--size-3);
.internal-links a {
color: var(--text-2);
}
.internal-links a:hover {
color: var(--text-1);
}
.separator {
color: var(--surface-4);
}
</style>
84 changes: 48 additions & 36 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ import { SITE_TITLE } from "../consts";
<header>
<nav>
<h2><a href="/">{SITE_TITLE}</a></h2>
<div class="internal-links">
<HeaderLink href="/posts">Posts</HeaderLink>
<HeaderLink href="/about">About</HeaderLink>
</div>
<div class="social-links">
<a href="https://bsky.app/profile/brianperry.dev" target="_blank">
<span class="sr-only">Follow me on Bluesky</span>
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="32" height="32" viewBox="0 0 576 512"><path fill="currentColor" d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3M288 227.1c-26.1-50.7-97.1-145.2-163.1-191.8C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3.5-6.6 1-10 1.4c-93.9 14-177.3 48.2-67.9 169.9C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1"/></svg>
</a>
<a href="https://github.com/backlineint" target="_blank">
<span class="sr-only">My GitHub profile</span>
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32"
><path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
></path></svg
>
</a>
<div class="nav-right">
<div class="internal-links">
<HeaderLink href="/posts">Posts</HeaderLink>
<HeaderLink href="/about">About</HeaderLink>
</div>
<div class="social-links">
<a href="https://bsky.app/profile/brianperry.dev" target="_blank">
<span class="sr-only">Follow me on Bluesky</span>
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" height="24" viewBox="0 0 576 512"><path fill="currentColor" d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3M288 227.1c-26.1-50.7-97.1-145.2-163.1-191.8C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3.5-6.6 1-10 1.4c-93.9 14-177.3 48.2-67.9 169.9C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4.4 6.7.9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1"/></svg>
</a>
<a href="https://github.com/backlineint" target="_blank">
<span class="sr-only">My GitHub profile</span>
<svg viewBox="0 0 16 16" aria-hidden="true" width="24" height="24"
><path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
></path></svg
>
</a>
</div>
</div>
</nav>
</header>
<style>
header {
margin: 0;
padding: 0 1em;
background: var(--surface-2);
box-shadow: 0 2px 8px rgba(var(--black), 5%);
padding: 0 var(--size-5);
background: var(--surface-1);
border-bottom: 1px solid var(--surface-3);
}
h2 {
margin: 0;
font-size: var(--font-size-4);
@media (min-width: 720px) {
font-size: var(--font-size-5);
}
letter-spacing: -0.02em;
}

h2 a,
Expand All @@ -50,32 +50,44 @@ import { SITE_TITLE } from "../consts";
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1250px;
margin: 0 auto;
height: 64px;
}
.nav-right {
display: flex;
align-items: center;
gap: var(--size-5);
}
nav a {
padding: 1em 0.5em;
padding: 0.5em;
margin-block: 0;
margin-inline: 0;
color: var(--black);
border-bottom: 4px solid transparent;
color: var(--text-1);
text-decoration: none;
}
nav a.active {
text-decoration: none;
border-bottom-color: var(--accent);
nav a:hover {
color: var(--link);
}
.internal-links a {
font-weight: 500;
font-size: var(--font-size-2);
}
.social-links,
.social-links a {
display: flex;
align-items: center;
}
.social-links a {
color: var(--text-2);
padding: 0.25em;
}
.social-links a:hover {
color: var(--text-1);
}
@media (max-width: 720px) {
.social-links {
display: none;
}
}
@media (min-width: 720px) {
.internal-links {
position: relative;
right: var(--size-8);
}
}
</style>
5 changes: 3 additions & 2 deletions src/components/HeaderLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ const isActive = href === pathname || href === pathname.replace(/\/$/, '');
a {
display: inline-block;
text-decoration: none;
position: relative;
}
a.active {
font-weight: bolder;
text-decoration: underline;
font-weight: 700;
color: var(--link);
}
</style>
4 changes: 2 additions & 2 deletions src/components/rad/RadCallout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
display: block;
padding: var(--default-padding);
margin-bottom: var(--default-padding);
border-radius: var(--radius-3);
border-radius: var(--radius-2);
background-color: var(--surface-2);
box-shadow: var(--shadow-2);
border: 1px solid var(--surface-3);
}
</style>
32 changes: 25 additions & 7 deletions src/components/rad/RadPostTeaser.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const { collection, slug } = Astro.props.post;
<p class="date">
<FormattedDate date={new Date(date)} />
</p>
<p>
<p class="description">
{description}
</p>
<a href={`/${collection}/${slug}`}>Read more </a>
<a class="read-more" href={`/${collection}/${slug}`}>Read more &rarr;</a>
</div>
</rad-post-teaser>

Expand All @@ -45,21 +45,39 @@ const { collection, slug } = Astro.props.post;
& .title {
margin: 0;
color: var(--text-1);
line-height: 1;
line-height: 1.2;
font-size: var(--font-size-3);
}
& .title a {
text-decoration: none;
color: inherit;
}
& .title a:hover {
color: var(--link);
}
& .date {
margin: 0;
margin: var(--size-1) 0 0;
color: var(--text-2);
font-size: var(--font-size-1);
}
& .description {
color: var(--text-2);
font-size: var(--font-size-2);
line-height: 1.5;
}
& .read-more {
font-size: var(--font-size-1);
font-weight: 600;
}
& img {
margin: 0 0 var(--size-7) 0;
margin: 0 0 var(--size-5) 0;
box-shadow: var(--box-shadow);
border-radius: 12px;
border-radius: var(--radius-2);
aspect-ratio: 16 / 9;
object-fit: cover;
@media (min-width: 720px) {
width: 35%;
margin: 0 0 0 var(--size-3);
margin: 0 0 0 var(--size-5);
}
}
}
Expand Down
Loading