-
Notifications
You must be signed in to change notification settings - Fork 661
Expand file tree
/
Copy pathNavbar.astro
More file actions
67 lines (58 loc) · 1.46 KB
/
Navbar.astro
File metadata and controls
67 lines (58 loc) · 1.46 KB
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
---
// Navbar component for social links
---
<div class="topnav">
<a href="https://www.youtube.com/channel/UCMXNFxCvyH5LhUwEcmY8qGQ" target="_blank" rel="noopener noreferrer">
<img src="/youtube.svg" class="logo" alt="youtube logo" />
<span>Youtube</span>
</a>
<a href="https://twitter.com/1stContribution" target="_blank" rel="noopener noreferrer">
<img src="/twitter.svg" class="logo" alt="twitter logo" />
<span>Twitter</span>
</a>
<a href="https://github.com/firstcontributions/first-contributions" target="_blank" rel="noopener noreferrer">
<img src="/github.svg" class="logo" alt="github logo" />
<span>GitHub</span>
</a>
</div>
<style>
.topnav {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
padding: 1rem;
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topnav a {
display: flex;
align-items: center;
gap: 0.5rem;
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 8px;
transition: background-color 0.3s ease;
}
.topnav a:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.topnav .logo {
width: 24px;
height: 24px;
}
@media (max-width: 768px) {
.topnav {
gap: 1rem;
padding: 0.5rem;
}
.topnav a {
padding: 0.25rem 0.5rem;
}
.topnav span {
display: none;
}
}
</style>