Skip to content

Commit 01d79c9

Browse files
authored
feat: to update responsive activities grid layout
1 parent 6eb5d3a commit 01d79c9

File tree

1 file changed

+80
-2
lines changed

1 file changed

+80
-2
lines changed

src/styles/pages/Activities.css

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,81 @@
1+
/* Activities Page Styles */
2+
.activities-root {
3+
min-height: 100vh;
4+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
5+
padding: 20px;
6+
}
7+
18
.activities-title {
2-
padding-top: 50px;
3-
}
9+
padding-top: 80px;
10+
padding-bottom: 40px;
11+
text-align: center;
12+
font-size: 3rem;
13+
font-weight: 700;
14+
color: #032d7a;
15+
margin: 0;
16+
text-transform: uppercase;
17+
letter-spacing: 2px;
18+
position: relative;
19+
}
20+
21+
.activities-title::after {
22+
content: '';
23+
position: absolute;
24+
bottom: 15px;
25+
left: 50%;
26+
transform: translateX(-50%);
27+
width: 100px;
28+
height: 4px;
29+
background: linear-gradient(90deg, #26b4ec, #032d7a);
30+
border-radius: 2px;
31+
}
32+
33+
.activities-content {
34+
display: grid;
35+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
36+
gap: 30px;
37+
max-width: 1400px;
38+
margin: 0 auto;
39+
padding: 0 20px 60px;
40+
}
41+
42+
/* Responsive Design */
43+
@media screen and (max-width: 1200px) {
44+
.activities-content {
45+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
46+
gap: 25px;
47+
}
48+
}
49+
50+
@media screen and (max-width: 768px) {
51+
.activities-root {
52+
padding: 15px;
53+
}
54+
55+
.activities-title {
56+
font-size: 2.5rem;
57+
padding-top: 60px;
58+
padding-bottom: 30px;
59+
}
60+
61+
.activities-content {
62+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
63+
gap: 20px;
64+
padding: 0 10px 40px;
65+
}
66+
}
67+
68+
@media screen and (max-width: 480px) {
69+
.activities-title {
70+
font-size: 2rem;
71+
padding-top: 50px;
72+
padding-bottom: 25px;
73+
letter-spacing: 1px;
74+
}
75+
76+
.activities-content {
77+
grid-template-columns: 1fr;
78+
gap: 15px;
79+
padding: 0 5px 30px;
80+
}
81+
}

0 commit comments

Comments
 (0)