diff --git a/src/App.svelte b/src/App.svelte index 1a553c6..dbfb7dc 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -8,6 +8,7 @@ import frLocale from '@fullcalendar/core/locales/fr'; import Modal, { bind } from 'svelte-simple-modal'; import EventDetails from './EventDetails.svelte'; + import FilterBar from './FilterBar.svelte'; import { refreshEvents, calendarTree } from './calendar'; const modal = writable(null); @@ -39,11 +40,13 @@

Calendrier de la vie étudiante à l'ENS

-
- - +
+ + +
- +
+
diff --git a/src/FilterBar.svelte b/src/FilterBar.svelte new file mode 100644 index 0000000..634a631 --- /dev/null +++ b/src/FilterBar.svelte @@ -0,0 +1,11 @@ + + + diff --git a/src/FilterItem.svelte b/src/FilterItem.svelte new file mode 100644 index 0000000..5fbe2be --- /dev/null +++ b/src/FilterItem.svelte @@ -0,0 +1,15 @@ + + +{#if item != null} +
  • +{item} + +
  • +{/if} diff --git a/src/calendar.js b/src/calendar.js index 3b97c66..7e17974 100644 --- a/src/calendar.js +++ b/src/calendar.js @@ -25,12 +25,12 @@ const calendars = { }; export const calendarTree = { - "Clubs COF": [ - "Club réseau", - "hackENS", - ], - "COF": [], - "Délégation Générale": [], + "Clubs COF": { + "Club réseau": {}, + "hackENS": {}, + }, + "COF": {}, + "Délégation Générale": {}, }; const calendarIds = Object.keys(calendars);