Skip to content

Commit e29ca68

Browse files
authored
Update styles.css
1 parent 0efa69d commit e29ca68

File tree

1 file changed

+82
-9
lines changed

1 file changed

+82
-9
lines changed

css/styles.css

Lines changed: 82 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,57 @@ header p {
2727
font-weight: 300;
2828
}
2929

30-
nav ul {
30+
/* Floating Fixed Menu */
31+
#navbar {
32+
position: fixed;
33+
top: 0;
34+
left: 0;
35+
width: 100%;
36+
background-color: rgba(44, 62, 80, 0.95);
37+
z-index: 1000;
38+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
39+
}
40+
41+
#navbar .container {
42+
display: flex;
43+
justify-content: space-between;
44+
align-items: center;
45+
max-width: 1200px;
46+
margin: 0 auto;
47+
padding: 1rem 2rem;
48+
}
49+
50+
#navbar .logo {
51+
font-size: 1.5rem;
52+
font-weight: 700;
53+
color: #fff;
54+
}
55+
56+
#navbar ul {
3157
list-style: none;
3258
padding: 0;
33-
margin: 1.5rem 0 0;
59+
margin: 0;
60+
display: flex;
61+
gap: 1.5rem;
3462
}
3563

36-
nav ul li {
37-
display: inline;
38-
margin: 0 15px;
64+
#navbar ul li {
65+
margin: 0;
3966
}
4067

41-
nav ul li a {
68+
#navbar ul li a {
4269
color: #fff;
4370
text-decoration: none;
4471
font-weight: 500;
45-
transition: color 0.3s ease;
72+
padding: 0.5rem 1rem;
73+
border-radius: 5px;
74+
transition: background-color 0.3s ease, color 0.3s ease;
4675
}
4776

48-
nav ul li a:hover {
77+
#navbar ul li a:hover {
78+
background-color: rgba(255, 255, 255, 0.1);
4979
color: #1abc9c;
5080
}
51-
5281
.container {
5382
width: 90%;
5483
max-width: 1200px;
@@ -118,6 +147,50 @@ ul li {
118147
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
119148
}
120149

150+
.shape {
151+
position: absolute;
152+
background-repeat: no-repeat;
153+
background-size: contain;
154+
z-index: 0;
155+
}
156+
157+
.shape-1 {
158+
width: 200px;
159+
height: 200px;
160+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjEwMCIgZmlsbD0iIzFiYWM5YyIgZmlsbC1vcGFjaXR5PSIwLjEiLz48L3N2Zz4=');
161+
top: 10%;
162+
left: 5%;
163+
animation: float 6s infinite ease-in-out;
164+
}
165+
166+
.shape-2 {
167+
width: 150px;
168+
height: 150px;
169+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTAgMTUwIj48cmVjdCB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgZmlsbD0iIzFiYWM5YyIgZmlsbC1vcGFjaXR5PSIwLjEiIHRyYW5zZm9ybT0icm90YXRlKDQ1KSIvPjwvc3ZnPg==');
170+
bottom: 15%;
171+
right: 10%;
172+
animation: float 8s infinite ease-in-out;
173+
}
174+
175+
.shape-3 {
176+
width: 250px;
177+
height: 250px;
178+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj48cG9seWdvbiBwb2ludHM9IjEyNSwwIDI1MCwxMjUgMTI1LDI1MCAwLDEyNSIgZmlsbD0iIzFiYWM5YyIgZmlsbC1vcGFjaXR5PSIwLjEiLz48L3N2Zz4=');
179+
top: 20%;
180+
right: 5%;
181+
animation: float 10s infinite ease-in-out;
182+
}
183+
184+
@keyframes float {
185+
0%, 100% {
186+
transform: translateY(0);
187+
}
188+
50% {
189+
transform: translateY(-20px);
190+
}
191+
}
192+
193+
121194
footer {
122195
background-color: #2c3e50;
123196
color: #fff;

0 commit comments

Comments
 (0)