fix(style): Change the css styling for different screen size

This commit is contained in:
SeekingGamer
2026-05-13 14:57:52 +08:00
parent e5bcb7bad2
commit 33b1f7f9dd
10 changed files with 860 additions and 660 deletions

View File

@@ -1,241 +1,252 @@
.download-cta {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 400px;
overflow: hidden;
background: #fff;
border-top: 1px solid #eec8b8;
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 400px;
overflow: hidden;
background: #fff;
border-top: 1px solid #eec8b8;
}
.download-cta__pattern {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
max-width: 1920px;
height: 923px;
pointer-events: none;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
width: 100%;
max-width: 1920px;
height: 923px;
pointer-events: none;
transform: translate(-50%, -50%);
}
.download-cta__inner {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 1280px;
gap: 32px;
margin: 0 auto;
padding: 48px 16px;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 1280px;
gap: 32px;
margin: 0 auto;
padding: 48px 16px;
}
.download-cta__content {
display: flex;
flex: 1;
flex-direction: column;
align-items: flex-start;
justify-content: center;
min-width: 0;
gap: 36px;
overflow: clip;
display: flex;
flex: 1;
flex-direction: column;
align-items: flex-start;
justify-content: center;
min-width: 0;
gap: 36px;
overflow: clip;
}
.download-cta__copy {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
gap: 16px;
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
gap: 16px;
}
.download-cta__heading {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
flex-shrink: 0;
gap: 20px;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
flex-shrink: 0;
gap: 20px;
}
.download-cta__title {
margin: 0;
font-size: 32px;
font-weight: 700;
line-height: 1.2;
color: #1a1a1a;
white-space: nowrap;
margin: 0;
font-size: 32px;
font-weight: 700;
line-height: 1.2;
color: #1a1a1a;
white-space: nowrap;
}
.download-cta__logo-frame {
position: relative;
flex-shrink: 0;
width: 188px;
height: 72px;
position: relative;
flex-shrink: 0;
width: 188px;
height: 72px;
}
.download-cta__logo {
position: absolute;
inset: 0;
display: block;
width: 100%;
max-width: none;
height: 100%;
position: absolute;
inset: 0;
display: block;
width: 100%;
max-width: none;
height: 100%;
}
.download-cta__description {
max-width: 542px;
margin: 0;
font-size: 18px;
font-weight: 400;
line-height: 1.5;
color: #7a726d;
max-width: 542px;
margin: 0;
font-size: 18px;
font-weight: 400;
line-height: 1.5;
color: #7a726d;
}
.store-badges {
display: flex;
flex-wrap: wrap;
align-items: center;
flex-shrink: 0;
width: 100%;
gap: 16px;
overflow: clip;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 100%;
gap: 16px;
overflow: clip;
}
.store-badge {
display: flex;
align-items: center;
flex-shrink: 0;
width: 100%;
height: 70px;
gap: 8px;
padding: 12px 16px;
overflow: clip;
border-radius: 20px;
display: flex;
align-items: center;
flex-shrink: 0;
width: 260px;
max-width: 100%;
height: 70px;
gap: 8px;
padding: 12px 16px;
overflow: clip;
border-radius: 20px;
}
.store-badge--android {
background: #f28a4b;
border: 1px solid #c5834e;
background: #f28a4b;
border: 1px solid #c5834e;
}
.store-badge--ios {
background: #383838;
border: 1px solid #141414;
background: #383838;
border: 1px solid #141414;
}
.store-badge__icon {
display: block;
flex-shrink: 0;
width: 44px;
height: 44px;
display: block;
flex-shrink: 0;
width: 44px;
height: 44px;
}
.store-badge__icon-frame {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 44px;
height: 44px;
background: #151515;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 44px;
height: 44px;
background: #151515;
border-radius: 12px;
}
.store-badge__apple-icon {
display: block;
width: 22px;
height: 27px;
display: block;
width: 22px;
height: 27px;
}
.store-badge__copy {
display: flex;
flex-direction: column;
align-items: flex-start;
flex-shrink: 0;
gap: 3px;
overflow: clip;
white-space: nowrap;
display: flex;
flex-direction: column;
align-items: flex-start;
flex-shrink: 0;
gap: 3px;
overflow: clip;
white-space: nowrap;
}
.store-badge__platform {
margin: 0;
font-size: 11px;
font-weight: 600;
line-height: normal;
letter-spacing: 0.05px;
margin: 0;
font-size: 11px;
font-weight: 600;
line-height: normal;
letter-spacing: 0.05px;
}
.store-badge--android .store-badge__platform {
color: #ffd6bc;
color: #ffd6bc;
}
.store-badge--ios .store-badge__platform {
color: #ccc;
color: #ccc;
}
.store-badge__label {
margin: 0;
font-size: 15px;
font-weight: 600;
line-height: normal;
color: #fff;
margin: 0;
font-size: 15px;
font-weight: 600;
line-height: normal;
color: #fff;
}
.download-cta__phone {
position: relative;
display: none;
flex-shrink: 0;
width: 418px;
height: 510px;
position: relative;
display: none;
flex-shrink: 0;
width: 418px;
height: 510px;
}
.download-cta__phone-crop {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.download-cta__phone-image {
position: absolute;
top: -18.05%;
left: 3.8%;
width: 92.43%;
max-width: none;
height: 136.1%;
position: absolute;
top: -18.05%;
left: 3.8%;
width: 92.43%;
max-width: none;
height: 136.1%;
}
@media (min-width: 640px) {
.store-badge {
width: 260px;
}
@media (min-width: 570px) {
.store-badges {
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
}
}
@media (min-width: 768px) {
.download-cta__title {
font-size: 40px;
}
.download-cta__title {
font-size: 40px;
}
}
@media (min-width: 1024px) {
.download-cta {
height: 600px;
}
@media (min-width: 1023px) {
.download-cta {
height: 600px;
}
.download-cta__inner {
flex-direction: row;
gap: 0;
padding: 0;
}
.download-cta__inner {
flex-direction: row;
gap: 0;
padding: 0 24px;
}
.download-cta__title {
font-size: 48px;
}
.download-cta__title {
font-size: 48px;
}
.download-cta__phone {
display: block;
}
.download-cta__phone {
display: block;
}
}
@media (min-width: 1280px) {
.download-cta__inner {
padding: 0;
}
}

View File

@@ -130,13 +130,13 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 1023px) {
.features {
padding: 120px 0;
}
.features__header {
padding: 0 180px;
padding: 0 clamp(24px, 14vw, 180px);
}
.features__title {
@@ -145,6 +145,12 @@
.features__grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
padding: 0 24px;
}
}
@media (min-width: 1280px) {
.features__grid {
padding: 0;
}
}

View File

@@ -30,7 +30,8 @@
display: flex;
flex-direction: column;
align-items: flex-start;
flex-shrink: 0;
flex: 1;
min-width: 0;
gap: 24px;
overflow: clip;
}
@@ -133,10 +134,6 @@
gap: 20px;
}
.site-footer__legal {
white-space: nowrap;
}
.site-footer__spacer {
display: block;
flex: 1;
@@ -144,13 +141,13 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 1023px) {
.site-footer {
padding: 120px 0;
}
.site-footer__inner {
padding: 0;
padding: 0 24px;
}
.site-footer__top {
@@ -160,3 +157,13 @@
gap: 0;
}
}
@media (min-width: 1280px) {
.site-footer__inner {
padding: 0;
}
.site-footer__legal {
white-space: nowrap;
}
}

