Filter by category

Now that I’m consistently writing again, I felt the need to add category filtering to the blog. I actually felt this way a few months ago and built the category pages, but never ended up finishing the nav for them. More recently, I found another reason…


This content originally appeared on Jonnie Hallman (@destroytoday) and was authored by Jonnie Hallman (@destroytoday)

Now that I’m consistently writing again, I felt the need to add category filtering to the blog. I actually felt this way a few months ago and built the category pages, but never ended up finishing the nav for them. More recently, I found another reason to revisit category filtering, but I’ll write about that in the next post… For now, let’s focus on the design.

category-filtering-all

Luckily, the existing design for the categories helped direct the design of the category nav. I simply reused their component and linked them up. To give them a slightly more solid footing on the page, rather than leaving them floating, I gave the container a light grey background (whitesmoke, to be specific). Then, I added a scroll behavior to make the category nav disappear as soon as you start scrolling.

category-filtering-single

On the category pages themselves, I wanted to indicate which category the page represented, but I didn’t want to add an additional title element for this. Instead, I created an inactive style for the other categories, so the active category would be more prominent. I absolutely love how it looks—especially with the nav category matching the blog post categories listed below it.

Reply via email


This content originally appeared on Jonnie Hallman (@destroytoday) and was authored by Jonnie Hallman (@destroytoday)


Print Share Comment Cite Upload Translate Updates
APA

Jonnie Hallman (@destroytoday) | Sciencx (2020-07-03T14:30:00+00:00) Filter by category. Retrieved from https://www.scien.cx/2020/07/03/filter-by-category/

MLA
" » Filter by category." Jonnie Hallman (@destroytoday) | Sciencx - Friday July 3, 2020, https://www.scien.cx/2020/07/03/filter-by-category/
HARVARD
Jonnie Hallman (@destroytoday) | Sciencx Friday July 3, 2020 » Filter by category., viewed ,<https://www.scien.cx/2020/07/03/filter-by-category/>
VANCOUVER
Jonnie Hallman (@destroytoday) | Sciencx - » Filter by category. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/07/03/filter-by-category/
CHICAGO
" » Filter by category." Jonnie Hallman (@destroytoday) | Sciencx - Accessed . https://www.scien.cx/2020/07/03/filter-by-category/
IEEE
" » Filter by category." Jonnie Hallman (@destroytoday) | Sciencx [Online]. Available: https://www.scien.cx/2020/07/03/filter-by-category/. [Accessed: ]
rf:citation
» Filter by category | Jonnie Hallman (@destroytoday) | Sciencx | https://www.scien.cx/2020/07/03/filter-by-category/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.