-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
154 lines (136 loc) · 2.61 KB
/
styles.css
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* Reset */
body, h1, h2, p, header, main, footer {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: #000; /* Hitam untuk latar */
color: #fff; /* Putih untuk teks */
overflow-x: hidden;
line-height: 1.6;
}
/* Header */
header {
text-align: center;
background: #000;
padding: 20px;
border-bottom: 1px solid #fff;
}
header h1 {
font-size: 2rem;
}
header p {
font-size: 1rem;
}
/* Main Content */
.cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
padding: 20px;
}
.card {
width: 300px;
max-width: 90%;
background: #fff; /* Putih untuk kartu */
color: #000; /* Hitam untuk teks */
border-radius: 10px;
padding: 20px;
text-align: center;
box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(10px); /* Efek blur */
}
.modal-content {
background: #fff; /* Putih untuk modal */
color: #000; /* Hitam untuk teks */
padding: 20px;
border-radius: 10px;
text-align: center;
width: 90%;
max-width: 400px;
box-shadow: 0 10px 20px rgba(255, 255, 255, 0.5);
position: relative;
animation: fadeIn 0.5s ease;
}
footer {
text-align: center;
background: #000;
padding: 20px;
border-top: 1px solid #fff;
}
/* Animasi bintang jatuh */
.stars {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 1000;
}
.star {
position: absolute;
width: 2px;
height: 2px;
background: white;
border-radius: 50%;
animation: fall 3s linear infinite;
}
@keyframes fall {
0% {
transform: translateY(-100px);
opacity: 1;
}
100% {
transform: translateY(100vh);
opacity: 0;
}
}
/* Bagian "About Me" */
.about-me {
background: #222; /* Latar belakang sedikit gelap */
color: #fff;
padding: 20px;
margin-top: 40px;
text-align: center;
border-radius: 10px;
}
.about-me h2 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.about-me p {
font-size: 1rem;
}
.link-here {
color: #fff;
font-weight: bold;
text-decoration: none;
border-bottom: 2px solid #fff; /* Garis bawah */
transition: color 0.3s ease, border-color 0.3s ease;
}
.link-here:hover {
color: #ffcc00; /* Warna kuning saat hover */
border-color: #ffcc00; /* Garis bawah kuning saat hover */
}