Skip to content

Commit

Permalink
testing calendar pages
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Feb 22, 2024
1 parent e919b17 commit 1bb66f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pages/availability.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ if (!url.includes("http")) {
const {dates} = await fetch(`${url}/calendar`)
.then((res) => {
console.log({dates})
return res.json();
})
.catch((err) => {
console.log({ fetch: "calendar", err });
return [];
});
console.log({dates})
---

<style>
Expand Down Expand Up @@ -65,7 +68,7 @@ const {dates} = await fetch(`${url}/calendar`)
}
</style>

<Layout content={content}>
<Layout content={content} class="calendar_page">
<div class="calendar">
<h1>Availability</h1>
<CalendarLayout {dates} anonymous={true} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/calendar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const {dates} = await fetch(`${url}/calendar`)
}
</style>

<Layout content={content}>
<Layout content={content} class="calendar_page">
<div class="calendar">
<h1>Calendar</h1>
<CalendarLayout {dates} />
Expand Down
4 changes: 4 additions & 0 deletions src/styles/global/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ body {
top: 0;
width: 100vw;
margin: 0;

&.calendar_page {
min-height: 100vh;
}
}

.sr-only {
Expand Down

0 comments on commit 1bb66f3

Please sign in to comment.