Files
w11_20_Yovan_personalPage/app/styles.css
T
2026-11-05 11:55:36 +07:00

142 lines
2.1 KiB
CSS

/* external stylesheet: shared by hobbies.html, about.html and contact.html */
.page-body {
margin: 0;
font-family: "Segoe UI", Arial, sans-serif;
background-color: #f1f5f9;
color: #1e293b;
line-height: 1.6;
}
/* header + shared navigation bar */
.site-header {
background-color: #312e81;
color: #ffffff;
padding: 24px 16px 0;
text-align: center;
}
.site-header .page-title {
margin: 0 0 4px;
font-size: 2rem;
}
.site-header .tagline {
margin: 0;
}
.site-nav ul {
list-style: none;
margin: 16px 0 0;
padding: 0;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 4px;
}
.site-nav a {
display: block;
padding: 12px 16px;
color: #ffffff;
text-decoration: none;
border-radius: 6px 6px 0 0;
}
.site-nav a:hover,
.site-nav a.active {
background-color: #4f46e5;
}
/* layout containers */
.page-wrapper,
.about-wrapper {
max-width: 900px;
margin: 24px auto;
padding: 0 16px;
}
.about-wrapper {
display: flex;
flex-direction: column;
gap: 24px;
}
/* content cards (hobbies + contact) */
.card {
background-color: #ffffff;
border-radius: 10px;
padding: 20px 24px;
margin-bottom: 20px;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.card h2 {
margin-top: 0;
color: #312e81;
font-size: 1.5rem;
}
.card h3 {
margin: 0 0 6px;
font-size: 1.15rem;
}
.card ul {
list-style: disc;
padding-left: 24px;
}
.card ol {
list-style: decimal;
padding-left: 24px;
}
.card a {
color: #4338ca;
}
/* hobbies grid */
.hobby-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
}
.hobby-card img {
display: block;
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 10px;
}
.hobby-card p {
margin: 0;
}
/* tables */
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
border: 1px solid #cbd5e1;
padding: 8px 12px;
text-align: left;
}
.data-table th {
background-color: #e0e7ff;
}
.site-footer {
text-align: center;
padding: 20px 16px;
color: #64748b;
font-size: 0.9rem;
}