Skip to content

Commit eb55557

Browse files
authored
feat: add card for Rstest and polish styles (#36)
1 parent 2c468fd commit eb55557

8 files changed

Lines changed: 156 additions & 78 deletions

File tree

src/built-with-rspack/index.module.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
// S
1818
@media screen and (max-width: 600px) {
1919
.title {
20-
font-size: 32px !important;
20+
font-size: 30px !important;
2121
line-height: 48px !important;
2222
}
23+
2324
.innerContainer {
2425
background-size: 100% 100% !important;
25-
padding: 26px 0px 0px 0px !important;
26+
padding: 48px 0px 0px 0px !important;
27+
2628
&::before {
2729
width: 300px !important;
2830
height: 300px !important;
@@ -47,7 +49,7 @@
4749

4850
box-sizing: border-box;
4951

50-
padding: 32px;
52+
padding: 64px 48px;
5153
flex-direction: column;
5254
justify-content: center;
5355
align-items: center;

src/fully-featured/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
.featureDescription {
103103
color: var(--rs-fully-featured-desc-color, #6b7075);
104104

105-
font-size: 15px;
105+
font-size: 14px;
106106
font-style: normal;
107107
font-weight: 400;
108108
line-height: 23.8px; /* 158.667% */

src/section-style/shared.module.scss

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,13 @@
55
// M 601 - 834
66
// S < 601
77

8-
// XXL
9-
@media screen and (min-width: 1441px) {
10-
.container {
11-
padding: 96px 144px !important;
12-
}
13-
.titleAndDesc {
14-
padding: 0px 144px 32px 144px !important;
15-
}
16-
}
17-
188
// XL
19-
@media screen and (min-width: 1281px) and (max-width: 1440px) {
9+
@media screen and (min-width: 1281px) {
2010
.container {
2111
padding: 96px 144px !important;
2212
}
2313
.titleAndDesc {
24-
padding: 0px 144px 32px 144px !important;
14+
padding: 0px 144px 36px 144px !important;
2515
}
2616
}
2717

@@ -31,24 +21,28 @@
3121
padding: 80px 80px !important;
3222
}
3323
.titleAndDesc {
34-
padding: 0px 16px !important;
24+
padding: 0px 16px 32px !important;
3525
}
3626
}
3727

3828
// M
3929
@media screen and (min-width: 601px) and (max-width: 834px) {
4030
.container {
4131
padding: 64px 32px !important;
32+
4233
.innerContainer {
4334
gap: 16px !important;
4435
}
4536
}
37+
4638
.titleAndDesc {
47-
padding: 0px 16px !important;
39+
padding: 0px 16px 32px !important;
4840
gap: 16px !important;
41+
4942
.title {
5043
font-size: 32px !important;
5144
}
45+
5246
.desc {
5347
font-size: 16px !important;
5448
line-height: 28px !important;
@@ -92,7 +86,7 @@
9286
flex-direction: column;
9387
width: 100%;
9488

95-
max-width: 1440px;
89+
max-width: 1296px;
9690
}
9791
}
9892

src/tool-stack/index.module.scss

Lines changed: 65 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,60 @@
1-
// M
2-
@media screen and (min-width: 601px) and (max-width: 1000px) {
1+
// L - Large screens: three cards per row
2+
@media screen and (min-width: 1101px) {
33
.tools {
4-
& > :nth-child(1),
5-
& > :nth-child(2) {
6-
max-width: 60% !important;
7-
min-width: 40% !important;
8-
width: 50%;
4+
.tool {
5+
min-width: calc(33.33% - 21.33px);
6+
max-width: calc(33.33% - 21.33px);
7+
flex: 0 0 calc(33.33% - 21.33px);
98
}
10-
& > .tool:not(:nth-child(-n + 2)) {
11-
min-width: 30% !important;
12-
max-width: 33% !important;
9+
}
10+
}
11+
12+
// M - Medium screens: two cards per row
13+
@media screen and (min-width: 601px) and (max-width: 1100px) {
14+
.tools {
15+
.tool {
16+
min-width: calc(50% - 16px);
17+
max-width: calc(50% - 16px);
18+
flex: 0 0 calc(50% - 16px);
1319
}
1420
}
1521
}
1622

17-
// S
23+
// S - Small screens: one card per row
1824
@media screen and (max-width: 600px) {
1925
.tools {
2026
flex-direction: column;
27+
.tool {
28+
width: 100%;
29+
}
2130
}
2231
}
2332

2433
:global {
2534
html:not(.dark) {
2635
--rs-tool-stack-shadow-color: #f9f9f9;
2736
--rs-tool-stack-title-color: #0b0c0e;
28-
--rs-tool-stack-desc-color: #6b7075;
37+
--rs-tool-stack-desc-color: #8fa1b9;
2938

30-
--rs-tool-stack-card-stroke: rgba(226, 232, 240, 0.5);
39+
--rs-tool-stack-card-stroke: rgba(143, 161, 185, 0.3);
3140
--rs-tool-stack-card-gradient: linear-gradient(
3241
135deg,
3342
rgba(255, 255, 255, 1),
3443
rgba(249, 249, 249, 0.5)
3544
);
45+
--rs-tools-stack-url-color: #f93920;
3646
}
3747
html.dark {
3848
--rs-tool-stack-shadow-color: #23272f;
3949
--rs-tool-stack-title-color: white;
40-
--rs-tool-stack-desc-color: #c6cacd;
50+
--rs-tool-stack-desc-color: #8fa1b9;
4151
--rs-tool-stack-card-stroke: #23272f;
4252
--rs-tool-stack-card-gradient: linear-gradient(
4353
135deg,
4454
rgba(255, 255, 255, 0),
4555
rgba(255, 255, 255, 0.03)
4656
);
57+
--rs-tools-stack-url-color: #f93920;
4758
}
4859
}
4960

@@ -52,7 +63,7 @@
5263
align-items: center;
5364
justify-content: center;
5465
flex-wrap: wrap;
55-
gap: 16px;
66+
gap: 32px;
5667
}
5768

5869
.tool {
@@ -61,46 +72,76 @@
6172

6273
display: flex;
6374
flex: 1 1 0;
64-
padding: 24px 16px;
75+
padding: 24px;
6576
box-sizing: border-box;
6677

6778
flex-direction: column;
68-
align-items: center;
69-
gap: 16px;
79+
align-items: start;
80+
gap: 8px;
7081
align-self: stretch;
7182

7283
// style
7384
border-radius: 10px;
7485
border: 1px solid var(--rs-tool-stack-card-stroke);
7586
background: var(--rs-tool-stack-card-gradient);
76-
box-shadow: 0px -2px 10px 0px var(--rs-tool-stack-shadow-color);
7787
transition: all 0.2s ease-out;
88+
7889
&:hover {
79-
transform: scale3d(1.04, 1.04, 1.04);
90+
transform: scale3d(1.03, 1.03, 1.03);
8091
}
8192

8293
.logo {
83-
height: 90px;
94+
width: 52px;
95+
height: 52px;
96+
object-fit: contain;
8497
flex-shrink: 0;
8598
}
8699

100+
.toolContent {
101+
display: flex;
102+
flex-direction: column;
103+
align-items: flex-start;
104+
gap: 8px;
105+
}
106+
87107
.toolTitle {
88108
color: var(--rs-tool-stack-title-color);
89109
text-align: center;
90110

91-
font-size: 22px;
111+
font-size: 19px;
92112
font-style: normal;
93113
font-weight: 600;
94-
line-height: 32px; /* 145.455% */
114+
line-height: 24px;
115+
margin-top: 4px;
95116
}
96117

97118
.toolDescription {
98119
color: var(--rs-tool-stack-desc-color);
99-
text-align: center;
120+
text-align: left;
121+
height: 48px;
100122

101123
font-size: 14px;
102124
font-style: normal;
103125
font-weight: 400;
104126
line-height: 24px;
127+
margin: 0;
128+
}
129+
130+
.toolUrl {
131+
color: var(--rs-tools-stack-url-color);
132+
font-size: 15px;
133+
font-style: normal;
134+
font-weight: 400;
135+
line-height: 24px;
136+
text-decoration: none;
137+
display: block;
138+
text-align: left;
139+
width: 100%;
140+
}
141+
}
142+
143+
@keyframes rotate {
144+
100% {
145+
transform: rotate(1turn);
105146
}
106147
}

0 commit comments

Comments
 (0)