120 lines
4.3 KiB
Vue
120 lines
4.3 KiB
Vue
<script setup>
|
|
import { useMenuStore } from '../../stores/MenuStore';
|
|
import { useEventsStore } from '../../stores/EventsStore';
|
|
import { mainStore } from '../../stores/MainStore.vue';
|
|
import Modal from './Modal.vue';
|
|
|
|
const menuStore = useMenuStore();
|
|
const EventsStore = useEventsStore();
|
|
const MainStore = mainStore();
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="menuStore.showMenu">
|
|
<div v-if="menuStore.isHidden">
|
|
<div>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(0)">Today</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(1)">Tomorrow</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(2)">+ 2</button>
|
|
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(3)">+ 3</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(4)">+ 4</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(5)">+ 5</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(6)">+ 6</button>
|
|
</div>
|
|
|
|
<div>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Mu')">Entertainment</button>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Ed')">Education</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <div v-if="!menuStore.isHidden">
|
|
<div>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(0)">Today</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(1)">Tomorrow</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(2)">+ 2</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(3)">+ 3</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(4)">+ 4</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(5)">+ 5</button>
|
|
<button class="btn days" v-on:click.prevent="EventsStore.getEventByDate(6)">+ 6</button>
|
|
</div>
|
|
|
|
<div>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Mu')">Music</button>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Gv')">Government</button>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Ed')">Education</button>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Co')">Comedy</button>
|
|
<button class="btn category" v-on:click.prevent="EventsStore.getEventsByType('Ot')">Other</button>
|
|
</div>
|
|
</div> -->
|
|
<!-- <span>
|
|
<button id="filter-btn" v-if="menuStore.isHidden" v-on:click="menuStore.isHidden = !menuStore.isHidden">More Filters</button>
|
|
<button id="filter-btn" v-if="!menuStore.isHidden" v-on:click="menuStore.isHidden = !menuStore.isHidden">Less Filters</button>
|
|
<button id="filter-btn" v-on:click.prevent="EventsStore.fetchEvents()">Clear Filters</button>
|
|
</span> -->
|
|
<div class="text-center p-0">
|
|
<button class="menu" v-on:click="menuStore.close_menu()">X</button>
|
|
</div>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<style scoped>
|
|
.menu {
|
|
color: #777 !important;
|
|
background-color: #111;
|
|
padding: .25em 1em .25em 1em;
|
|
}
|
|
|
|
.ads {
|
|
background-color: #222;
|
|
border: .1em solid #fff;
|
|
border-radius: 25px;
|
|
}
|
|
|
|
p {
|
|
padding: 1rem 1rem 1rem 0rem;
|
|
text-align: center;
|
|
}
|
|
|
|
input {
|
|
border-radius: 25px;
|
|
padding: .5rem;
|
|
color: #000;
|
|
}
|
|
|
|
button {
|
|
border-radius: 25px;
|
|
padding: .5rem;
|
|
margin: .75rem;
|
|
background-color: orange;
|
|
color: #000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#filter-btn {
|
|
border-radius: 25px;
|
|
padding: .5rem;
|
|
margin: .75rem;
|
|
background-color: cornflowerblue;
|
|
color: #000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.search {
|
|
padding: .5rem 2rem .5rem 2rem;
|
|
}
|
|
|
|
.days {
|
|
background-color: hsla(160, 100%, 37%, 1);
|
|
padding: .5rem 1rem .5rem 1rem;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.category {
|
|
/* background-color: hsla(160, 100%, 37%, 1); */
|
|
padding: .5rem 1rem .5rem 1rem;
|
|
font-size: 1.15rem;
|
|
}
|
|
</style> |