Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 57 additions & 25 deletions src/Home.module.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
.filterContainer {
position: sticky;
top: 0;
z-index: 100;
background-color: white; /* Ensure background is white to cover content when sticky */
padding: 16px 30px 0px 30px; /* Add padding to match main content */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visual separation */
}

.main {
display: flex;
flex-direction: column;
padding: 16px 30px;
padding: 0 30px 16px 30px; /* Adjust padding for main content */
}

.contentWrapper {
display: flex;
flex-direction: column;
gap: 20px;
}

.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 16px 24px 16px 24px;
padding: 16px 24px;
width: 100%;
display: flex;
flex-direction: row;
border: none;
outline: none;
transition: 0.4s;
justify-content: space-between;

font-size: 18px;
font-weight: 700;
}
Expand All @@ -33,39 +47,57 @@
}

ul.chips {
margin: 30px 0 50px;
margin: 0;
list-style: none;
display: flex;
gap: 6px;
flex-wrap: wrap;
padding: 0px 16px 16px 16px;
padding: 0;
}

.chip {
background-color: rgb(255, 255, 255);
display: flex;
align-items: center;
gap: 4px;
margin-right: 6px;
font-size: 12px;
float: left;
border: 1px solid #f1f2f5;
border-radius: 14px;
padding: 16px 8px;
font-size: 14px;
.postList {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px; /* Gap between cards */
}

.resetChip {
background-color: rgb(255, 255, 255);
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 4px;
margin-right: 6px;
font-size: 12px;
float: left;
padding: 16px 8px;
gap: 5px; /* Smaller gap between page buttons */
margin-top: 20px;
}

.pagination button {
padding: 6px 10px; /* Smaller padding for buttons */
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f0f0f0;
cursor: pointer;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
font-size: 14px;
border: none;
min-width: 32px; /* Ensure consistent button width */
text-align: center;
}

.pagination button:hover:not(:disabled) {
background-color: #e0e0e0;
border-color: #a0a0a0;
}

.pagination button:disabled {
cursor: not-allowed;
opacity: 0.6;
background-color: #f8f8f8;
border-color: #e0e0e0;
color: #a0a0a0;
}

.pagination button.activePage {
background-color: #007bff;
color: white;
border-color: #007bff;
}

/* MODALS */
Expand Down
Loading