Tugas Personal Website
This commit is contained in:
@@ -0,0 +1,197 @@
|
||||
/* stylesheet eksternal: dipakai oleh hobbies, about (nav + wrapper), dan contact */
|
||||
/* semua selector memakai kelas supaya tetap menang atas reset tailwind di about */
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
color: #1c2b33;
|
||||
background: #f3f7f7;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px 24px;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 16px 24px 0;
|
||||
}
|
||||
|
||||
.brand {
|
||||
margin: 0;
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: #0f4c5c;
|
||||
}
|
||||
|
||||
/* navigasi */
|
||||
.site-nav {
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
.site-nav ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.site-nav a {
|
||||
display: inline-block;
|
||||
padding: 8px 16px;
|
||||
border-radius: 999px;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
color: #0f4c5c;
|
||||
background: #e3eef0;
|
||||
}
|
||||
|
||||
.site-nav a:hover {
|
||||
background: #cfe2e6;
|
||||
}
|
||||
|
||||
.site-nav a.active {
|
||||
color: #ffffff;
|
||||
background: #0f4c5c;
|
||||
}
|
||||
|
||||
/* tipografi */
|
||||
.container h1 {
|
||||
margin: 24px 0 12px;
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
font-size: 2.4rem;
|
||||
line-height: 1.15;
|
||||
color: #0f4c5c;
|
||||
}
|
||||
|
||||
.container h2 {
|
||||
margin: 0 0 8px;
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
font-size: 1.5rem;
|
||||
color: #0f4c5c;
|
||||
}
|
||||
|
||||
.container h3 {
|
||||
margin: 16px 0 6px;
|
||||
font-size: 1.05rem;
|
||||
color: #1c2b33;
|
||||
}
|
||||
|
||||
.container p {
|
||||
margin: 0 0 12px;
|
||||
line-height: 1.7;
|
||||
max-width: 65ch;
|
||||
}
|
||||
|
||||
.container ul,
|
||||
.container ol {
|
||||
margin: 0 0 12px;
|
||||
padding-left: 24px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.container ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.container ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.container a {
|
||||
color: #0f4c5c;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* blok konten */
|
||||
.panel {
|
||||
margin-bottom: 24px;
|
||||
padding: 24px;
|
||||
background: #ffffff;
|
||||
border-radius: 12px;
|
||||
border-left: 6px solid #0f4c5c;
|
||||
}
|
||||
|
||||
/* hobbies */
|
||||
.hobby {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 24px;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 24px;
|
||||
padding: 24px;
|
||||
background: #ffffff;
|
||||
border-radius: 12px;
|
||||
border-left: 6px solid #e09f3e;
|
||||
}
|
||||
|
||||
.hobby img {
|
||||
width: 260px;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.hobby-text {
|
||||
flex: 1 1 280px;
|
||||
}
|
||||
|
||||
/* tabel */
|
||||
.data-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.container .data-table th,
|
||||
.container .data-table td {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #c9d8db;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.container .data-table th {
|
||||
background: #0f4c5c;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* kontak */
|
||||
.contact-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container .contact-list {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.contact-list li {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #e3eef0;
|
||||
}
|
||||
|
||||
.contact-label {
|
||||
display: inline-block;
|
||||
min-width: 110px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* footer */
|
||||
.site-footer {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 16px 24px 32px;
|
||||
border-top: 1px solid #c9d8db;
|
||||
font-size: 0.9rem;
|
||||
color: #4a5d66;
|
||||
}
|
||||
|
||||
.site-footer p {
|
||||
margin: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user