Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

redesign(marketplace): add horizontal category chip row

Juan Denise3a920817226
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index a50f7fa0..bc3e19eb 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -354,6 +354,28 @@ const Marketplace = () => {
)}
</div>
+ <div className="cat-chips" role="group" aria-label="Filter by category">
+ <button
+ type="button"
+ className={`cat-chip ${category === '' ? 'cat-chip--active' : ''}`}
+ aria-pressed={category === ''}
+ onClick={() => setCategory('')}
+ >
+ All
+ </button>
+ {CATEGORIES.map((item) => (
+ <button
+ key={item}
+ type="button"
+ className={`cat-chip ${category === item ? 'cat-chip--active' : ''}`}
+ aria-pressed={category === item}
+ onClick={() => setCategory(item)}
+ >
+ {titleCase(item)}
+ </button>
+ ))}
+ </div>
+
<div className="marketplace-browse-grid">
<div className="marketplace-main-stack">
<section className="marketplace-section">
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index 907748e6..ddd431f4 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -106,6 +106,41 @@
height: 40px;
}
+ .cat-chips {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+ margin-bottom: $space-5;
+ }
+
+ .cat-chip {
+ padding: $space-1 $space-3;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ background: $bg-elevated;
+ color: $text-tertiary;
+ font-family: inherit;
+ font-size: $font-size-sm + 0.5;
+ font-weight: $font-weight-medium;
+ text-transform: capitalize;
+ cursor: pointer;
+ transition:
+ color $transition-base,
+ background $transition-base,
+ border-color $transition-base;
+
+ &:hover {
+ border-color: $border-active;
+ color: $text-primary;
+ }
+
+ &--active {
+ border-color: var(--accent-dim);
+ background: var(--accent-bg);
+ color: var(--accent-bright);
+ }
+ }
+
.marketplace-browse-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 292px;