-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnav.html
115 lines (103 loc) · 3.39 KB
/
nav.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<style>
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Navbar Styles */
.navbar {
width: 100%;
background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
transition: background 0.3s, box-shadow 0.3s;
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.navbar.scrolled {
background: linear-gradient(90deg, rgba(255, 0, 0, 0.9), rgba(139, 0, 0, 0.9));
box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
.logo {
font-size: 1.8rem;
font-weight: 700;
color: #ff0000;
background: linear-gradient(90deg, #ff0000, #8b0000);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: transform 0.3s;
}
.navbar.scrolled .logo {
color: white;
background: linear-gradient(90deg, white, #ccc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.nav-links {
display: flex;
gap: 25px;
}
.nav-link {
text-decoration: none;
font-size: 1.2rem;
color: white;
transition: color 0.3s, transform 0.3s;
position: relative;
}
.nav-link::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, #ff0000, #8b0000);
transition: width 0.3s;
}
.nav-link:hover {
color: #ff0000;
transform: translateY(-3px);
}
.nav-link:hover::after {
width: 100%;
}
.nav-actions .logout-btn {
text-decoration: none;
color: white;
font-size: 1.2rem;
background: linear-gradient(90deg, #ff0000, #8b0000);
padding: 8px 15px;
border-radius: 8px;
transition: transform 0.3s, box-shadow 0.3s;
display: flex;
align-items: center;
gap: 8px;
}
.nav-actions .logout-btn:hover {
background: linear-gradient(90deg, #8b0000, #ff0000);
transform: translateY(-3px);
box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
</style>
<nav class="navbar">
<div class="logo">SignHub</div>
<div class="nav-links">
<a href="{{ url_for('dashboard') }}" class="nav-link">Home</a>
<a href="{{ url_for('contributor_profile') }}" class="nav-link">Profile</a>
<a href="{{ url_for('contributor_reviews') }}" class="nav-link">Reviews</a>
<a href="{{ url_for('contributor_profile') }}" class="nav-link">Settings</a>
</div>
<div class="nav-actions">
<a href="{{ url_for('logout') }}" class="logout-btn">
<i class="fas fa-sign-out-alt"></i> Logout
</a>
</div>
</nav>