Commit 87f2e06 1 parent 9a4b496 commit 87f2e06 Copy full SHA for 87f2e06
File tree 4 files changed +70
-54
lines changed
4 files changed +70
-54
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
import { Icon } from ' astro-icon/components' ;
3
- import SiteNavLinks from ' ../SiteNavLinks/index.astro' ;
3
+ import { Image } from ' astro:assets' ;
4
+ import logo from ' ../../assets/icons/logo.svg' ;
4
5
import ' ./styles.css' ;
6
+ const BLOG_URL = Astro .site ?.href ;
5
7
---
6
8
7
9
<nav id =" desktop-navigation" aria-label =" Main blog navigation" >
8
- <SiteNavLinks />
10
+ <ul class =" nav-links" >
11
+ <li >
12
+ <a href ={ BLOG_URL } >
13
+ <Image src ={ logo } class =" logo-rounded" alt =" TorontoJS Logo!" height ={ 70 } width ={ 70 } />
14
+ </a >
15
+ </li >
16
+ <li >
17
+ <a href ={ ` ${BLOG_URL }accessibility ` } >
18
+ Accessibility
19
+ </a >
20
+ </li >
21
+ <li >
22
+ <a href ={ ` ${BLOG_URL }license ` } >
23
+ License
24
+ </a >
25
+ </li >
26
+ <li >
27
+ <a href ={ ` ${BLOG_URL }about ` } >
28
+ About
29
+ </a >
30
+ </li >
31
+ </ul >
9
32
</nav >
10
33
11
34
<div id =" mobile-navigation" >
@@ -23,6 +46,27 @@ import './styles.css';
23
46
id =" close-icon" name =" mdi:close" title =" Close Icon" width ={ 70 } height ={ 70 }
24
47
/>
25
48
</button >
26
- <SiteNavLinks />
49
+ <ul class =" nav-links" >
50
+ <li >
51
+ <a href ={ BLOG_URL } >
52
+ <Image src ={ logo } alt =" TorontoJS Logo!" height ={ 70 } width ={ 70 } class =" logo-rounded" />
53
+ </a >
54
+ </li >
55
+ <li >
56
+ <a href ={ ` ${BLOG_URL }accessibility ` } >
57
+ Accessibility
58
+ </a >
59
+ </li >
60
+ <li >
61
+ <a href ={ ` ${BLOG_URL }license ` } >
62
+ License
63
+ </a >
64
+ </li >
65
+ <li >
66
+ <a href ={ ` ${BLOG_URL }about ` } >
67
+ About
68
+ </a >
69
+ </li >
70
+ </ul >
27
71
</nav >
28
72
</div >
Original file line number Diff line number Diff line change 4
4
padding : var (--size-2 );
5
5
}
6
6
7
+ .nav-links {
8
+ gap : var (--size-2 );
9
+ align-items : center;
10
+ list-style : none;
11
+ display : flex;
12
+ padding : var (--size-3 )
13
+ }
14
+
15
+ .nav-links a {
16
+ color : white;
17
+ }
18
+
19
+ # logo-rounded {
20
+ border-radius : var (--size-2 );
21
+ }
22
+
7
23
# hamburger-button {
8
24
background-color : transparent;
9
25
padding : var (--size-3 )
34
50
padding : var (--size-2 );
35
51
}
36
52
37
- @media (max-width : 31.25 rem ) {
53
+ @media (max-width : 32 rem ) {
38
54
# mobile-navigation {
39
55
display : block;
40
56
text-align : right;
44
60
display : none;
45
61
}
46
62
}
63
+
64
+ @media (max-width : 32rem ) {
65
+ .nav-links {
66
+ flex-direction : column;
67
+ }
68
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments