From 01fc00b92fbaa2dab6d4cf3e5d7ce951c028d3cc Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 7 Jul 2021 21:58:18 +0200 Subject: [PATCH] =?UTF-8?q?added=20darkmode=20classs=20to=C2=A0=C2=A2[type?= =?UTF-8?q?]=20and=20/book?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/booking/AvailableTimes.tsx | 2 +- components/booking/DatePicker.tsx | 12 ++++++-- components/booking/TimeOptions.tsx | 10 +++---- components/ui/PoweredByCalendso.tsx | 10 +++++-- pages/[user]/[type].tsx | 15 ++++++---- pages/[user]/book.tsx | 40 +++++++++++++++----------- pages/_document.tsx | 22 ++++++++++++++ public/calendso-logo-word-dark.svg | 41 +++++++++++++++++++++++++++ tailwind.config.js | 2 +- 9 files changed, 120 insertions(+), 34 deletions(-) create mode 100644 pages/_document.tsx create mode 100644 public/calendso-logo-word-dark.svg diff --git a/components/booking/AvailableTimes.tsx b/components/booking/AvailableTimes.tsx index bfa4a0cf..b939ddef 100644 --- a/components/booking/AvailableTimes.tsx +++ b/components/booking/AvailableTimes.tsx @@ -10,7 +10,7 @@ const AvailableTimes = ({ date, eventLength, eventTypeId, workingHours, timeForm return (
- {date.format("dddd DD MMMM YYYY")} + {date.format("dddd DD MMMM YYYY")}
{slots.length > 0 && slots.map((slot) => ( diff --git a/components/booking/DatePicker.tsx b/components/booking/DatePicker.tsx index cfcc6a79..62907e16 100644 --- a/components/booking/DatePicker.tsx +++ b/components/booking/DatePicker.tsx @@ -93,7 +93,7 @@ const DatePicker = ({ (selectedDate && selectedDate.isSame(inviteeDate.date(day), "day") ? " bg-blue-600 text-white-important" : !isDisabled(day) - ? " bg-blue-50" + ? " bg-blue-50 dark:bg-gray-900 dark:bg-opacity-30" : "") }> {day} @@ -103,9 +103,15 @@ const DatePicker = ({ }, [selectedMonth, inviteeTimeZone, selectedDate]); return selectedMonth ? ( -
+
- {dayjs().month(selectedMonth).format("MMMM YYYY")} + + {dayjs().month(selectedMonth).format("MMMM YYYY")} +