Skip to content

Commit 20693fa

Browse files
committed
fix: responsive landing width
1 parent aba8181 commit 20693fa

1 file changed

Lines changed: 36 additions & 5 deletions

File tree

packages/common-config/src/components/CategoryCards/styles.module.css

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
left: 0;
3737
width: 100%;
3838
height: 4px;
39-
background: linear-gradient(89.99deg, var(--gradient-start) 30%, var(--gradient-end) 100%);
39+
background: linear-gradient(
40+
89.99deg,
41+
var(--gradient-start) 30%,
42+
var(--gradient-end) 100%
43+
);
4044
transform: scaleX(0);
4145
transform-origin: left;
4246
transition: transform 0.4s ease;
@@ -48,7 +52,8 @@
4852

4953
.categoryCard:hover {
5054
transform: translateY(-4px) scale(1.02);
51-
box-shadow: 0 4px 30px rgba(31, 85, 213, 0.2),
55+
box-shadow:
56+
0 4px 30px rgba(31, 85, 213, 0.2),
5257
0 0 20px rgba(233, 91, 155, 0.2);
5358
border-color: rgba(255, 255, 255, 0.3);
5459
}
@@ -71,7 +76,11 @@
7176
}
7277

7378
.categoryTitle {
74-
font-family: "Sharp Grotesk", system-ui, -apple-system, sans-serif;
79+
font-family:
80+
"Sharp Grotesk",
81+
system-ui,
82+
-apple-system,
83+
sans-serif;
7584
font-weight: 500;
7685
font-size: 1rem;
7786
line-height: 0.7;
@@ -97,13 +106,26 @@
97106

98107
@media (max-width: 1200px) {
99108
.categoryCards {
100-
grid-template-columns: repeat(2, 1fr);
101109
margin-bottom: 5rem;
102110
}
103111

104112
.categoryCard {
105113
width: 100%;
106114
}
115+
116+
.categoryTitle {
117+
font-size: 0.8rem;
118+
}
119+
.categoryIcon {
120+
width: 30px;
121+
height: 30px;
122+
}
123+
}
124+
125+
@media (max-width: 1100px) {
126+
.categoryCards {
127+
margin-bottom: 4.5rem;
128+
}
107129
}
108130

109131
@media (max-width: 1024px) {
@@ -112,10 +134,19 @@
112134
}
113135
}
114136

115-
@media (max-width: 1100px) {
137+
@media (max-width: 996px) {
116138
.categoryCards {
139+
grid-template-columns: repeat(2, 1fr);
117140
margin-bottom: 5rem;
118141
}
142+
143+
.categoryTitle {
144+
font-size: 1rem;
145+
}
146+
.categoryIcon {
147+
width: 40px;
148+
height: 40px;
149+
}
119150
}
120151

121152
@media (max-width: 600px) {

0 commit comments

Comments
 (0)