Improve responsive layout for hero CTA and mockup.
Widen the bottom CTA so the title and buttons fit on one line on desktop; hide hero screenshot mockup below 900px. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,12 +3,16 @@
|
||||
}
|
||||
|
||||
.inner {
|
||||
max-width: 720px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: 48px 40px;
|
||||
padding: 40px 48px;
|
||||
border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-xl);
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
background:
|
||||
radial-gradient(
|
||||
ellipse at 50% 0%,
|
||||
@@ -20,21 +24,45 @@
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 28px;
|
||||
font-size: clamp(26px, 4vw, 34px);
|
||||
margin: 0;
|
||||
font-size: clamp(22px, 2.4vw, 30px);
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
line-height: 1.25;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: nowrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
@media (max-width: 1040px) and (min-width: 901px) {
|
||||
.inner {
|
||||
gap: 20px;
|
||||
padding: 36px 28px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: clamp(18px, 2.1vw, 24px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.inner {
|
||||
flex-direction: column;
|
||||
max-width: 720px;
|
||||
padding: 36px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.actions {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,8 +76,6 @@
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.wrap {
|
||||
min-height: 360px;
|
||||
max-width: 480px;
|
||||
margin: 0 auto;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user