Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

166 implement tasks page #185

Merged
merged 5 commits into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/components/Cards/TaskCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use client";
//MUI
import Card from '@mui/material/Card';
import TextField from '@mui/material/TextField';
import Radio from '@mui/material/Radio';

//React
import React from 'react';

export default function TaskCard() {

return (
<>
<div style={{ justifyContent: 'center', display: 'flex' }}>
<Card sx={{ width: '50%', borderRadius: '0px' }}>
<div style={{ justifyContent: 'left', display: 'flex', alignItems:'center' }}>
<Radio size='small' />
<TextField placeholder='Title' variant='standard' sx={{ width: '100%' }} InputProps={{ disableUnderline: 'true' }} />
</div>
</Card>
</div>
</>
);
}
47 changes: 47 additions & 0 deletions src/components/Cards/TaskHeaderCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
"use client";
// MUI
import Box from '@mui/material/Box';
import AddTaskIcon from '@mui/icons-material/AddTask';
import Card from '@mui/material/Card';
import CardActions from '@mui/material/CardActions';
import Typography from '@mui/material/Typography';
import Button from '@mui/material/Button';
import MoreVertOutlined from '@mui/icons-material/MoreVertOutlined';
import IconButton from '@mui/material/IconButton';
import Tooltip from '@mui/material/Tooltip';

// React
import React from 'react';

export default function TaskHeaderCard() {
return (
<>
<div style={{ display: 'flex', justifyContent: 'center' }}>
<Card sx={{ width: '50%', borderTopRightRadius: '20px', borderTopLeftRadius: '20px' }}>
<div style={{ display: 'flex', flexDirection: 'row', width: '100%', justifyContent: 'left' }}>
<Typography variant='h4' sx={{ marginLeft: '2%' }}>
My Tasks
</Typography>

<IconButton style={{ marginLeft: 'auto', marginRight: '2%', top: '3px', position: 'relative' }}>
<Tooltip title='More options' arrow>
<MoreVertOutlined />
</Tooltip>
</IconButton>
</div>

<CardActions sx={{ width: '100%' }}>
<Button sx={{ textTransform: 'inherit', width: '100%', justifyContent: 'left', borderRadius: '20px', }}>
<AddTaskIcon color='blue' />
<Box width={'25px'} />
<Typography>
Add a task
</Typography>
</Button>
</CardActions>

</Card>
</div>
</>
);
}
Loading