added css:

This commit is contained in:
cabbbyy
2025-08-11 22:17:45 +08:00
parent 5c4c2c3b24
commit 098d0f5b41
6 changed files with 293 additions and 0 deletions

48
style/hobbies.css Normal file
View File

@@ -0,0 +1,48 @@
.hobbies {
width: 100%;
height: 100vh; /* adjust as you like */
border-radius: 10px !important; /* ← rounded corners */
margin-top: 1rem;
padding: 1rem;
}
/* Horizontalscroll wrapper */
.horizontal-section {
position: relative;
overflow: hidden;
}
/* Inner scroller — flex row, full viewport height */
.horizontal-section__inner {
position: absolute;
top: 0; left: 0;
display: flex;
height: 100vh;
will-change: transform;
}
/* Each card: same width as the container (70vw), stacked vertically inside */
.card {
flex: none;
width: 100%; /* same as .container width (70vw) */
margin-right: 1rem; /* gap between cards */
display: flex;
flex-direction: column;
}
/* Image on top */
.card img {
width: 100%;
height: auto;
border-radius: 10px;
object-fit: cover;
}
/* Caption below */
.card .caption {
margin-top: 0.5rem;
text-align: center;
color: var(--fg-one);
font-size: 0.95rem;
}