Skip to content

Commit 9f082e1

Browse files
authored
Merge pull request #28 from pautva/banner
added banner
2 parents d422995 + 91ed0e1 commit 9f082e1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Announcement Banner -->
2+
<div class="p-3">
3+
<a
4+
class="bg-white/60 backdrop-blur-lg dark:bg-neutral-900/60 group block bg-white hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 p-4 rounded-lg text-center transition duration-300 dark:bg-white/5 dark:hover:bg-white/10 dark:focus:bg-white/10"
5+
href="mailto:ux@bgs.ac.uk?subject=Co-Creation Toolkit Feedback"
6+
>
7+
<div class="max-w-[85rem] px-4 sm:px-6 lg:px-8 mx-auto">
8+
<p class="inline-block text-sm text-gray-800 dark:text-neutral-200">
9+
This is a <b>beta version</b> of the toolkit. Please share your feedback
10+
and suggestions:
11+
</p>
12+
<span
13+
class="group-hover:underline group-focus:underline decoration-2 inline-flex justify-center items-center gap-x-2 font-semibold text-sm"
14+
>
15+
ux@bgs.ac.uk
16+
</span>
17+
</div>
18+
</a>
19+
</div>
20+
<!-- End Announcement Banner -->

src/components/Nav.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Icon from './Icon.astro';
33
import ThemeToggle from './ThemeToggle.astro';
44
import type { iconPaths } from './IconPaths';
5+
import AnnouncementBanner from './AnnouncementBanner.astro';
56
67
/** Main menu items */
78
const textLinks: { label: string; href: string }[] = [
@@ -21,10 +22,12 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[]
2122
];
2223
---
2324

25+
<AnnouncementBanner />
26+
2427
<nav>
2528
<div class="menu-header">
2629
<a href="/co-creation-toolkit/" class="site-title">
27-
<Icon icon="terminal-window" color="var(--accent-regular)" size="1.6em" gradient />
30+
<Icon icon="strategy" color="var(--accent-regular)" size="1.6em" gradient />
2831
Co-Creation Toolkit
2932
</a>
3033
<menu-button>

0 commit comments

Comments
 (0)