Files
talk-pro/src/styles/preview.css

163 lines
2.6 KiB
CSS
Raw Normal View History

.app-preview {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
gap: 60px;
padding: 64px 16px 0;
overflow: hidden;
background: #fef0eb;
}
.app-preview__header {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
max-width: 940px;
gap: 40px;
margin: 0 auto;
overflow: clip;
}
.app-preview__title {
width: 100%;
margin: 0;
font-size: 32px;
font-weight: 700;
line-height: 1.2;
color: #1a1a1a;
text-align: center;
}
.app-preview__description {
width: 100%;
margin: 0;
font-size: 18px;
font-weight: 400;
line-height: 1.5;
color: #7a726d;
text-align: center;
}
.app-preview__carousel {
display: flex;
align-items: flex-end;
justify-content: center;
flex-shrink: 0;
width: 100%;
gap: 12px;
}
.app-preview__side-phone {
position: relative;
display: none;
flex-shrink: 0;
width: 336px;
height: 396px;
overflow: hidden;
opacity: 0.2;
pointer-events: none;
transition: opacity 300ms ease;
}
.app-preview__phone-image {
position: absolute;
top: -0.03%;
left: 0;
width: 100%;
max-width: none;
height: 175.34%;
transition: opacity 300ms ease;
}
.app-preview__control-wrap {
display: flex;
align-items: flex-end;
align-self: stretch;
flex-shrink: 0;
}
.app-preview__control-inner {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.app-preview__button {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 48px;
height: 48px;
background: #f08458;
border: 0;
border-radius: 9999px;
cursor: pointer;
transition: background-color 160ms ease, transform 160ms ease;
}
.app-preview__button:hover {
background: #e07a3b;
}
.app-preview__button:active {
transform: scale(0.95);
}
.app-preview__button-icon {
display: block;
width: 24px;
height: 24px;
}
.app-preview__button-icon--next {
transform: rotate(180deg);
}
.app-preview__center-phone {
position: relative;
flex-shrink: 0;
width: min(420px, calc(100vw - 144px));
aspect-ratio: 459 / 542;
overflow: hidden;
pointer-events: none;
}
@media (min-width: 768px) {
.app-preview__title {
font-size: 40px;
}
}
@media (min-width: 1023px) {
.app-preview {
padding: 120px 130px 0;
}
.app-preview__title {
font-size: 48px;
}
.app-preview__side-phone,
.app-preview__control-wrap {
display: flex;
}
.app-preview__carousel {
gap: 20px;
}
.app-preview__side-phone {
display: block;
}
.app-preview__center-phone {
width: 459px;
height: 542px;
aspect-ratio: auto;
}
}