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
2 changes: 1 addition & 1 deletion src/content/blog/dunky-the-journey.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Dunky: The Journey"
title: 'Dunky: The Journey'
description: Built from the ground up for the design systems. One source of truth, that travels across any UI without rewiring.
date: 2026-06-26
banner: /blog/introducing-dunky-banner.jpg
Expand Down
39 changes: 22 additions & 17 deletions src/layouts/base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface Props {
const { title, description = 'Dunky: DX tools that unlock powerful UIs.' } = Astro.props
const pathname = Astro.url.pathname
const isHome = pathname === '/'
const isBlogPost = pathname.startsWith('/blog/') && pathname !== '/blog/'
---

<!doctype html>
Expand All @@ -24,23 +25,27 @@ const isHome = pathname === '/'
</head>
<body>
<header class="topbar">
{!isHome && (
<a class="topbar-link topbar-link--back" href="/" aria-label="Home">
<Icon name="arrow-left" class="topbar-icon" />
</a>
)}
<a class="topbar-link" href="https://github.com/dunky-dev" aria-label="GitHub" target="_blank" rel="noopener noreferrer">
<Icon name="github" class="topbar-icon" />
<span>GitHub</span>
</a>
<a class="topbar-link" href="https://x.com/ivanbanov" aria-label="Twitter / X" target="_blank" rel="noopener noreferrer">
<Icon name="twitter" class="topbar-icon" />
<span>Twitter</span>
</a>
<a class={`topbar-link${pathname.startsWith('/blog') ? ' topbar-link--active' : ''}`} href="/blog" aria-label="Blog">
<Icon name="book" class="topbar-icon" />
<span>Blog</span>
</a>
<div class="topbar-inner">
{isBlogPost && (
<a class="topbar-logo" href="/" aria-label="Dunky Home">
<img src="/logo/logo-white.svg" alt="Dunky" class="topbar-logo-img" />
</a>
)}
<nav class={`topbar-nav${isHome ? ' topbar-nav--centered' : ''}`}>
<a class="topbar-link" href="https://github.com/dunky-dev" aria-label="GitHub" target="_blank" rel="noopener noreferrer">
<Icon name="github" class="topbar-icon" />
<span>GitHub</span>
</a>
<a class="topbar-link" href="https://x.com/ivanbanov" aria-label="Twitter / X" target="_blank" rel="noopener noreferrer">
<Icon name="twitter" class="topbar-icon" />
<span>Twitter</span>
</a>
<a class={`topbar-link${pathname.startsWith('/blog') ? ' topbar-link--active' : ''}`} href="/blog" aria-label="Blog">
<Icon name="book" class="topbar-icon" />
<span>Blog</span>
</a>
</nav>
</div>
</header>
<slot />
<footer class="footer">
Expand Down
39 changes: 31 additions & 8 deletions src/layouts/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,41 @@ body {
color: #fff;
/* premium dark background: subtle radial glow over near-black */
background-color: #08090d;
background-image: radial-gradient(120% 120% at 50% 0%, #222 0%, #111 55%, #000 100%);
background-image: radial-gradient(120% 120% at 50% 5%, #222 0%, #111 55%, #000 100%);
background-attachment: fixed;
}

.topbar {
position: fixed;
top: 0;
right: 0;
width: 100%;
display: flex;
gap: 0.25rem;
padding: 0.75rem 1rem;
z-index: 10;
justify-content: center;
background: rgb(8 9 13 / 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
max-width: 1200px;
margin: 0 auto;
padding: 0.75rem clamp(1.5rem, 5vw, 3rem);
display: flex;
align-items: center;
gap: 0.25rem;
}

.topbar-nav {
display: flex;
align-items: center;
gap: 0.25rem;
margin-left: auto;
}

.topbar-nav--centered {
margin-left: auto;
margin-right: auto;
}

.topbar-link {
display: flex;
align-items: center;
Expand All @@ -106,8 +122,15 @@ body {
color: #fff;
}

.topbar-link--back {
margin-right: auto;
.topbar-logo {
display: flex;
align-items: center;
text-decoration: none;
}

.topbar-logo-img {
height: 2rem;
width: auto;
}

.topbar-icon {
Expand Down
7 changes: 4 additions & 3 deletions src/pages/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@
background: var(--link-bg);
color: #fff;
text-decoration: none;
transition:
border-color 0.18s ease;
transition: border-color 0.18s ease;
}

@property --border-spin {
Expand Down Expand Up @@ -176,7 +175,9 @@
}

@keyframes border-spin {
to { --border-spin: 360deg; }
to {
--border-spin: 360deg;
}
}

/* covers the interior of the card so only the 1px gradient border shows.
Expand Down
Loading