+
onChange(e.target.value)}
- className=" flex-1 bg-transparent outline-none text-sm px-2 py-1 rounded"
+ className=" flex-1 bg-transparent outline-none text-(-color-text) text-sm px-2 py-1 rounded"
/>
);
diff --git a/src/components/major/side-bar/index.tsx b/src/components/major/side-bar/index.tsx
index f2f7fce..b19d748 100644
--- a/src/components/major/side-bar/index.tsx
+++ b/src/components/major/side-bar/index.tsx
@@ -46,7 +46,7 @@ const SideBar = ({ filters, updateFilters }: FiltersProps) => {
return (
diff --git a/src/styles/main.css b/src/styles/main.css
index 3bdbe3f..0f88962 100644
--- a/src/styles/main.css
+++ b/src/styles/main.css
@@ -1,31 +1,19 @@
@import 'tailwindcss';
@import 'tw-animate-css';
-:root {
+.dark {
--color-background: #2d272f;
--color-accent: rgb(38, 35, 39);
--color-text: #e1d2e5;
--color-input-bg: #e1d2e51a;
--color-error: rgb(248, 111, 111);
-
- --animate-fade-in-left: fade-in-left 0.4s;
- @keyframes fade-in-left {
- from {
- opacity: 0;
- transform: translateX(-20px);
- }
- to {
- opacity: 1;
- transform: translateX(0);
- }
- }
}
.light {
--color-background: #e1d2e5;
--color-accent: #e1d2e5;
--color-text: #2d272f;
- --color-input-bg: rgba(255, 0, 0, 0.05);
+ --color-input-bg: rgba(38, 35, 39, 0.2);
--color-error: rgb(215, 41, 41);
}
@@ -46,4 +34,4 @@ input {
input {
background: var(--color-input-bg);
-}
\ No newline at end of file
+}
diff --git a/src/utils/filterEvents.ts b/src/utils/filterEvents.ts
index ea770ff..9c2cf73 100644
--- a/src/utils/filterEvents.ts
+++ b/src/utils/filterEvents.ts
@@ -24,7 +24,6 @@ export const filterEvents = (events: FullEvent[], filters: FiltersState) => {
const dateOnly = new Date(now.getFullYear(), now.getMonth(), now.getDate());
const filterDate = new Date(dateOnly);
-
if (filters.date === 'today') {
filterDate.setDate(filterDate.getDate() + 1);
} else if (filters.date === 'this week') {
@@ -43,6 +42,7 @@ export const filterEvents = (events: FullEvent[], filters: FiltersState) => {
return priceMatch && distanceMatch && searchMatch && dateMatch;
});
};
+
/* search: '',
price: 50,
distance: 20,
diff --git a/tailwind.config.ts b/tailwind.config.ts
index e0f5d1e..eb565f0 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,11 +1,12 @@
-export default {
- lightMode: 'class',
- theme: {
- extend: {
- colors: {
- background: 'var(--color-background)',
- text: 'var(--color-text)',
- },
- },
- },
-};
+// export default {
+// content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
+// lightMode: 'class',
+// theme: {
+// extend: {
+// colors: {
+// background: 'var(--color-background)',
+// text: 'var(--color-text)',
+// },
+// },
+// },
+// };