117 lines
2.0 KiB
CSS
117 lines
2.0 KiB
CSS
/* Mengatur tampilan dasar seluruh halaman */
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background-color: #e8e8e8;
|
|
color: #222222;
|
|
font-family: Arial, sans-serif;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Mengatur posisi header dan navigasi */
|
|
.header {
|
|
width: min(1500px, 100%);
|
|
margin: 1em auto;
|
|
}
|
|
|
|
.nav {
|
|
margin-bottom: 3em;
|
|
}
|
|
|
|
.nav-list {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
list-style-type: none;
|
|
gap: 2em;
|
|
padding: 0;
|
|
}
|
|
|
|
.nav-list li:first-child {
|
|
margin-right: auto;
|
|
}
|
|
|
|
.nav-list a {
|
|
display: block;
|
|
color: #222222;
|
|
text-decoration: none;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.nav-list a:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
|
|
/* Mengatur container utama halaman Hobbies */
|
|
.hobbies-main {
|
|
width: min(1100px, 100%);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Mengatur judul dan deskripsi halaman */
|
|
.page-title {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-intro {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
color: #555555;
|
|
}
|
|
|
|
/* Mengatur susunan kartu hobi */
|
|
.hobby-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 1em;
|
|
}
|
|
|
|
/* Mengatur tampilan setiap kartu hobi */
|
|
.hobby-item img {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
height: auto;
|
|
}
|
|
|
|
/* Mengatur ukuran dan tampilan foto */
|
|
.hobby-card img {
|
|
width: 100%;
|
|
aspect-ratio: 4 / 3;
|
|
object-fit: cover;
|
|
border: 1px solid #cccccc;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Mengatur judul dan deskripsi setiap hobi */
|
|
.hobby-content h2 {
|
|
margin: 0;
|
|
color: #222222;
|
|
}
|
|
|
|
.hobby-content p {
|
|
color: #555555;
|
|
text-align: justify;
|
|
}
|
|
|
|
/* Menyesuaikan tampilan untuk tablet */
|
|
.hobbies-container {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 25px;
|
|
background-color: #ffffff;
|
|
border: 1px solid #bdbdbd;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
/* Mengatur tampilan footer */
|
|
footer {
|
|
margin-top: 3rem;
|
|
padding: 20px;
|
|
text-align: center;
|
|
} |