redesign event blueprint

This commit is contained in:
isUnknown 2024-07-24 15:56:28 +02:00
parent 1614f8682e
commit 801fe38447
6 changed files with 84 additions and 11 deletions

View file

@ -11,6 +11,9 @@
.calendar-strip__selector {
flex-shrink: 0;
display: flex;
justify-content: space-between;
width: 10rem;
}
.calendar-strip__days {

View file

@ -57,3 +57,8 @@ button {
all: unset;
cursor: pointer;
}
button[disabled] {
cursor: not-allowed;
opacity: 0.3;
}

View file

@ -1,5 +1,6 @@
dayjs.locale("fr");
function getDaysInMonth(month, year) {
async function getDaysInMonth(month, year) {
const daysInMonth = dayjs(new Date(year, month, 0)).daysInMonth();
const days = [];
@ -10,3 +11,17 @@ function getDaysInMonth(month, year) {
return days;
}
function getEvents(monthNumb) {
const myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer " + mapadoToken);
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow",
};
const url =
"https://ticketing.mapado.net/v1/event_dates?itemsPerPage=31&contract=1941&after=2024-10-01&before=2024-11-01&order=asc&fields=startDate,bookableStock,ticketing{@id,title,firstFutureEventDateStartDate,isOnSale,minisite{domain,online,slug,name},venue{@id,name,seatingName,address,zipCode,city,countryCode,timezone}}";
}