From cd1c5a16954b73d8ba3e3bfafe5e633e5ecfd029 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 14 Jul 2025 21:12:05 +0800 Subject: feat: new fictions section page --- assets/css/components/_fictions.scss | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) (limited to 'assets/css/components') diff --git a/assets/css/components/_fictions.scss b/assets/css/components/_fictions.scss index c235a5f2..58c15ba0 100644 --- a/assets/css/components/_fictions.scss +++ b/assets/css/components/_fictions.scss @@ -1,33 +1,27 @@ #fiction-section { .fiction-welcome { margin: 2rem 0; - display: flex; - align-items: center; - gap: 2rem; - @media screen and (max-width: 768px) { - gap: 1rem; - } - - .fiction-welcome-image img { - width: 10rem; - @media screen and (max-width: 768px) { - width: 7rem; - } - opacity: 0.8; - } } .fiction-list { - margin: 4rem 0; + display: flex; + flex-wrap: wrap; + justify-content: space-around; + gap: 2rem; + .fiction-item { text-align: center; - margin: 2rem 0; + margin: 0; + filter: url(#x); + font-size: 1.5rem; + font-weight: 900; - .fiction-item-title { - margin: 0; - } - .fiction-item-meta { - color: var(--secondary-text-color); + // Apply slight random rotation using nth-child + @for $i from 1 through 10 { + &:nth-child(#{$i}) { + transform: rotate(#{random(7) - 4}deg); + opacity: #{(random(5) + 5) / 10}; + } } } } -- cgit v1.2.3