-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
216 lines (183 loc) · 3.72 KB
/
style.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body {
font-family: 'Poppins', sans-serif;
margin: 0;
background-color: black;
color: whitesmoke;
}
svg {
width: 25px;
}
header {
width: 1200px;
max-width: 90%;
margin: auto;
display: grid;
grid-template-columns: 50px 1fr 50px;
grid-template-rows: 50px;
justify-content: center;
align-items: center;
position: relative;
z-index: 100;
}
header .logo {
font-weight: bold;
}
header .menu {
padding: 0;
margin: 0;
list-style: none;
display: flex;
justify-content: center;
gap: 20px;
font-weight: 500;
}
.slider {
height: 100vh;
margin-top: -50px;
position: relative;
}
.slider .list .item {
position: absolute;
inset: 0;
overflow: hidden;
opacity: 0;
transition: opacity 0.5s;
}
.slider .list .item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.slider .list .item::after {
content: "";
width: 100%;
height: 100%;
position: absolute;
left: 0;
bottom: 0;
background-image: linear-gradient(to top, #0b0a0a 20%, transparent);
}
body{
background-color: #0b0a0a;
}
.slider .list .item .content {
position: absolute;
left: 10%;
top: 20%;
width: 500px;
max-width: 80%;
z-index: 1;
}
.slider .list .item .content p:nth-child(1) {
text-transform: uppercase;
letter-spacing: 10px;
}
.slider .list .item .content h2 {
font-size: 100px;
margin: 0;
}
.slider .list .item.active {
opacity: 1;
z-index: 10;
}
@keyframes showContent {
to {
transform: translateY(0);
filter: blur(0);
opacity: 1;
}
}
.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3) {
transform: translateY(30px);
filter: blur(20px);
opacity: 0;
animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}
.slider .list .item.active h2 {
animation-delay: 1s;
}
.slider .list .item.active p:nth-child(3) {
animation-duration: 1.3s;
}
.arrows {
position: absolute;
top: 30%;
right: 50px;
z-index: 100;
}
.arrows button {
background-color: #eee5;
border: none;
font-family: monospace;
width: 40px;
height: 40px;
border-radius: 5px;
font-size: x-large;
color: #eee;
transition: 0.5s;
}
.arrows button:hover {
background-color: #eee;
color: black;
}
.thumbnail {
position: absolute;
top: 75%;
bottom: 50px;
z-index: 11;
display: flex;
gap: 10px;
width: 100%;
height: 250px;
display: flex; /* Menggunakan display flex untuk mengatur item secara horizontal */
justify-content: center; /* Mengatur rata tengah horizontal */
padding: 20px; /* Menambahkan padding pada container */
box-sizing: border-box;
overflow: auto;
text-justify: center;
}
@media screen and (max-width: 600px) {
.thumbnail {
flex-direction: column; /* Mengatur tata letak konten ke arah kolom untuk layar yang lebih kecil */
align-items: center; /* Mengatur rata tengah vertikal untuk konten */
height: auto; /* Menyesuaikan tinggi dengan konten */
padding: 10px; /* Mengurangi padding untuk layar yang lebih kecil */
}
}
.thumbnail::-webkit-scrollbar {
width: 0;
}
.thumbnail .item {
width: 150px;
height: 220px;
filter: brightness(0.5);
transition: 0.5s;
flex-shrink: 0;
}
.thumbnail .item img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}
.thumbnail .item.active {
filter: brightness(1.5);
}
.thumbnail .item .content {
position: absolute;
inset: 10px;
}
@media screen and (max-width: 678px) {
.thumbnail {
justify-content: start;
}
.slider .list .item .content h2 {
font-size: 60px;
}
.arrows {
top: 10%;
}
}