Skip to content

Commit

Permalink
feat: add calendar view
Browse files Browse the repository at this point in the history
  • Loading branch information
grochalapiotr committed Oct 4, 2024
1 parent 4e209df commit bafe77b
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import React from 'react';
import { CssBaseline } from '@mui/material';
import { CalendarView } from './calendarView/calendarView';
const App = () => {
return <h1>Univent Planner</h1>;
};
Expand Down
13 changes: 13 additions & 0 deletions src/calendarView/calendarView.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Wrapper, AddButton, Calendar } from './calendarViewStyles';

export const CalendarView = () => {
return (
<Wrapper>
{/* temporary calendar component */}
{/* <Calendar>calendar</Calendar> */}

<AddButton variant="contained">+ Dodaj wydarzenie dla siebie</AddButton>
<AddButton variant="contained">+ Dodaj wydarzenie dla grupy</AddButton>
</Wrapper>
);
};
49 changes: 49 additions & 0 deletions src/calendarView/calendarViewStyles.ts
Original file line number Diff line number Diff line change
@@ -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;
}
`;

0 comments on commit bafe77b

Please sign in to comment.