Skip to content

Commit 33e0af7

Browse files
committed
memperbaiki css dan js
1 parent ae660b5 commit 33e0af7

File tree

3 files changed

+43
-22
lines changed

3 files changed

+43
-22
lines changed

index.html

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1 class="fade-in">Muhammad Malik Nur</h1>
3333
<img src="img/Mall.png" alt="Gambar Profil" class="project-image small">
3434
<h2>Tentang Saya</h2>
3535
<p>Saya adalah seorang mahasiswa Teknik Informatika yang memiliki ketertarikan dalam pengembangan web, keamanan siber, dan kecerdasan buatan.</p>
36-
<p>Saat ini berkuliah di Universitas Logistik dan Bisnis Internasional di Bandung.</p>
36+
<p>Saat saya ini berkuliah di Universitas Logistik dan Bisnis Internasional di Bandung.</p>
3737

3838
<h3>Riwayat Pendidikan</h3>
3939
<ul>
@@ -76,18 +76,6 @@ <h2>Keahlian Pemrograman</h2>
7676
<img src="img/Canva.png" alt="Canva">
7777
<p>Canva (desain grafis daring yang memungkinkan penggunanya untuk membuat berbagai macam desain).</p>
7878
</div>
79-
<!-- Duplikat untuk looping mulus -->
80-
<div class="skill-item">
81-
<img src="img/html.png" alt="HTML">
82-
<p>HTML (membuat struktur halaman web).</p>
83-
</div>
84-
<div class="skill-item">
85-
<img src="img/css.png" alt="CSS">
86-
<p>CSS (mengatur tampilan dan desain sebuah halaman web). </p>
87-
</div>
88-
<div class="skill-item">
89-
<img src="img/javascript.png" alt="JavaScript">
90-
<p>JavaScript (interaktivitas dan fungsi dinamis ke halaman web).</p>
9179
</div>
9280
</div>
9381
</section>
@@ -97,12 +85,18 @@ <h2>Projects</h2>
9785
<div class="projects-container">
9886
<div class="project">
9987
<h3>Project Website UMKM</h3>
100-
<a href="https://iceetheaa.id.biz.id/" target="_blank">
101-
<img src="img/proyek1.png" alt="Gambar Website" class="project-image">
102-
</a>
103-
<a href="https://dedgecoffee.id.biz.id/" target="_blank">
104-
<img src="img/proyek2.png" alt="Gambar Website" class="project-image">
105-
</a>
88+
<div class="project-item">
89+
<a href="https://iceetheaa.id.biz.id/" target="_blank">
90+
<img src="img/proyek1.png" alt="Gambar Website" class="project-image">
91+
</a>
92+
<p>Website untuk bisnis minuman Ice Theaa dengan menu lengkap dan desain menarik.</p>
93+
</div>
94+
<div class="project-item">
95+
<a href="https://dedgecoffee.id.biz.id/" target="_blank">
96+
<img src="img/proyek2.png" alt="Gambar Website" class="project-image">
97+
</a>
98+
<p>Website D'edge Coffee dengan tampilan elegan dan fitur pemesanan online.</p>
99+
</div>
106100
</div>
107101
</div>
108102
</section>

script.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,13 @@ document.addEventListener("DOMContentLoaded", () => {
6161
typeEffect();
6262
});
6363

64+
document.addEventListener("DOMContentLoaded", function () {
65+
const track = document.querySelector(".carousel-track");
66+
const items = Array.from(track.children);
67+
68+
// Gandakan isi slider agar tidak ada celah kosong
69+
items.forEach(item => {
70+
const clone = item.cloneNode(true);
71+
track.appendChild(clone);
72+
});
73+
});

styles.css

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,29 +192,46 @@ nav:hover {
192192
overflow: hidden;
193193
width: 100%;
194194
position: relative;
195+
white-space: nowrap;
195196
}
196197

197198
.carousel-track {
198199
display: flex;
199200
gap: 20px;
200-
animation: scroll-left 10s linear infinite;
201+
width: max-content;
202+
animation: scroll-loop 10s linear infinite;
201203
}
202204

203205
.skill-item {
204206
flex: 0 0 auto;
205207
width: 200px;
206208
text-align: center;
209+
white-space: normal;
207210
}
208211

209-
@keyframes scroll-left {
212+
/* Animasi geser ke kiri terus tanpa jeda */
213+
@keyframes scroll-loop {
210214
from {
211215
transform: translateX(0);
212216
}
213217
to {
214-
transform: translateX(-55%);
218+
transform: translateX(-50%);
215219
}
216220
}
217221

222+
223+
224+
/* Duplikat konten untuk menciptakan efek loop */
225+
.carousel-track::after {
226+
content: "";
227+
display: block;
228+
position: absolute;
229+
width: 100%;
230+
height: 100%;
231+
left: 100%;
232+
}
233+
234+
218235
/* Bagian Tentang Saya */
219236
#about {
220237
text-align: center;

0 commit comments

Comments
 (0)