Skip to content

Commit

Permalink
Merge pull request #44 from COS301-SE-2024/fix/organisation
Browse files Browse the repository at this point in the history
Finished implementing the light/dark mode theme's and made adjustments to the organisation's page
  • Loading branch information
daniel-geerdink authored Jun 22, 2024
2 parents 3bb01d3 + 1731cd3 commit 3432e4a
Show file tree
Hide file tree
Showing 12 changed files with 327 additions and 201 deletions.
51 changes: 29 additions & 22 deletions CoVAR-app/src/adminTools/components/userList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,46 +297,53 @@ const UserList = () => {
sx={{
height: 600,
flex: '1 auto',
'& .MuiDataGrid-root': {
bgcolor: '#52796F',
color: '#CAD2C5',
borderColor: '#52796F',
},
'& .MuiDataGrid-columnHeader': {
backgroundColor: '#2F3E46',
color: '#CAD2C5',
},
fontWeight: 500,
borderColor: 'text.primary',
'& .MuiDataGrid-columnHeaderTitle': {
color: '#CAD2C5',
color: 'text.primary',
},
'& .MuiDataGrid-columnSeparator': {
color: '#52796F',
color: 'text.primary',
},
'& .MuiDataGrid-cell': {
color: '#CAD2C5',
borderColor: '#52796F',
color: 'text.primary',
borderColor: 'text.primary',
},
'& .MuiDataGrid-footerContainer': {
backgroundColor: '#2F3E46',
color: '#CAD2C5',
backgroundColor: 'background.paper',
color: 'text.primary',
},
'& .MuiTablePagination-root': {
color: '#CAD2C5',
color: 'text.primary',
},
'& .MuiSvgIcon-root': {
color: '#CAD2C5',
color: 'text.primary',
},
'& .MuiDataGrid-toolbarContainer button': {
color: '#CAD2C5',
color: 'text.primary',
},
'& .MuiDataGrid-topContainer, & .MuiDataGrid-container--top': {
backgroundColor: '#52796F',
backgroundColor: 'primary.main',
},
'& .MuiDataGrid-overlay': {
backgroundColor: '#1F282E',
color: '#CAD2C5',
backgroundColor: 'background.default',
color: 'text.primary',
},
'& .MuiDataGrid-filler': {
backgroundColor: 'background.paper',
color: 'text.primary',
},
'& .MuiDataGrid-scrollbarFiller': {
backgroundColor: 'background.paper',
},
'& .MuiDataGrid-scrollbarFiller--header': {
backgroundColor: 'background.paper',
},
'& .MuiDataGrid-columnHeader': {
backgroundColor: 'background.paper',
color: 'text.primary',
},
}}
}}
/>
<Menu
anchorEl={anchorEl}
Expand Down
6 changes: 2 additions & 4 deletions CoVAR-app/src/evaluate/evaluate.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from 'react';
import { Box, Button, Typography, Paper } from '@mui/material';
import { mainContentStyles } from '../styles/sidebarStyle';
// import { dashboardContainerStyles } from '../styles/dashboardStyle';
import { uploadBoxStyles, uploadButtonStyles } from '../styles/evaluateStyle';

const Evaluate: React.FC = () => {
Expand All @@ -15,15 +14,14 @@ const Evaluate: React.FC = () => {
};

const handleSubmitFile = () => {
// Handle file submit
console.log('File submitted:', selectedFile);

};

return (
<Box sx={mainContentStyles}>
<Paper sx={uploadBoxStyles}>
<Typography variant="h6" sx={{ color: '#CAD2C5', marginBottom: 2 }}>
<Typography variant="h6">
Upload a Vulnerability Assessment
</Typography>
<input
Expand All @@ -40,7 +38,7 @@ const Evaluate: React.FC = () => {
</label>
{selectedFile && (
<>
<Typography sx={{ marginTop: 1, color: '#CAD2C5' }} variant="body2">
<Typography variant="body2">
Selected File: {selectedFile.name}
</Typography>
<Button
Expand Down
4 changes: 2 additions & 2 deletions CoVAR-app/src/login/loginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ const Login: React.FC<LoginProps> = ({ toggleForm }) => {
<CssBaseline />
<Container maxWidth="xl" sx={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh' }}>
<Box sx={{ textAlign: 'center', marginRight: 'auto', marginLeft: 'auto' }}>
<Typography variant="h1" color="textPrimary" gutterBottom>
<Typography variant="h1" color="textPrimary" fontWeight={550} gutterBottom>
CoVAR
</Typography>
<LockOutlinedIcon sx={{ fontSize: 150, color: theme.palette.primary.main }} />
</Box>
<Card sx={{ backgroundColor: theme.palette.background.paper, padding: 4, borderRadius: 1, borderStyle: 'solid', borderWidth: 1, borderColor: theme.palette.divider }}>
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
<Typography variant="h4" component="h2" gutterBottom>
<Typography variant="h4" component="h2" fontWeight={550} gutterBottom>
Sign In
</Typography>
<Box component="form" sx={{ width: '100%', mt: 1 }} onSubmit={onSubmit}>
Expand Down
6 changes: 3 additions & 3 deletions CoVAR-app/src/login/signupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ const Signup: React.FC<SignupProps> = ({ toggleForm }) => {
<CssBaseline />
<Container maxWidth="xl" sx={{ width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh' }}>
<Box sx={{ textAlign: 'center', margin: '20px auto', width: '100%' }}>
<Typography variant="h1" color="textPrimary" gutterBottom>
<Typography variant="h1" color="textPrimary" fontWeight={550} gutterBottom >
CoVAR
</Typography>
<LockOutlinedIcon sx={{ fontSize: 150, color: theme.palette.primary.main }} />
<LockOutlinedIcon sx={{ fontSize: 150, color: theme.palette.secondary.main }} />
</Box>
<Card sx={{ backgroundColor: theme.palette.background.paper, padding: 4, borderRadius: 1, borderStyle: 'solid', borderWidth: 1, borderColor: theme.palette.divider }}>
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
<Typography variant="h4" component="h2" gutterBottom>
<Typography variant="h4" component="h2" fontWeight={550} gutterBottom>
Sign Up
</Typography>
<Box component="form" onSubmit={handleSubmit} sx={{ width: '100%', mt: 1 }}>
Expand Down
Loading

0 comments on commit 3432e4a

Please sign in to comment.