Initial commit: Assignment 1 Personal Website Project
- 5 halaman: Beranda, Tentang, Hobi, Gallery, Kontak - Navigasi bersama tiap halaman - About: 4 metode CSS (internal, inline, eksternal, Tailwind) - Hobi: external CSS only, 3 foto pribadi - Gallery: Tailwind only via CDN, 3 foto pribadi - Kontak: tanpa form, link sosial media + email - Semua foto milik sendiri di /images - Tidak ada <form>, tidak ada script selain Tailwind CDN
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
export default function AboutHead() {
|
||||
return (
|
||||
<>
|
||||
{/* INTERNAL CSS: <style> di <head>. Selektor id #about-page atur latar/background, selektor kelas .about-card atur kotak konten. */}
|
||||
<style>
|
||||
{`
|
||||
#about-page {
|
||||
background: #fafafa;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 1.7;
|
||||
color: #1f2937;
|
||||
}
|
||||
.about-header {
|
||||
padding: 26px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
.about-main {
|
||||
max-width: 700px;
|
||||
margin: 32px auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
.about-card {
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 10px;
|
||||
padding: 18px;
|
||||
background: #ffffff;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.about-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.about-table th,
|
||||
.about-table td {
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
.about-h1 {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 6px 0;
|
||||
}
|
||||
.about-h2 {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
.about-p {
|
||||
font-size: 15px;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
.about-list {
|
||||
padding-left: 20px;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
.about-quote {
|
||||
font-style: italic;
|
||||
color: #4b5563;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.about-footer {
|
||||
padding: 20px;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
font-size: 13px;
|
||||
color: #9ca3af;
|
||||
text-align: center;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user