Skip to content

Commit ec2ad3c

Browse files
committed
feat(ktl-2781): case studies card
1 parent edfe0da commit ec2ad3c

File tree

8 files changed

+222
-313
lines changed

8 files changed

+222
-313
lines changed
Lines changed: 24 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,53 @@
11
.card {
2-
display: flex;
3-
flex-direction: column;
4-
gap: 16px;
5-
padding: 20px;
6-
border-radius: 12px;
2+
border-radius: 16px;
3+
overflow: hidden;
74
background: #fff;
8-
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
9-
border: 1px solid rgba(0,0,0,0.12);
10-
box-sizing: border-box;
115
}
126

13-
.header {
7+
.content {
148
display: flex;
15-
align-items: center;
16-
justify-content: space-between;
17-
gap: 12px;
18-
}
19-
20-
.badge {
21-
font-size: 12px;
22-
font-weight: 600;
23-
padding: 6px 10px;
24-
border-radius: 999px;
25-
line-height: 1;
26-
white-space: nowrap;
27-
}
28-
29-
.badgeMultiplatform {
30-
background: #eef7ff;
31-
color: #1565c0;
32-
border: 1px solid rgba(21,101,192,0.15);
33-
}
9+
flex-direction: column;
10+
padding: 32px;
11+
gap: 24px;
3412

35-
.badgeServerSide {
36-
background: #eef9f2;
37-
color: #1b5e20;
38-
border: 1px solid rgba(27,94,32,0.15);
13+
@media (width <= 616px) {
14+
padding: 24px;
15+
}
3916
}
4017

4118
.logos {
4219
display: flex;
4320
align-items: center;
44-
gap: 10px;
21+
gap: 32px;
4522
}
4623

47-
.logosDouble {}
48-
4924
.logo {
50-
height: 28px;
25+
height: 64px;
5126
width: auto;
5227
object-fit: contain;
53-
max-width: 140px;
54-
opacity: 0.95;
55-
}
56-
57-
.logoSecond {
58-
border-left: 1px solid rgba(0,0,0,0.06);
59-
padding-left: 10px;
6028
}
6129

6230
.media {
63-
border-radius: 10px;
6431
overflow: hidden;
6532
background: #f6f7f9;
6633
}
6734

68-
.mediaVideo {
69-
position: relative;
70-
padding-bottom: 56.25%;
71-
height: 0;
72-
}
73-
74-
.iframe {
75-
position: absolute;
76-
inset: 0;
77-
width: 100%;
78-
height: 100%;
79-
}
80-
8135
.mediaImage {
8236
width: 100%;
8337
height: auto;
8438
display: block;
8539
}
8640

8741
.description {
88-
color: #1f2328;
89-
font-size: 16px;
90-
line-height: 1.6;
42+
color: var(--default-font-color);
43+
line-height: 24px;
9144
}
45+
9246
.description :global(a) {
9347
color: #0b65c2;
9448
text-decoration: underline;
9549
}
50+
9651
.description :global(strong) {
9752
font-weight: 700;
9853
}
@@ -101,71 +56,28 @@
10156
margin-top: 4px;
10257
margin-bottom: 24px;
10358
}
59+
10460
.signatureLine1 {
10561
font-weight: 600;
10662
color: #101214;
10763
}
64+
10865
.signatureLine2 {
10966
color: #555c63;
11067
}
11168

11269
.platforms {
11370
display: flex;
114-
flex-wrap: wrap;
115-
gap: 10px 14px;
116-
align-items: center;
117-
}
118-
119-
.platform {
120-
display: inline-flex;
121-
align-items: center;
122-
gap: 6px;
123-
padding: 4px 8px;
124-
border: 1px solid rgba(0,0,0,0.06);
125-
border-radius: 999px;
126-
background: #fafbfc;
127-
color: #2b2f35;
128-
font-size: 13px;
129-
line-height: 1;
130-
}
131-
132-
.platformIcon {
133-
width: 16px;
134-
height: 16px;
135-
object-fit: contain;
136-
}
137-
138-
.platformLabel {
139-
text-transform: capitalize;
140-
}
141-
142-
.actions {
143-
display: flex;
144-
gap: 12px;
14571
align-items: center;
14672
flex-wrap: wrap;
73+
gap: 8px 12px;
74+
height: 24px;
75+
margin-left: -2px; /* visual compensation */
14776
}
14877

14978
.link {
150-
color: #0b65c2;
151-
text-decoration: underline;
152-
font-weight: 600;
153-
}
154-
155-
.button {
156-
display: inline-flex;
157-
align-items: center;
158-
justify-content: center;
159-
padding: 8px 14px;
160-
border-radius: 8px;
161-
border: 1px solid #0b65c2;
162-
color: #0b65c2;
163-
font-weight: 600;
164-
text-decoration: none;
165-
transition: all 0.15s ease;
166-
}
167-
168-
.button:hover {
169-
background: #0b65c2;
170-
color: #fff;
79+
display: inline-block;
80+
align-self: flex-start;
81+
letter-spacing: 0.01em;
82+
line-height: 24px;
17183
}

0 commit comments

Comments
 (0)