Skip to content

Commit 4edc062

Browse files
committed
feat(ktl-2781): case studies card
1 parent 5d3d3de commit 4edc062

File tree

9 files changed

+291
-360
lines changed

9 files changed

+291
-360
lines changed
Lines changed: 53 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,171 +1,95 @@
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 {
8+
--font-color: rgba(25, 25, 28, 1);
149
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-
}
10+
flex-direction: column;
11+
padding: 32px;
12+
gap: 24px;
13+
color: var(--font-color);
3414

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

4120
.logos {
4221
display: flex;
4322
align-items: center;
44-
gap: 10px;
23+
gap: 32px;
4524
}
4625

47-
.logosDouble {}
48-
4926
.logo {
50-
height: 28px;
27+
height: 64px;
5128
width: auto;
5229
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;
60-
}
61-
62-
.media {
63-
border-radius: 10px;
64-
overflow: hidden;
65-
background: #f6f7f9;
66-
}
67-
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%;
7930
}
8031

8132
.mediaImage {
33+
display: block;
8234
width: 100%;
8335
height: auto;
84-
display: block;
8536
}
8637

8738
.description {
88-
color: #1f2328;
39+
color: var(--font-color);
8940
font-size: 16px;
90-
line-height: 1.6;
91-
}
92-
.description :global(a) {
93-
color: #0b65c2;
94-
text-decoration: underline;
95-
}
96-
.description :global(strong) {
97-
font-weight: 700;
98-
}
41+
line-height: 24px;
9942

100-
.signature {
101-
margin-top: 4px;
102-
margin-bottom: 24px;
103-
}
104-
.signatureLine1 {
105-
font-weight: 600;
106-
color: #101214;
107-
}
108-
.signatureLine2 {
109-
color: #555c63;
110-
}
43+
& h2 {
44+
margin-top: 0;
45+
margin-bottom: 24px;
46+
font-size: 35px;
47+
line-height: 42px;
48+
font-weight: 600;
49+
}
11150

112-
.platforms {
113-
display: flex;
114-
flex-wrap: wrap;
115-
gap: 10px 14px;
116-
align-items: center;
51+
& p {
52+
margin-top: 0;
53+
margin-bottom: 16px;
54+
55+
&:last-child {
56+
margin-bottom: 0;
57+
}
58+
}
59+
60+
& a {
61+
color: var(--font-color);
62+
}
11763
}
11864

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;
65+
.signature {
66+
color: var(--font-color);
13067
}
13168

132-
.platformIcon {
133-
width: 16px;
134-
height: 16px;
135-
object-fit: contain;
69+
.name {
70+
color: var(--font-color);
71+
line-height: 24px;
72+
font-weight: 700;
13673
}
13774

138-
.platformLabel {
139-
text-transform: capitalize;
75+
.position {
76+
color: var(--font-color);
77+
opacity: 0.6;
78+
line-height: 24px;
14079
}
14180

142-
.actions {
81+
.platforms {
14382
display: flex;
144-
gap: 12px;
14583
align-items: center;
14684
flex-wrap: wrap;
85+
gap: 8px 12px;
86+
height: 24px;
87+
margin-left: -2px; /* visual compensation */
14788
}
14889

14990
.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;
91+
display: inline-block;
92+
align-self: flex-start;
93+
letter-spacing: 0.01em;
94+
line-height: 24px;
17195
}

0 commit comments

Comments
 (0)