+
+ {date.format("dddd DD MMMM YYYY")}
{slots.length > 0 &&
slots.map((slot) => (
@@ -39,7 +42,7 @@ const AvailableTimes = ({
`/${user.username}/book?date=${slot.utc().format()}&type=${eventTypeId}` +
(rescheduleUid ? "&rescheduleUid=" + rescheduleUid : "")
}>
-
+
{slot.format(timeFormat)}
diff --git a/components/booking/DatePicker.tsx b/components/booking/DatePicker.tsx
index 3dddd1e5..e977ea04 100644
--- a/components/booking/DatePicker.tsx
+++ b/components/booking/DatePicker.tsx
@@ -1,4 +1,4 @@
-import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/solid";
+import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/outline";
import { useEffect, useState } from "react";
import dayjs, { Dayjs } from "dayjs";
import utc from "dayjs/plugin/utc";
@@ -24,6 +24,7 @@ const DatePicker = ({
periodDays,
periodCountCalendarDays,
minimumBookingNotice,
+ setHeight,
}) => {
const [calendar, setCalendar] = useState([]);
const [selectedMonth, setSelectedMonth] = useState
();
@@ -147,12 +148,14 @@ const DatePicker = ({
onClick={() => setSelectedDate(inviteeDate.date(day))}
disabled={isDisabled(day)}
className={
- "text-center w-10 h-10 rounded-full mx-auto" +
- (isDisabled(day) ? " text-gray-400 font-light" : " text-blue-600 font-medium") +
+ "w-36 mx-auto h-28 mx-auto p-3 text-left flex self-start" +
+ (isDisabled(day)
+ ? " text-neutral-400 font-light"
+ : " text-neutral-900 dark:text-neutral-200 font-medium") +
(selectedDate && selectedDate.isSame(inviteeDate.date(day), "day")
- ? " bg-blue-600 text-white-important"
+ ? " bg-neutral-100 dark:bg-neutral-700 border border-neutral-900 dark:border-neutral-600 dark:text-white"
: !isDisabled(day)
- ? " bg-blue-50 dark:bg-gray-900 dark:bg-opacity-30"
+ ? " bg-neutral-100 dark:bg-neutral-700 dark:bg-opacity-30"
: "")
}>
{day}
@@ -162,35 +165,44 @@ const DatePicker = ({
}, [selectedMonth, inviteeTimeZone, selectedDate]);
return selectedMonth ? (
-
-
-
- {dayjs().month(selectedMonth).format("MMMM YYYY")}
-
+
+
+
+
+ {dayjs().month(selectedMonth).format("MMMM")}
+
+
+ {dayjs().month(selectedMonth).format("YYYY")}
+
-
-
+
{
+ if (!el) return;
+ setHeight(el.getBoundingClientRect().height);
+ }}>
{["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
.sort((a, b) => (weekStart.startsWith(a) ? -1 : weekStart.startsWith(b) ? 1 : 0))
.map((weekDay) => (
-
+
{weekDay}
))}
diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx
index 1599791d..86136631 100644
--- a/pages/[user]/[type].tsx
+++ b/pages/[user]/[type].tsx
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { GetServerSideProps, GetServerSidePropsContext } from "next";
import Head from "next/head";
-import { ChevronDownIcon, ClockIcon, GlobeIcon } from "@heroicons/react/solid";
+import { ChevronDownIcon, ClockIcon, GlobeIcon, InformationCircleIcon } from "@heroicons/react/solid";
import { useRouter } from "next/router";
import dayjs, { Dayjs } from "dayjs";
import * as Collapsible from "@radix-ui/react-collapsible";
@@ -30,6 +30,8 @@ export default function Type(props): Type {
const [timeFormat, setTimeFormat] = useState("h:mma");
const telemetry = useTelemetry();
+ const [calHeight, setCalHeight] = useState(0);
+
useEffect(() => {
handleToggle24hClock(localStorage.getItem("timeOption.is24hClock") === "true");
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()));
@@ -79,7 +81,7 @@ export default function Type(props): Type {
return (
isReady && (
-
+
{rescheduleUid && "Reschedule"} {props.eventType.title} | {props.user.name || props.user.username}{" "}
@@ -126,73 +128,72 @@ export default function Type(props): Type {
}
/>
-
-
-
-
-
-
{props.user.name}
-
- {props.eventType.title}
-
-
-
- {props.eventType.length} minutes
-
-
-
-
-
- {timeZone()}
-
-
-
-
-
-
-
-
{props.eventType.description}
-
-
- {selectedDate && (
-
+
+
+
+ {props.user.name}
+
+
+
+ {props.eventType.title}
+
+
+
+ {props.eventType.length} minutes
+
+
+
+
+ {timeZone()}
+
+
+
+
- )}
-
+
+
- {!props.user.hideBranding &&
}
+
+
+
+
+ {selectedDate && (
+
+ )}
+
+ {!props.user.hideBranding && (
+
+ )}
)
diff --git a/pages/_document.tsx b/pages/_document.tsx
index db2625ed..6ec9ef95 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -18,7 +18,7 @@ class MyDocument extends Document {
-
+