Skip to content

Commit

Permalink
Final Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LSoutherton committed Feb 17, 2024
1 parent fb836e4 commit b382700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/components/LogIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { logIn } from '../features/userSlice'

const LogIn = () => {

const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [email, setEmail] = useState('example@defaultaccount.com');
const [password, setPassword] = useState('tester');
const dispatch = useDispatch();

const register = () => {
Expand Down Expand Up @@ -56,12 +56,11 @@ const LogIn = () => {
<div className={screenSize ? 'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 grid grid-rows-4 h-logIn w-7/12' : 'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 grid grid-rows-4 h-fit w-3/12'}>
<img className='w-96' src='https://upload.wikimedia.org/wikipedia/commons/7/7a/Logonetflix.png' />
<div className='row-span-3 grid grid-rows-3 mt-5'>
<input value={email} onChange={e => setEmail(e.target.value)} className='h-14 text-neutral-400 text-lg m-auto w-full mb-1 rounded-tr rounded-tl bg-neutral-700 pl-2 placeholder:text-lg' type='text' placeholder='Email' />
<input value={password} onChange={e => setPassword(e.target.value)} className='h-14 rounded-br text-lg rounded-bl pl-2 placeholder:text-lg bg-neutral-700' type='password' placeholder='Password' />
<input value={email} onChange={e => setEmail(e.target.value)} defaultValue={email} className='h-14 text-neutral-400 text-lg m-auto w-full mb-1 rounded-tr rounded-tl bg-neutral-700 pl-2 placeholder:text-lg' type='text' placeholder='Email' />
<input value={password} onChange={e => setPassword(e.target.value)} defaultValue={password} className='h-14 rounded-br text-lg rounded-bl pl-2 placeholder:text-lg bg-neutral-700' type='password' placeholder='Password' />
<button onClick={(e) => logInToApp(e)} className='h-14 border-2 border-neutral-700 mt-4 text-xl text-neutral-400 rounded-md' type='submit'>Sign In</button>
<button onClick={register} className='h-14 bg-neutral-700 mt-4 text-xl text-neutral-400 rounded-md'>Register</button>
</div>

</div>
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/profilePicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React, { useState } from 'react'
function ProfilePicture({ picture, held, handleClick }) {

return (
<button onClick={handleClick} className={`${held ? 'border-2 border-yellow-400' : ''} h-fit rounded-md mt-4`}>
<img className='rounded-md' src={picture} />
<button onClick={handleClick} className='h-fit rounded-md mt-4'>
<img className={held ? 'rounded-md border-yellow-400 border-2' : 'rounded-md'} src={picture} />
</button>
)
}
Expand Down

0 comments on commit b382700

Please sign in to comment.