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;
}
}