Skip to content

Commit

Permalink
Merge pull request #153 from hack4impact-calpoly/141CalendarStyling
Browse files Browse the repository at this point in the history
task #141 - calendar styling
  • Loading branch information
Ritvik1121 authored Jun 1, 2023
2 parents 542090d + 9a25c46 commit 786dde7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"web-vitals": "^1.1.0"
},
"scripts": {
"dev": "nodemon index.js",
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand Down
16 changes: 10 additions & 6 deletions src/components/pages/schedule/calendar/newCalendar.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
:root {
--fc-event-bg-color: #5DA6B1;
--fc-event-border-color: #8FCBD4;
--fc-event-bg-color: #43a4b3;
--fc-event-border-color: #80979a;
--fc-event-text-color: #fff;
--border-color: #4C4640;
}

#shift-calendar-box {
display: flex;
flex-direction: column;
padding-left:100px;
/* padding-left: 100px; */
}

#extended-event-info {
display: flex;
flex-direction: column;
align-content: space-between;
align-content: center;
justify-content: center;
flex-wrap: wrap;
}
Expand All @@ -30,6 +30,7 @@
padding: 1vh;
font-size: large;
color: var(--fc-event-bg-color);
align-items: center;
}

#extended-info-container {
Expand All @@ -46,9 +47,9 @@

#shift-calendar-box {
display: flex;
flex-direction: row;
flex-direction: column;
min-height: 100%;
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
font-family: sans-serif;
font-size: 14px;
margin: 1em 1em 1em 1em ;
}
Expand All @@ -59,13 +60,16 @@

#shift-calendar {
width: 95%;
font-family: sans-serif;
padding: 3em 2em 3em 3em;
align-self: center;
}

.fc { /* the calendar root */
max-width: 1100px;
margin: 0 auto;
font-size: 12px;
font-family: sans-serif;
}

h2 {
Expand Down
4 changes: 4 additions & 0 deletions src/components/pages/schedule/calendar/newCalendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ export default function NewCalendar() {

const expandedCalendar = (
<FullCalendar
id="expanded-shift-calendar"
className=".fc-agendaWeek-view"
plugins={[timeGridPlugin, interactionPlugin]}
headerToolbar={{
left: "prev,next today",
Expand All @@ -184,6 +186,7 @@ export default function NewCalendar() {
events={eventData}
eventMaxStack={2}
displayEventEnd
allDaySlot={false}
select={(info) => handleSelection(info)}
eventClick={(info) => handleClick(info)}
// eventMouseEnter={(info) => handleMouseEnter(info)}
Expand All @@ -207,6 +210,7 @@ export default function NewCalendar() {
events={eventData}
eventMaxStack={3}
displayEventEnd
allDaySlot={false}
select={(info) => handleSelection(info)}
eventClick={(info) => handleClick(info)}
/>
Expand Down

0 comments on commit 786dde7

Please sign in to comment.