Spaces:
Running
Running
gpt-engineer-app[bot]
commited on
Commit
·
9fb6103
1
Parent(s):
f46336a
Improve UI and clarify filter labels
Browse filesMatch the color scheme and theme to Hugging Face's style. Clarify the meaning of the filter labels in the FilterBar component.
- src/components/FilterBar.tsx +13 -12
- tailwind.config.ts +6 -6
src/components/FilterBar.tsx
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
|
2 |
const filters = [
|
3 |
-
"All",
|
4 |
-
"ML",
|
5 |
-
"CV",
|
6 |
-
"NLP",
|
7 |
-
"RO",
|
8 |
-
"SP",
|
9 |
-
"DM",
|
10 |
-
"AP",
|
11 |
-
"KR",
|
12 |
-
"HCI",
|
13 |
];
|
14 |
|
15 |
const FilterBar = () => {
|
@@ -19,10 +19,11 @@ const FilterBar = () => {
|
|
19 |
<div className="flex space-x-4">
|
20 |
{filters.map((filter) => (
|
21 |
<button
|
22 |
-
key={filter}
|
|
|
23 |
className="px-4 py-2 text-sm font-medium rounded-lg hover:bg-primary/10 hover:text-primary transition-colors"
|
24 |
>
|
25 |
-
{filter}
|
26 |
</button>
|
27 |
))}
|
28 |
</div>
|
|
|
1 |
|
2 |
const filters = [
|
3 |
+
{ id: "All", label: "All", description: "All Conferences" },
|
4 |
+
{ id: "ML", label: "Machine Learning", description: "Machine Learning" },
|
5 |
+
{ id: "CV", label: "Computer Vision", description: "Computer Vision" },
|
6 |
+
{ id: "NLP", label: "Natural Language", description: "Natural Language Processing" },
|
7 |
+
{ id: "RO", label: "Robotics", description: "Robotics & Automation" },
|
8 |
+
{ id: "SP", label: "Signal Processing", description: "Signal Processing" },
|
9 |
+
{ id: "DM", label: "Data Mining", description: "Data Mining & Analytics" },
|
10 |
+
{ id: "AP", label: "Applied AI", description: "Applied AI & Applications" },
|
11 |
+
{ id: "KR", label: "Knowledge Repr.", description: "Knowledge Representation" },
|
12 |
+
{ id: "HCI", label: "Human-AI", description: "Human-Computer Interaction" },
|
13 |
];
|
14 |
|
15 |
const FilterBar = () => {
|
|
|
19 |
<div className="flex space-x-4">
|
20 |
{filters.map((filter) => (
|
21 |
<button
|
22 |
+
key={filter.id}
|
23 |
+
title={filter.description}
|
24 |
className="px-4 py-2 text-sm font-medium rounded-lg hover:bg-primary/10 hover:text-primary transition-colors"
|
25 |
>
|
26 |
+
{filter.label}
|
27 |
</button>
|
28 |
))}
|
29 |
</div>
|
tailwind.config.ts
CHANGED
@@ -26,14 +26,14 @@ export default {
|
|
26 |
background: "hsl(var(--background))",
|
27 |
foreground: "hsl(var(--foreground))",
|
28 |
primary: {
|
29 |
-
DEFAULT: "#
|
30 |
-
light: "#
|
31 |
-
dark: "#
|
32 |
},
|
33 |
neutral: {
|
34 |
-
DEFAULT: "#
|
35 |
-
light: "#
|
36 |
-
dark: "#
|
37 |
},
|
38 |
},
|
39 |
keyframes: {
|
|
|
26 |
background: "hsl(var(--background))",
|
27 |
foreground: "hsl(var(--foreground))",
|
28 |
primary: {
|
29 |
+
DEFAULT: "#FF8C00", // Hugging Face orange
|
30 |
+
light: "#FFB266",
|
31 |
+
dark: "#CC7000",
|
32 |
},
|
33 |
neutral: {
|
34 |
+
DEFAULT: "#6B7280",
|
35 |
+
light: "#F9FAFB",
|
36 |
+
dark: "#111827",
|
37 |
},
|
38 |
},
|
39 |
keyframes: {
|