fix(feat): Rearrange the element to fix the responsive layout
This commit is contained in:
@@ -1,259 +1,278 @@
|
||||
.hero {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
min-height: 600px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
min-height: 600px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero__bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero__inner {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
height: 100%;
|
||||
gap: 40px;
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
height: 100%;
|
||||
gap: 40px;
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.hero__phone-column {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding-top: 24px;
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding-top: 24px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero__phone-frame {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: min(320px, 100%);
|
||||
height: 527px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: min(320px, 100%);
|
||||
height: 527px;
|
||||
}
|
||||
|
||||
.hero__phone-crop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero__phone {
|
||||
position: absolute;
|
||||
top: -7.18%;
|
||||
left: -2.67%;
|
||||
width: 105.35%;
|
||||
max-width: none;
|
||||
height: 114.36%;
|
||||
position: absolute;
|
||||
top: -7.18%;
|
||||
left: -2.67%;
|
||||
width: 105.35%;
|
||||
max-width: none;
|
||||
height: 114.36%;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
gap: 60px;
|
||||
padding: 32px 0;
|
||||
overflow: clip;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
gap: 60px;
|
||||
padding: 32px 0;
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.hero__badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
padding: 12px 16px;
|
||||
overflow: clip;
|
||||
background: #fff;
|
||||
border: 1px solid #f08458;
|
||||
border-radius: 999px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
padding: 12px 16px;
|
||||
overflow: clip;
|
||||
background: #fff;
|
||||
border: 1px solid #f08458;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.hero__badge-text {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
color: #0d0d0d;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
color: #0d0d0d;
|
||||
}
|
||||
|
||||
.hero__copy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
gap: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
width: 100%;
|
||||
font-size: 40px;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
color: #2e2a28;
|
||||
width: 100%;
|
||||
font-size: 40px;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
color: #2e2a28;
|
||||
}
|
||||
|
||||
.hero__title-line {
|
||||
margin: 0;
|
||||
line-height: 1.1;
|
||||
margin: 0;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.hero__description {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: #7a726d;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: #7a726d;
|
||||
}
|
||||
|
||||
.hero__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
gap: 14px;
|
||||
overflow: clip;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-shrink: 0;
|
||||
gap: 14px;
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.hero__button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
padding: 14px 24px;
|
||||
overflow: clip;
|
||||
border-radius: 17px;
|
||||
text-decoration: none;
|
||||
transition: background-color 160ms ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
padding: 14px 24px;
|
||||
overflow: clip;
|
||||
border-radius: 17px;
|
||||
text-decoration: none;
|
||||
transition: background-color 160ms ease;
|
||||
}
|
||||
|
||||
.hero__button--primary {
|
||||
background: #f28a4b;
|
||||
background: #f28a4b;
|
||||
}
|
||||
|
||||
.hero__button--primary:hover {
|
||||
background: #e07a3b;
|
||||
background: #e07a3b;
|
||||
}
|
||||
|
||||
.hero__button--secondary {
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
border: 1px solid #e3d9d1;
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
border: 1px solid #e3d9d1;
|
||||
}
|
||||
|
||||
.hero__button--secondary:hover {
|
||||
background: #fff;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.hero__button-label {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
white-space: nowrap;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero__button--primary .hero__button-label {
|
||||
color: #fff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hero__button--secondary .hero__button-label {
|
||||
color: #2e2a28;
|
||||
color: #2e2a28;
|
||||
}
|
||||
|
||||
.hero__tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
gap: 10px;
|
||||
overflow: clip;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
gap: 10px;
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.hero__tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
padding: 9px 14px;
|
||||
overflow: clip;
|
||||
background: rgba(255, 255, 255, 0.68);
|
||||
border: 1px solid #fff;
|
||||
border-radius: 999px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
padding: 9px 14px;
|
||||
overflow: clip;
|
||||
background: rgba(255, 255, 255, 0.68);
|
||||
border: 1px solid #fff;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.hero__tag-text {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
color: #7a726d;
|
||||
white-space: nowrap;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
color: #7a726d;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-width: 433px) {
|
||||
.hero__actions {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hero__button {
|
||||
width: min(100%, calc(100vw - 32px));
|
||||
padding-right: 14px;
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.hero__button-label {
|
||||
font-size: clamp(13px, 3.5vw, 15px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.hero__title {
|
||||
font-size: 56px;
|
||||
}
|
||||
.hero__title {
|
||||
font-size: 56px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1023px) {
|
||||
.hero {
|
||||
height: 891px;
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.hero {
|
||||
height: 891px;
|
||||
}
|
||||
|
||||
.hero__inner {
|
||||
flex-direction: row;
|
||||
padding: 0 24px;
|
||||
}
|
||||
.hero__inner {
|
||||
flex-direction: row;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.hero__phone-column {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding-top: 60px;
|
||||
}
|
||||
.hero__phone-column {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
.hero__phone-frame {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 673 / 1108;
|
||||
}
|
||||
.hero__phone-frame {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 673 / 1108;
|
||||
}
|
||||
|
||||
.hero__content {
|
||||
width: 660px;
|
||||
padding: 80px 0;
|
||||
}
|
||||
.hero__content {
|
||||
width: 660px;
|
||||
padding: 80px 0;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
font-size: 72px;
|
||||
}
|
||||
.hero__title {
|
||||
font-size: 72px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.hero__inner {
|
||||
padding: 0;
|
||||
}
|
||||
.hero__inner {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user