-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolio.html
72 lines (66 loc) · 2.79 KB
/
portfolio.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>My Portfolio</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link href="https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap" rel="stylesheet" />
<style>
body {
background-color: #333; /* Warna latar belakang gelap */
color: #ffffff; /* Warna teks putih */
font-family: 'Poppins', sans-serif; /* Menggunakan font Poppins */
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh; /* Mengisi tinggi layar */
}
h1 {
margin-bottom: 20px;
font-size: 2.5em; /* Ukuran font judul */
text-align: center;
}
.portfolio-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Grid responsif */
gap: 20px; /* Jarak antar kotak */
width: 90%; /* Lebar kontainer */
max-width: 1200px; /* Lebar maksimum */
}
.project-box {
background-color: #444; /* Warna latar belakang kotak */
border-radius: 10px; /* Sudut melengkung */
padding: 20px; /* Padding di dalam kotak */
text-align: center; /* Teks di tengah */
transition: transform 0.3s, box-shadow 0.3s; /* Transisi untuk efek hover */
cursor: pointer; /* Menunjukkan bahwa kotak dapat diklik */
}
.project-box:hover {
transform: translateY(-5px); /* Mengangkat kotak saat hover */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Bayangan saat hover */
}
@media (max-width: 768px) {
h1 {
font-size: 2em; /* Ukuran font judul untuk perangkat kecil */
}
.project-box {
padding: 15px; /* Padding lebih kecil untuk perangkat kecil */
}
}
</style>
</head>
<body>
<h1>My Portfolio</h1>
<div class="portfolio-container">
<div class="project-box" onclick="window.location.href='link-proyek-1.html'">Project 1</div>
<div class="project-box" onclick="window.location.href='link-proyek-2.html'">Project 2</div>
<div class="project-box" onclick="window.location.href='link-proyek-3.html'">Project 3</div>
<div class="project-box" onclick="window.location.href='link-proyek-4.html'">Project 4</div>
<div class="project-box" onclick="window.location.href='link-proyek-5.html'">Project 5</div>
<div class="project-box" onclick="window.location.href='link-proyek-6.html'">Project 6</div>
</div>
</body>
</html>