forked from torontojs/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.astro
75 lines (73 loc) · 1.77 KB
/
index.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
import { Icon } from 'astro-icon/components';
import { Image } from 'astro:assets';
import logo from '../../assets/icons/logo.svg';
import './styles.css';
const BLOG_URL = Astro.site?.href;
---
<nav id="desktop-navigation" aria-label="Main blog navigation">
<ul class="nav-links">
<li>
<a href={BLOG_URL}>
<Image src={logo} class="logo-rounded" alt="TorontoJS Logo!" height={70} width={70} />
</a>
</li>
<li>
<a href={`${BLOG_URL}accessibility`}>
Accessibility
</a>
</li>
<li>
<a href={`${BLOG_URL}license`}>
License
</a>
</li>
<li>
<a href={`${BLOG_URL}about`}>
About
</a>
</li>
</ul>
</nav>
<div id="mobile-navigation">
<a id="mobile-logo" href={BLOG_URL}>
<Image src={logo} alt="TorontoJS Logo!" height={70} width={70} class="logo-rounded" />
</a>
<button
id="hamburger-button" aria-controls="mobile-menu" aria-expanded="false" aria-haspopup="true"
aria-label="Open blog navigation" popovertarget="mobile-menu"
>
<Icon
id="hamburger-icon" name="mdi:hamburger-menu" title="Hamburger Menu Icon" width={70} height={70}
/>
</button>
<nav popover id="mobile-menu" aria-label="Main blog navigation">
<button popovertarget="mobile-menu" aria-controls="mobile-menu" aria-label="Close blog navigation">
<Icon
id="close-icon" name="mdi:close" title="Close Icon" width={70} height={70}
/>
</button>
<ul class="nav-links">
<li>
<a href={BLOG_URL}>
<Image src={logo} alt="TorontoJS Logo!" height={70} width={70} class="logo-rounded" />
</a>
</li>
<li>
<a href={`${BLOG_URL}accessibility`}>
Accessibility
</a>
</li>
<li>
<a href={`${BLOG_URL}license`}>
License
</a>
</li>
<li>
<a href={`${BLOG_URL}about`}>
About
</a>
</li>
</ul>
</nav>
</div>