Skip to content

Commit

Permalink
Merge pull request #182 from uclaacm/move-blog-filters
Browse files Browse the repository at this point in the history
Moved blog filters to new line
  • Loading branch information
bliutech authored Jun 19, 2024
2 parents cb04864 + b2205d3 commit 357ed05
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions pages/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,21 @@ export default function Blog({
<div className="content">
<h1>Blog</h1>
<span className={styles.categorySelectHeading}>Categories:</span>
<ul className={styles.categorySelect}>
{categories.map((category, index) => (
<li
key={index}
onClick={() => setFilterCategory(category)}
className={
filterCategory === category ? styles.selected : undefined
}
>
{category}
</li>
))}
</ul>
<div>
<ul className={styles.categorySelect}>
{categories.map((category, index) => (
<li
key={index}
onClick={() => setFilterCategory(category)}
className={
filterCategory === category ? styles.selected : undefined
}
>
{category}
</li>
))}
</ul>
</div>

<div className={styles.blogContainer}>{getPosts()}</div>
</div>
Expand Down

0 comments on commit 357ed05

Please sign in to comment.