fix: banner隨寬度等比cover

This commit is contained in:
2026-06-02 13:53:57 +08:00
parent b79309ad29
commit 4982ec0688
2 changed files with 14 additions and 7 deletions
+8 -1
View File
@@ -64,11 +64,18 @@
gap: clamp(12px, 2vw, 20px);
}
header {
header#origin {
height: clamp(11rem, 56.25vw, 100dvh);
background-size: cover;
background-position: center center;
}
header.inner-page-header {
height: clamp(10rem, 35vw, 19rem);
background-size: cover;
background-position: center 78%;
}
header#origin .hero .site-header-inner .main-title {
font-size: clamp(1.75rem, 2.25vw + 1rem, 2.35rem);
}