Skip to content
Merged
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
14 changes: 14 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ const ogImage = new URL("/og-image.png", origin).href;
<slot />
</main>

<footer class="sitefoot">
<span class="foot-credit">
Rustled up by
<a href="https://github.com/finallyjay" target="_blank" rel="noopener me">
<svg viewBox="0 0 16 16" aria-hidden="true"><path 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.13 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 2-.27c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.11.16 1.93.08 2.13.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.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg>
@finallyjay
</a>
</span>
<span class="foot-sep" aria-hidden="true">·</span>
<a href="https://github.com/finallyjay/daily-dev-roulette" target="_blank" rel="noopener">
Source on GitHub ↗
</a>
</footer>

<script>
const avatarImg = document.getElementById("avatar-img");
avatarImg?.addEventListener("error", () => {
Expand Down
47 changes: 47 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
min-height: 100vh;
position: relative;
overflow-x: hidden;
display: flex;
flex-direction: column;
}
/* film grain + dust */
body::before {
Expand All @@ -94,6 +96,7 @@
main {
position: relative;
z-index: 2;
flex: 1 0 auto;
display: flex;
flex-direction: column;
align-items: center;
Expand Down Expand Up @@ -347,4 +350,48 @@
border-color: var(--brass);
color: var(--brass-hi);
}

/* saloon footer — credits + source */
footer.sitefoot {
position: relative;
z-index: 2;
flex-shrink: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.5rem 0.85rem;
padding: 1rem 1.3rem;
font-family: var(--font-type);
font-size: 0.78rem;
line-height: 1;
color: #8c7a5a;
background: linear-gradient(0deg, #1d140b, #150d06);
border-top: 2px solid var(--brass);
}
footer.sitefoot .foot-credit {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
footer.sitefoot a {
display: inline-flex;
align-items: center;
gap: 0.35rem;
color: var(--brass-hi);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.15s ease;
}
footer.sitefoot a:hover {
border-bottom-color: var(--brass-hi);
}
footer.sitefoot svg {
width: 15px;
height: 15px;
fill: currentColor;
}
footer.sitefoot .foot-sep {
color: #5a4730;
}
}
Loading