Skip to content

Commit 79aeb70

Browse files
authored
update css to make banner responsive (#72)
1 parent c48154b commit 79aeb70

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

apps/frontend/src/components/testimonials/testimonials.css

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/* Outer card */
22
.testimonial-carousel {
3-
width: 1200px;
4-
height: 395px;
3+
max-width: 1200px;
4+
width: 100%;
5+
min-height: 395px;
6+
height: auto;
57
border-radius: 10px;
68
overflow: hidden;
79
position: relative;
@@ -13,7 +15,7 @@
1315

1416
display: flex;
1517
align-items: center;
16-
padding: 40px 64px;
18+
padding: clamp(20px, 5vw, 40px) clamp(24px, 8vw, 64px);
1719

1820
font-family: 'Helvetica Neue LT Std', 'Helvetica Neue', Arial, sans-serif;
1921
color: #ffffff;
@@ -43,30 +45,30 @@
4345
.testimonial-carousel__text {
4446
position: relative; /* so it sits above ::before */
4547
z-index: 1;
46-
max-width: 440px;
48+
max-width: min(440px, 50%);
4749
display: flex;
4850
flex-direction: column;
49-
gap: 48px;
51+
gap: clamp(24px, 5vw, 48px);
5052
}
5153

5254
.testimonial-carousel__title {
5355
margin: 0;
54-
font-size: 48px;
56+
font-size: clamp(28px, 6vw, 48px);
5557
font-weight: 700;
56-
line-height: 100%;
58+
line-height: 110%;
5759
}
5860

5961
.testimonial-carousel__body {
6062
margin: 0;
61-
font-size: 20px;
63+
font-size: clamp(12px, 2.5vw, 20px);
6264
font-weight: 500;
63-
line-height: 100%;
65+
line-height: 120%;
6466
}
6567

6668
.testimonial-carousel__link {
67-
font-size: 20px;
69+
font-size: clamp(12px, 2.5vw, 20px);
6870
font-weight: 500;
69-
line-height: 100%;
71+
line-height: 140%;
7072
color: #ffffff;
7173
text-decoration-line: underline;
7274
text-decoration-style: solid;

0 commit comments

Comments
 (0)