style: Seperate and Reformat inline style into css seperate files
This commit is contained in:
211
src/styles/why.css
Normal file
211
src/styles/why.css
Normal file
@@ -0,0 +1,211 @@
|
||||
.why {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 64px 16px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.why__inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
gap: 40px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.why__intro {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
gap: 36px;
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.why__copy {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
min-width: 0;
|
||||
gap: 36px;
|
||||
}
|
||||
|
||||
.why__text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.why__title {
|
||||
width: 100%;
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
.why__title-line {
|
||||
margin: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.why__underline {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
width: 295.5px;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.why__underline-frame {
|
||||
position: absolute;
|
||||
inset: -0.5px 0;
|
||||
}
|
||||
|
||||
.why__underline-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.why__description {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: #7a726d;
|
||||
}
|
||||
|
||||
.why__illustration {
|
||||
position: relative;
|
||||
display: none;
|
||||
flex-shrink: 0;
|
||||
width: 480px;
|
||||
height: 480px;
|
||||
}
|
||||
|
||||
.why__illustration-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.why__grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
width: 100%;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.why-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
gap: 24px;
|
||||
padding: 36px;
|
||||
overflow: clip;
|
||||
background: #fef0eb;
|
||||
border: 1px solid #e8e4de;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.why-card__icon-frame {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
overflow: clip;
|
||||
background: #f08458;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.why-card__icon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.why-card__icon--square {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.why-card__icon--familiar {
|
||||
width: 38px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.why-card__icon--modern {
|
||||
width: 24px;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.why-card__copy {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
min-width: 0;
|
||||
gap: 12px;
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.why-card__title {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
color: #0d0d0d;
|
||||
}
|
||||
|
||||
.why-card__description {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
color: #7a726d;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.why__title {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.why__grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.why-card {
|
||||
min-height: 152px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.why {
|
||||
padding: 120px 0;
|
||||
}
|
||||
|
||||
.why__intro {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.why__title {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.why__illustration {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user