Skip to content

Commit fe1e491

Browse files
committed
chore: feature section updates
1 parent 52dbcd8 commit fe1e491

File tree

1 file changed

+31
-39
lines changed

1 file changed

+31
-39
lines changed
Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
.section {
22
display: grid;
33
grid-template-columns: repeat(2, 1fr);
4-
justify-items: center;
4+
justify-content: space-between;
55
text-align: center;
6-
row-gap: 10rem;
7-
gap: 0rem;
6+
gap: 1.5rem;
87
width: 100%;
9-
max-width: 80rem;
10-
margin: 0 auto;
11-
12-
@media (min-width: 48rem) {
13-
gap: 1rem;
14-
grid-template-columns: repeat(4, 1fr);
15-
}
16-
8+
margin-bottom: 1.5rem;
179
@media (min-width: 64rem) {
18-
gap: 2rem;
19-
padding: 2rem;
10+
grid-template-columns: repeat(4, 1fr);
2011
}
2112
}
2213

@@ -28,75 +19,76 @@
2819
display: flex;
2920
flex-direction: column;
3021
align-items: center;
31-
padding-top: calc(var(--widget-size) + 0.5rem);
32-
background-size: var(--widget-size) var(--widget-size);
33-
background-repeat: no-repeat;
3422

35-
@media (min-width: 48rem) {
36-
padding-top: 160px;
37-
background-size: 160px 160px;
23+
&::before {
24+
content: "";
25+
display: block;
26+
background-repeat: no-repeat;
27+
height: var(--widget-size);
28+
width: var(--widget-size);
3829
}
3930

4031
h3 {
4132
font-size: 2rem;
42-
font-weight: 300;
43-
margin-bottom: 0;
44-
@media (min-width: 48rem) {
45-
margin-bottom: 0.5rem;
46-
}
33+
font-weight: 400;
34+
margin: 0.5rem 0;
4735
}
4836

4937
p {
50-
text-wrap: balance;
51-
font-size: 0.8rem;
52-
max-width: 16rem;
53-
padding: 1rem 0.2rem;
38+
text-wrap: pretty;
39+
font-size: max(0.75rem, min(1rem, 3.5dvw));
40+
max-width: 28ch;
5441
line-height: 1.5;
5542
}
5643
}
5744

58-
.trusted {
45+
.trusted::before {
46+
rotate: -5deg;
5947
background-position: top center;
6048
background-image: url("../../../../tags/widget/doc.svg?no-inline");
6149
}
6250

63-
.familiar {
51+
.familiar::before {
52+
rotate: 5deg;
6453
background-position: top 12px center;
6554
background-image: url("../../../../tags/widget/cookie.svg?no-inline");
6655
}
6756

68-
.performant {
57+
.performant::before {
58+
rotate: -5deg;
59+
scale: -1 1;
6960
background-position: top 14px center;
7061
background-image: url("../../../../tags/widget/link.svg?no-inline");
7162
}
7263

73-
.scalable {
64+
.scalable::before {
65+
rotate: 5deg;
7466
background-position: top center;
7567
background-image: url("../../../../tags/widget/pixel.svg?no-inline");
7668
}
7769

7870
@media (prefers-color-scheme: dark) {
79-
.trusted {
71+
.trusted::before {
8072
background-image: url("../../../../tags/widget/doc.svg?no-inline#dark");
8173
}
8274

83-
.familiar {
75+
.familiar::before {
8476
background-image: url("../../../../tags/widget/cookie.svg?no-inline#dark");
8577
}
8678

87-
.performant {
79+
.performant::before {
8880
background-image: url("../../../../tags/widget/link.svg?no-inline#dark");
8981
}
9082

91-
.scalable {
83+
.scalable::before {
9284
background-image: url("../../../../tags/widget/pixel.svg?no-inline#dark");
9385
}
9486
}
9587

9688
@media (min-width: 48rem) {
97-
.familiar,
98-
.performant,
99-
.scalable {
89+
.familiar::before,
90+
.performant::before,
91+
.scalable::before {
10092
background-position: top center;
10193
}
10294
}

0 commit comments

Comments
 (0)