Skip to content

Commit 1957ef9

Browse files
committed
menambahkan efek navbar
1 parent 84c8973 commit 1957ef9

File tree

2 files changed

+47
-17
lines changed

2 files changed

+47
-17
lines changed

index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ <h3>Riwayat Pendidikan</h3>
3333
<ul>
3434
<li>SMP: SMP Negeri 1 Tasikmalaya</li>
3535
<li>SMK: SMK Negeri 2 Tasikmalaya</li>
36-
<li>D4 : Universitas Logistik dan Bisnis Internasional</li>
3736
</ul>
3837

3938
<div class="profile"></div>
@@ -104,25 +103,25 @@ <h2 style="grid-column: span 4; margin-bottom: 20px;">Kontak</h2>
104103

105104
<!-- Email -->
106105
<a href="mailto:Kamalputra1177@email.com" style="text-decoration: none; transition: transform 0.3s;">
107-
<i class="fa-solid fa-envelope" style="font-size: 48px;"></i>
106+
<i class="fa-solid fa-envelope" style="font-size: 40px;"></i>
108107
<p>Email</p>
109108
</a>
110109

111110
<!-- Instagram -->
112111
<a href="https://www.instagram.com/mhmmdmallq/" target="_blank" style="text-decoration: none; transition: transform 0.3s;">
113-
<i class="fa-brands fa-instagram" style="font-size: 48px;"></i>
112+
<i class="fa-brands fa-instagram" style="font-size: 40px;"></i>
114113
<p>Instagram</p>
115114
</a>
116115

117116
<!-- WhatsApp -->
118117
<a href="https://wa.me/6282122339125" target="_blank" style="text-decoration: none; transition: transform 0.3s;">
119-
<i class="fa-brands fa-whatsapp" style="font-size: 48px;"></i>
118+
<i class="fa-brands fa-whatsapp" style="font-size: 40px;"></i>
120119
<p>WhatsApp</p>
121120
</a>
122121

123122
<!-- LinkedIn -->
124-
<a href="https://www.linkedin.com/in/namaanda" target="_blank" style="text-decoration: none; transition: transform 0.3s;">
125-
<i class="fa-brands fa-linkedin" style="font-size: 48px;"></i>
123+
<a href="https://www.linkedin.com/in/muhammd-malik-ba4a10342" target="_blank" style="text-decoration: none; transition: transform 0.3s;">
124+
<i class="fa-brands fa-linkedin" style="font-size: 40px;"></i>
126125
<p>LinkedIn</p>
127126
</a>
128127

styles.css

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,70 @@ p {
3333
}
3434

3535

36-
/* Navbar */
36+
/* Navbar styling */
3737
nav {
38+
display: flex;
39+
justify-content: center;
40+
background: linear-gradient(90deg, #070707, #252525);
41+
padding: 15px 0;
42+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
3843
position: sticky;
3944
top: 0;
4045
z-index: 1000;
41-
background-color: #000;
42-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
4346
}
4447

4548
nav ul {
4649
display: flex;
47-
justify-content: center;
48-
align-items: center;
50+
list-style: none;
4951
padding: 0;
5052
margin: 0;
51-
list-style: none;
5253
}
5354

5455
nav ul li {
5556
margin: 0 20px;
57+
position: relative;
5658
}
5759

5860
nav ul li a {
5961
text-decoration: none;
6062
color: white;
61-
padding: 10px 15px;
62-
border-radius: 8px;
63-
transition: background-color 0.3s ease, transform 0.3s ease;
63+
font-size: 18px;
64+
font-weight: bold;
65+
transition: color 0.3s ease;
66+
position: relative;
67+
}
68+
69+
/* Efek underline animasi saat hover */
70+
nav ul li a::after {
71+
content: '';
72+
position: absolute;
73+
left: 50%;
74+
bottom: -5px;
75+
width: 0;
76+
height: 3px;
77+
background: #6b6868;
78+
transition: all 0.4s ease;
79+
transform: translateX(-50%);
80+
}
81+
82+
nav ul li a:hover::after {
83+
width: 100%;
6484
}
6585

6686
nav ul li a:hover {
67-
background-color: #444;
68-
transform: scale(1.1);
87+
color: #ffcc00;
88+
}
89+
90+
/* Efek klik dengan animasi scale */
91+
nav ul li a:active {
92+
transform: scale(0.95);
93+
color: #f7f7f2;
94+
}
95+
96+
/* Efek saat navbar dihover */
97+
nav:hover {
98+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
99+
background: linear-gradient(90deg, #000000, #000000);
69100
}
70101

71102
/* Hamburger Menu (Untuk Layar Kecil) */

0 commit comments

Comments
 (0)