feat: Added filtering by optional tags in the main page. Created TagFilter... #40

Merged
tt2022 merged 8 commits from feat/filter-by-tags into master 2025-06-11 02:45:24 +00:00
19 changed files with 238 additions and 437 deletions
Showing only changes of commit 5eb7a9f58c - Show all commits

View File

@@ -58,6 +58,7 @@
</Navbar> </Navbar>
<main> <main>
<div class="tag-filter-container">
<TagFilter <TagFilter
{selectedTags} {selectedTags}
{tagFilter} {tagFilter}
@@ -67,6 +68,7 @@
{deleteTag} {deleteTag}
{addTag} {addTag}
/> />
</div>
{#each filteredStudySpaces() as studySpace (studySpace.id)} {#each filteredStudySpaces() as studySpace (studySpace.id)}
{@const imgUrl = {@const imgUrl =
@@ -100,6 +102,13 @@
transform: rotate(45deg); transform: rotate(45deg);
} }
.tag-filter-container {
grid-column: 1 / -1;
display: flex;
justify-content: center;
margin-bottom: 1rem;
}
@media (max-width: 20rem) { @media (max-width: 20rem) {
main { main {
grid-template-columns: 1fr; grid-template-columns: 1fr;