Skip to content

Commit 06265c7

Browse files
authored
Merge pull request #408 from DeterminateSystems/add-flakehub-link-in-banner
Fix up banner
2 parents cbaf514 + de19ffb commit 06265c7

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

Diff for: src/assets/css/main.css

+4
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
[x-cloak] {
1212
display: none !important;
1313
}
14+
15+
.banner-link {
16+
@apply font-semibold duration-hover hover:text-nix-light-blue;
17+
}

Diff for: src/components/Banner.astro

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ const {
88
} = site;
99
---
1010

11-
<section class="bg-primary py-1.5 md:py-2 lg:py-2.5" x-show="banner" x-cloak>
11+
<section
12+
class="bg-dark py-1.5 text-white dark:bg-white dark:text-dark md:py-2 lg:py-2.5"
13+
x-show="banner"
14+
x-cloak
15+
>
1216
<HorizontalContainer>
1317
<div class="flex items-center justify-between">
1418
<p
15-
class="text-sm font-light text-white md:text-base lg:text-lg"
19+
class="text-sm font-light md:text-base lg:text-lg"
1620
set:html={md(text)}
1721
/>
1822

@@ -23,7 +27,7 @@ const {
2327
viewBox="0 0 24 24"
2428
stroke-width="1.5"
2529
stroke="currentColor"
26-
class="h-4 w-4 stroke-2 text-white hover:text-black md:h-5 md:w-5 lg:h-6 lg:w-6"
30+
class="h-4 w-4 stroke-2 text-white duration-hover hover:text-nix-light-blue dark:text-dark dark:hover:text-nix-light-blue md:h-5 md:w-5 lg:h-6 lg:w-6"
2731
>
2832
<path
2933
stroke-linecap="round"

Diff for: src/components/Head.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const image = `${root}favicon.png`;
6666
title: title ?? siteTitle,
6767
description,
6868
image,
69-
card: "summary"
69+
card: "summary",
7070
}}
7171
/>
7272

Diff for: src/site.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const site: Site = {
5454
languages: ["C++", "Go", "Haskell", "JavaScript", "Python", "Rust", "Scala"],
5555
defaultLanguage: "JavaScript",
5656
banner: {
57-
text: "Check out <strong><Link target='_blank' href='https://FlakeHub.com'>FlakeHub</Link></strong> &mdash; the best place to discover and publish Nix flakes, from Determinate Systems.",
57+
text: "Check out <strong><a target='_blank' class='banner-link' href='https://flakehub.com'>FlakeHub</a></strong>, the best place to discover and publish Nix flakes, brought to you by <strong><a target='_blank' class='banner-link' href='https://determinate.systems'>Determinate Systems</a></strong>.",
5858
generation: 2,
5959
},
6060
navbarLinks: [{ text: "About", href: "/about" }],

0 commit comments

Comments
 (0)