From 29f2a7ef28b78adef3b6c3111e542a9defcd2b34 Mon Sep 17 00:00:00 2001 From: grochalapiotr Date: Mon, 23 Sep 2024 14:52:38 +0200 Subject: [PATCH] feat: add calendar view --- src/App.tsx | 2 ++ src/calendarView/calendarView.tsx | 13 +++++++ src/calendarView/calendarViewStyles.ts | 49 ++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 src/calendarView/calendarView.tsx create mode 100644 src/calendarView/calendarViewStyles.ts diff --git a/src/App.tsx b/src/App.tsx index a25ac0a..ec2b9fa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,5 @@ +import React from 'react'; + const App = () => { return

Univent Planner

; }; diff --git a/src/calendarView/calendarView.tsx b/src/calendarView/calendarView.tsx new file mode 100644 index 0000000..495f7d3 --- /dev/null +++ b/src/calendarView/calendarView.tsx @@ -0,0 +1,13 @@ +import { Wrapper, AddButton, Calendar } from './calendarViewStyles'; + +export const CalendarView = () => { + return ( + + {/* temporary calendar component */} + {/* calendar */} + + + Dodaj wydarzenie dla siebie + + Dodaj wydarzenie dla grupy + + ); +}; diff --git a/src/calendarView/calendarViewStyles.ts b/src/calendarView/calendarViewStyles.ts new file mode 100644 index 0000000..6e78b99 --- /dev/null +++ b/src/calendarView/calendarViewStyles.ts @@ -0,0 +1,49 @@ +import { styled } from '@mui/material'; +import { Box, Button } from '@mui/material'; + +export const Wrapper = styled(Box)` + display: flex; + flex-direction: column; + height: 100vh; + padding: 32px; + box-sizing: border-box; + position: relative; + @media (max-width: 600px) { + padding: 16px; + } +`; + +export const Calendar = styled(Box)` + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + flex: 1; + width: 100%; + padding: 16px; + border-style: solid; + border-color: black; + margin-bottom: 15px; + @media (max-width: 600px) { + padding: 8px; + margin-bottom: 10px; + } +`; + +export const AddButton = styled(Button)` + background-color: #f13d42; + color: white; + &:hover { + background-color: #f13d42; + } + margin: 10px 0 15px; + padding: 16px 0; + font-size: 18px; + border-radius: 8px; + width: 100%; + @media (max-width: 600px) { + margin: 5px 0 10px; + padding: 12px 0; + font-size: 16px; + } +`;