View File

@@ -1,315 +1,323 @@
.site-header {
position: sticky;
top: 0;
z-index: 50;
width: 100%;
background: #fff;
border-bottom: 1px solid #e3d9d1;
position: sticky;
top: 0;
z-index: 50;
width: 100%;
background: #fff;
border-bottom: 1px solid #e3d9d1;
}
.site-header__bar {
display: flex;
align-items: center;
width: 100%;
max-width: 1280px;
height: 72px;
gap: 24px;
margin: 0 auto;
padding: 0 16px;
display: flex;
align-items: center;
width: 100%;
max-width: 1280px;
height: 72px;
gap: 24px;
margin: 0 auto;
padding: 0 16px;
}
.site-header__brand,
.site-header__actions {
display: flex;
flex: 1;
min-width: 0;
display: flex;
flex: 1;
min-width: 0;
}
.site-header__brand {
align-items: center;
align-items: center;
}
.site-header__actions {
align-items: center;
justify-content: flex-end;
gap: 12px;
align-items: center;
justify-content: flex-end;
gap: 12px;
}
.site-logo {
position: relative;
display: block;
flex-shrink: 0;
width: 143px;
height: 42px;
position: relative;
display: block;
flex-shrink: 0;
width: 143px;
height: 42px;
}
.site-logo__icon-frame {
position: absolute;
top: 0;
left: 0;
width: 53px;
height: 42px;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
width: 53px;
height: 42px;
overflow: hidden;
}
.site-logo__icon {
position: absolute;
top: -13.49%;
left: 0;
width: 100%;
max-width: none;
height: 126.98%;
position: absolute;
top: -13.49%;
left: 0;
width: 100%;
max-width: none;
height: 126.98%;
}
.site-logo__wordmark-frame {
position: absolute;
inset: 26.97% 0 7.92% 45.45%;
position: absolute;
inset: 26.97% 0 7.92% 45.45%;
}
.site-logo__wordmark {
position: absolute;
inset: 0;
display: block;
width: 100%;
max-width: none;
height: 100%;
position: absolute;
inset: 0;
display: block;
width: 100%;
max-width: none;
height: 100%;
}
.site-nav {
display: none;
align-items: center;
flex-shrink: 0;
gap: 32px;
display: none;
align-items: center;
flex-shrink: 0;
gap: 32px;
}
.site-nav__link {
font-size: 14px;
font-weight: 600;
line-height: normal;
color: #7a726d;
text-decoration: none;
white-space: nowrap;
transition: color 160ms ease;
font-size: 14px;
font-weight: 600;
line-height: normal;
color: #7a726d;
text-decoration: none;
white-space: nowrap;
transition: color 160ms ease;
}
.site-nav__link:hover,
.site-nav__link.is-active {
color: #f28a4b;
color: #f28a4b;
}
.language-switcher {
position: relative;
display: none;
flex-shrink: 0;
position: relative;
display: none;
flex-shrink: 0;
}
.language-switcher__button {
display: flex;
align-items: center;
justify-content: center;
height: 43px;
gap: 8px;
padding: 0 16px 0 12px;
background: #fff;
border: 1px solid rgba(46, 42, 40, 0.3);
border-radius: 17px;
cursor: pointer;
transition: border-color 160ms ease;
display: flex;
align-items: center;
justify-content: center;
height: 43px;
gap: 8px;
padding: 0 16px 0 12px;
background: #fff;
border: 1px solid rgba(46, 42, 40, 0.3);
border-radius: 17px;
cursor: pointer;
transition: border-color 160ms ease;
}
.language-switcher__button:hover,
.language-switcher__button[aria-expanded='true'] {
border-color: #f28a4b;
.language-switcher__button[aria-expanded="true"] {
border-color: #f28a4b;
}
.language-switcher__icon {
display: block;
width: 26px;
height: 26px;
object-fit: contain;
display: block;
width: 26px;
height: 26px;
object-fit: contain;
}
.language-switcher__current {
font-size: 14px;
font-weight: 600;
line-height: 14px;
color: #2e2a28;
white-space: nowrap;
font-size: 14px;
font-weight: 600;
line-height: 14px;
color: #2e2a28;
white-space: nowrap;
}
.language-switcher__menu {
position: absolute;
top: 52px;
right: 0;
z-index: 60;
width: 240px;
overflow: hidden;
background: #fff;
border: 1px solid #e3d9d1;
border-radius: 18px;
box-shadow: 0 16px 40px rgba(46, 42, 40, 0.16);
position: absolute;
top: 52px;
right: 0;
z-index: 60;
width: 240px;
overflow: hidden;
background: #fff;
border: 1px solid #e3d9d1;
border-radius: 18px;
box-shadow: 0 16px 40px rgba(46, 42, 40, 0.16);
}
.language-switcher__menu.is-hidden {
display: none;
display: none;
}
.language-switcher__option {
display: block;
padding: 18px 24px;
font-size: 18px;
font-weight: 600;
line-height: normal;
color: #7a726d;
text-decoration: none;
transition: background-color 160ms ease, color 160ms ease;
display: block;
padding: 18px 24px;
font-size: 18px;
font-weight: 600;
line-height: normal;
color: #7a726d;
text-decoration: none;
transition:
background-color 160ms ease,
color 160ms ease;
}
.language-switcher__option:hover {
color: #f28a4b;
background: #fef0eb;
color: #f28a4b;
background: #fef0eb;
}
.language-switcher__option.is-active {
color: #2e2a28;
background: #f8f3ee;
color: #2e2a28;
background: #f8f3ee;
}
.site-header__download {
display: none;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 13px 22px;
background: #f28a4b;
border-radius: 17px;
text-decoration: none;
transition: background-color 160ms ease;
display: none;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 13px 22px;
background: #f28a4b;
border-radius: 17px;
text-decoration: none;
transition: background-color 160ms ease;
}
.site-header__download:hover {
background: #e07a3b;
background: #e07a3b;
}
.site-header__download-label {
font-size: 14px;
font-weight: 700;
line-height: normal;
color: #fff;
white-space: nowrap;
font-size: 14px;
font-weight: 700;
line-height: normal;
color: #fff;
white-space: nowrap;
}
.menu-toggle {
display: flex;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
width: 40px;
height: 40px;
gap: 5px;
padding: 8px;
background: transparent;
border: 0;
cursor: pointer;
display: flex;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
width: 40px;
height: 40px;
gap: 5px;
padding: 8px;
background: transparent;
border: 0;
cursor: pointer;
}
.menu-toggle__bar {
display: block;
width: 100%;
height: 2px;
background: #2e2a28;
border-radius: 2px;
transform-origin: center;
transition: transform 240ms ease, opacity 240ms ease;
display: block;
width: 100%;
height: 2px;
background: #2e2a28;
border-radius: 2px;
transform-origin: center;
transition:
transform 240ms ease,
opacity 240ms ease;
}
.mobile-nav {
background: #fff;
border-top: 1px solid #e3d9d1;
background: #fff;
border-top: 1px solid #e3d9d1;
}
.mobile-nav.is-hidden {
display: none;
display: none;
}
.mobile-nav__list {
display: flex;
flex-direction: column;
padding: 16px 24px;
margin: 0;
list-style: none;
display: flex;
flex-direction: column;
padding: 16px 24px;
margin: 0;
list-style: none;
}
.mobile-nav__link {
display: block;
padding: 16px 0;
font-size: 16px;
font-weight: 600;
color: #2e2a28;
text-decoration: none;
border-bottom: 1px solid #e3d9d1;
display: block;
padding: 16px 0;
font-size: 16px;
font-weight: 600;
color: #2e2a28;
text-decoration: none;
border-bottom: 1px solid #e3d9d1;
}
.mobile-nav__link--last {
border-bottom: 0;
border-bottom: 0;
}
.mobile-nav__languages {
display: flex;
align-items: center;
gap: 16px;
padding: 16px 0;
border-top: 1px solid #e3d9d1;
display: flex;
align-items: center;
gap: 16px;
padding: 16px 0;
border-top: 1px solid #e3d9d1;
}
.mobile-nav__language-link {
font-size: 15px;
font-weight: 600;
color: #2e2a28;
text-decoration: none;
font-size: 15px;
font-weight: 600;
color: #2e2a28;
text-decoration: none;
}
.mobile-nav__language-link.is-active {
color: #f28a4b;
color: #f28a4b;
}
.mobile-nav__download-item {
margin: 16px 0 8px;
display: flex;
justify-content: center;
margin: 16px 0 8px;
}
.mobile-nav__download {
display: block;
padding: 14px 24px;
font-size: 15px;
font-weight: 700;
color: #fff;
text-align: center;
text-decoration: none;
background: #f28a4b;
border-radius: 17px;
transition: background-color 160ms ease;
display: block;
width: 250px;
max-width: 100%;
padding: 14px 24px;
font-size: 15px;
font-weight: 700;
color: #fff;
text-align: center;
text-decoration: none;
background: #f28a4b;
border-radius: 17px;
transition: background-color 160ms ease;
}
.mobile-nav__download:hover {
background: #e07a3b;
background: #e07a3b;
}
@media (min-width: 1024px) {
.site-header__bar {
padding: 0 24px;
}
@media (min-width: 1023px) {
.site-header__bar {
padding: 0 24px;
}
.site-nav,
.language-switcher,
.site-header__download {
display: flex;
}
.site-nav,
.language-switcher,
.site-header__download {
display: flex;
}
.menu-toggle {
display: none;
}
.menu-toggle {
display: none;
}
.mobile-nav {
display: none !important;
}
.mobile-nav {
display: none !important;
}
}

View File

@@ -207,14 +207,14 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 1023px) {
.hero {
height: 891px;
}
.hero__inner {
flex-direction: row;
padding: 0;
padding: 0 24px;
}
.hero__phone-column {
@@ -235,3 +235,9 @@
font-size: 72px;
}
}
@media (min-width: 1280px) {
.hero__inner {
padding: 0;
}
}

View File

@@ -132,7 +132,7 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 1023px) {
.app-preview {
padding: 120px 130px 0;
}

View File

@@ -37,7 +37,8 @@
.experience__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
grid-template-columns: minmax(0, 1fr);
justify-content: center;
width: 100%;
gap: 24px;
}
@@ -46,7 +47,9 @@
display: flex;
flex-direction: column;
align-items: center;
justify-self: center;
width: 100%;
max-width: 320px;
gap: 28px;
padding: 0 0 36px;
overflow: hidden;
@@ -58,7 +61,7 @@
position: relative;
flex-shrink: 0;
width: 100%;
height: 232px;
aspect-ratio: 320 / 232;
overflow: hidden;
}
@@ -284,23 +287,27 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 626px) {
.experience__grid {
grid-template-columns: repeat(2, minmax(0, 320px));
}
}
@media (min-width: 920px) {
.experience__grid {
grid-template-columns: repeat(3, minmax(0, 320px));
}
}
@media (min-width: 1023px) {
.experience {
padding: 120px 16px;
}
.experience__grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.experience-card {
height: 477px;
}
.experience-card__media {
height: 232px;
}
.experience-card__title {
white-space: nowrap;
}

View File

@@ -168,7 +168,7 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 1023px) {
.trust {
padding: 120px;
}

View File

@@ -192,9 +192,9 @@
}
}
@media (min-width: 1024px) {
@media (min-width: 1023px) {
.why {
padding: 120px 0;
padding: 120px 24px;
}
.why__intro {
@@ -209,3 +209,10 @@
display: block;
}
}
@media (min-width: 1280px) {
.why {
padding-right: 0;
padding-left: 0;
}
}