Skip to content

Commit 961abd8

Browse files
authored
Intern component (#10)
1 parent 0cfd10d commit 961abd8

File tree

3 files changed

+544
-425
lines changed

3 files changed

+544
-425
lines changed

src/Home.module.css

Lines changed: 57 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
1+
.filterContainer {
2+
position: sticky;
3+
top: 0;
4+
z-index: 100;
5+
background-color: white; /* Ensure background is white to cover content when sticky */
6+
padding: 16px 30px 0px 30px; /* Add padding to match main content */
7+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visual separation */
8+
}
9+
110
.main {
211
display: flex;
312
flex-direction: column;
4-
padding: 16px 30px;
13+
padding: 0 30px 16px 30px; /* Adjust padding for main content */
14+
}
15+
16+
.contentWrapper {
17+
display: flex;
18+
flex-direction: column;
19+
gap: 20px;
520
}
621

722
.accordion {
823
background-color: #eee;
924
color: #444;
1025
cursor: pointer;
11-
padding: 16px 24px 16px 24px;
26+
padding: 16px 24px;
1227
width: 100%;
1328
display: flex;
1429
flex-direction: row;
1530
border: none;
1631
outline: none;
1732
transition: 0.4s;
1833
justify-content: space-between;
19-
2034
font-size: 18px;
2135
font-weight: 700;
2236
}
@@ -33,39 +47,57 @@
3347
}
3448

3549
ul.chips {
36-
margin: 30px 0 50px;
50+
margin: 0;
3751
list-style: none;
3852
display: flex;
3953
gap: 6px;
4054
flex-wrap: wrap;
41-
padding: 0px 16px 16px 16px;
55+
padding: 0;
4256
}
4357

44-
.chip {
45-
background-color: rgb(255, 255, 255);
46-
display: flex;
47-
align-items: center;
48-
gap: 4px;
49-
margin-right: 6px;
50-
font-size: 12px;
51-
float: left;
52-
border: 1px solid #f1f2f5;
53-
border-radius: 14px;
54-
padding: 16px 8px;
55-
font-size: 14px;
58+
.postList {
59+
display: grid;
60+
grid-template-columns: repeat(3, 1fr);
61+
gap: 20px; /* Gap between cards */
5662
}
5763

58-
.resetChip {
59-
background-color: rgb(255, 255, 255);
64+
.pagination {
6065
display: flex;
66+
justify-content: center;
6167
align-items: center;
62-
gap: 4px;
63-
margin-right: 6px;
64-
font-size: 12px;
65-
float: left;
66-
padding: 16px 8px;
68+
gap: 5px; /* Smaller gap between page buttons */
69+
margin-top: 20px;
70+
}
71+
72+
.pagination button {
73+
padding: 6px 10px; /* Smaller padding for buttons */
74+
border: 1px solid #ccc;
75+
border-radius: 4px;
76+
background-color: #f0f0f0;
77+
cursor: pointer;
78+
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
6779
font-size: 14px;
68-
border: none;
80+
min-width: 32px; /* Ensure consistent button width */
81+
text-align: center;
82+
}
83+
84+
.pagination button:hover:not(:disabled) {
85+
background-color: #e0e0e0;
86+
border-color: #a0a0a0;
87+
}
88+
89+
.pagination button:disabled {
90+
cursor: not-allowed;
91+
opacity: 0.6;
92+
background-color: #f8f8f8;
93+
border-color: #e0e0e0;
94+
color: #a0a0a0;
95+
}
96+
97+
.pagination button.activePage {
98+
background-color: #007bff;
99+
color: white;
100+
border-color: #007bff;
69101
}
70102

71103
/* MODALS */

0 commit comments

Comments
 (0)