Skip to content

Commit

Permalink
login and password
Browse files Browse the repository at this point in the history
  • Loading branch information
carlygoogel committed Feb 4, 2024
1 parent 62d65ea commit 2c81177
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 9 deletions.
10 changes: 9 additions & 1 deletion client/src/Authentication/EmailResetPasswordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { emailRegex, InputErrorMessage } from '../util/inputvalidation';
import PrimaryButton from '../components/buttons/PrimaryButton';
import ScreenGrid from '../components/ScreenGrid';
import FormCol from '../components/form/FormCol';
import westPark from '../assets/westPark.png';


/**
* A page allowing users to input their email so a reset password link can be
Expand Down Expand Up @@ -80,12 +82,18 @@ function EmailResetPasswordPage() {
}
};

const title = "Let's get you back";
const title = "Change Password";
return (
<ScreenGrid>
<FormGrid>
<FormCol>
<Grid item container justifyContent="center">
<Grid item container justifyContent="center">
<img width="70%" src={westPark} alt="West Park Logo" />
</Grid>
<Typography variant="h5" textAlign="center">
Donor Management System
</Typography>
<Typography variant="h2">{title}</Typography>
</Grid>
<Grid item width="1">
Expand Down
16 changes: 9 additions & 7 deletions client/src/Authentication/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { loginUser } from './api';
import AlertDialog from '../components/AlertDialog';
import PrimaryButton from '../components/buttons/PrimaryButton';
import ScreenGrid from '../components/ScreenGrid';
import westPark from '../assets/westPark.png';

/**
* A page allowing users to input their email and password to login. The default
Expand Down Expand Up @@ -133,8 +134,14 @@ function LoginPage() {
<FormGrid>
<FormCol>
<Grid item container justifyContent="center">
<Grid item container justifyContent="center">
<img width="70%" src={westPark} alt="West Park Logo" />
</Grid>
<Typography variant="h5" textAlign="center">
Donor Management System
</Typography>
<Typography variant="h2" textAlign="center">
Welcome to Boilerplate
Login
</Typography>
</Grid>
<Grid item width="1">
Expand Down Expand Up @@ -172,16 +179,11 @@ function LoginPage() {
</PrimaryButton>
</Grid>
<FormRow>
<Grid item>
<Grid item container justifyContent="center">
<Link component={RouterLink} to="/email-reset">
Forgot password?
</Link>
</Grid>
<Grid item>
<Link component={RouterLink} to="/register">
Sign up
</Link>
</Grid>
</FormRow>
</FormCol>
</FormGrid>
Expand Down
7 changes: 7 additions & 0 deletions client/src/Authentication/ResetPasswordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import AlertDialog from '../components/AlertDialog';
import PrimaryButton from '../components/buttons/PrimaryButton';
import ScreenGrid from '../components/ScreenGrid';
import FormCol from '../components/form/FormCol';
import westPark from '../assets/westPark.png';

/**
* A page that allows users to reset their password by inputting a new password
Expand Down Expand Up @@ -114,6 +115,12 @@ function ResetPasswordPage() {
<FormGrid>
<FormCol>
<Grid item container justifyContent="center">
<Grid item container justifyContent="center">
<img width="70%" src={westPark} alt="West Park Logo" />
</Grid>
<Typography variant="h5" textAlign="center">
Donor Management System
</Typography>
<Typography variant="h2">Excited to have you back!</Typography>
</Grid>
<Grid item width="1">
Expand Down
1 change: 1 addition & 0 deletions client/src/assets/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const COLORS = {
neutral: '#8c8c8c', // Gray
lightGray: '#ebeff2', // Gray-subsection
actionBlue: '#155da1', // Action button
green: '#6BAD6A', // Green

// Other colors:
};
Expand Down
13 changes: 12 additions & 1 deletion client/src/assets/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { createTheme } from '@mui/material/styles';
import COLORS from './colors';
import 'typeface-hk-grotesk';
import { color, fontFamily, fontSize, fontStyle } from '@mui/system';

// https://github.com/hack4impact/chapter-website-template/blob/main/public/style.css
const theme = createTheme({
Expand Down Expand Up @@ -39,6 +40,7 @@ const theme = createTheme({
'Droid Sans',
'Helvetica Neue',
'sans-serif',
'Fredoka One',
].join(','),
},
components: {
Expand All @@ -52,8 +54,11 @@ const theme = createTheme({
fontWeight: 'bold !important',
},
h2: {
fontSize: '38px !important',
fontSize: '50px !important',
fontFamily: 'Fredoka One',
fontWeight: 'bold !important',
marginBottom: '32px !important',
marginTop: '40px !important',
},
h3: {
fontWeight: 'bold !important',
Expand All @@ -62,6 +67,12 @@ const theme = createTheme({
h4: {
fontWeight: 'bold !important',
},
h5: {
fontFamily: 'Hind Guntur',
fontWeight: '400 !important',
fontSize: '25px',
color: COLORS.green
},
},
},
},
Expand Down
Binary file added client/src/assets/westPark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2c81177

Please sign in to comment.