From 35b0b528cd2add2dacd2cc510a3052213654d5ee Mon Sep 17 00:00:00 2001 From: mbalsdon Date: Sat, 26 Mar 2022 17:33:59 -0700 Subject: [PATCH 1/2] center calendar on page, change event color, change dropdown style --- src/components/calendar/CalendarPage.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/calendar/CalendarPage.tsx b/src/components/calendar/CalendarPage.tsx index 4e78494..0929819 100644 --- a/src/components/calendar/CalendarPage.tsx +++ b/src/components/calendar/CalendarPage.tsx @@ -3,6 +3,7 @@ import moment from "moment"; import "react-big-calendar/lib/css/react-big-calendar.css"; import { + Box, Divider, FormControl, InputLabel, @@ -107,10 +108,17 @@ const CalendarPage: React.FC = () => { }; return ( - <> + + - + User @@ -142,14 +150,20 @@ const CalendarPage: React.FC = () => { { + const backgroundColor = "IndianRed"; + const borderColor = "White"; + return { style: { backgroundColor, borderColor } }; + }} /> - + + ); }; From 0b4db872336311e8b89a06f90552322d4db88d49 Mon Sep 17 00:00:00 2001 From: mbalsdon Date: Sat, 26 Mar 2022 17:34:22 -0700 Subject: [PATCH 2/2] change calendar font --- src/styles.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles.css b/src/styles.css index 3fc5a1e..449fd03 100644 --- a/src/styles.css +++ b/src/styles.css @@ -10,3 +10,7 @@ html, body { overflow: hidden; } + +.rbc-calendar { + font-family: "Roboto","Helvetica","Arial",sans-serif; +}