Skip to content

Commit 785e8bf

Browse files
committed
styles to shareList page, more bolding, adjust default home
1 parent f3f35d5 commit 785e8bf

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

src/api/useAuth.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { addUserToDatabase } from './firebase.js';
88
* the button redirects the user to the Google OAuth sign-in page.
99
* After the user signs in, they are redirected back to the app.
1010
*/
11-
export const SignInButton = () => (
11+
export const SignInButton = ({ styles }) => (
1212
<button
1313
type="button"
1414
onClick={() => signInWithPopup(auth, new GoogleAuthProvider())}
15-
className="m-0 bg-accent text-black font-bold hover:text-white"
15+
className={`m-0 bg-accent text-black font-bold hover:text-white ${styles}`}
1616
>
1717
Sign In
1818
</button>

src/views/Home.jsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ export function Home({ data, setListPath, setAllLists }) {
135135
onSubmit={handleSubmit}
136136
className="flex flex-col sm:flex-row items-center space-y-2 sm:space-y-0 sm:space-x-4 mt-4 justify-center"
137137
>
138-
<label htmlFor="listName" className="text-white">
138+
<label htmlFor="listName" className="text-white font-medium ">
139139
Create a new list:
140140
</label>
141-
<div className="flex flex-col ">
141+
<div className="flex flex-col">
142142
<input
143143
type="text"
144144
id="listName"
@@ -162,9 +162,12 @@ export function Home({ data, setListPath, setAllLists }) {
162162
</form>
163163
</div>
164164
) : (
165-
<div className="flex flex-col h-[80vh] my-8 p-8 rounded-3xl shadow-xl overflow-hidden mx-auto bg-neutral place-content-center items-center">
166-
<h1 className="text-center my-8 text-accent">Welcome to SnapShop!</h1>
167-
<SignInButton />
165+
<div className="flex flex-col h-[80vh] my-8 p-8 rounded-3xl overflow-hidden mx-auto place-content-center items-center ">
166+
<h1 className="text-center my-8 text-neutral text-6xl">
167+
{' '}
168+
Welcome to SnapShop!
169+
</h1>
170+
<SignInButton styles={'bg-neutral text-white btn-lg text-2xl'} />
168171
</div>
169172
)}
170173
</>

src/views/List.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ export function List({ data, userId, path }) {
8080
<BasicModal dataEmpty={dataEmpty} message={message} />
8181
)}
8282

83-
<button onClick={addItemNavigate} aria-label="Add a new item">
83+
<button
84+
onClick={addItemNavigate}
85+
aria-label="Add a new item"
86+
className="ml-0"
87+
>
8488
{' '}
8589
Add item <AddBoxRoundedIcon fontSize="large" />
8690
</button>
@@ -96,6 +100,7 @@ export function List({ data, userId, path }) {
96100
value={filterVal}
97101
onChange={handleChange}
98102
placeholder="e.g. Apple"
103+
className="placeholder-zinc-600"
99104
/>
100105
<SearchRoundedIcon />
101106
<button

src/views/ManageList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function ManageList({ list }) {
116116
id="name-of-item"
117117
value={formData.name}
118118
onChange={handleChange}
119-
className="placeholder-zinc-700"
119+
className="placeholder-zinc-600"
120120
required
121121
></input>
122122

@@ -139,7 +139,7 @@ export function ManageList({ list }) {
139139
value={formData.frequency}
140140
name="frequency"
141141
onChange={handleChange}
142-
className="placeholder-zinc-700"
142+
className="placeholder-zinc-600"
143143
required
144144
>
145145
<option value="" disabled>

src/views/ShareList.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function ShareList({ userId }) {
2626

2727
return (
2828
<>
29-
<div className="manage-list-form">
29+
<div className="manage-list-form flex flex-col h-[10vh] my-8 p-8 rounded-3xl shadow-xl overflow-hidden mx-auto bg-neutral text-white font-medium">
3030
<form onSubmit={handleEmailSubmit}>
3131
<label htmlFor="invite-email">Invite user by email:</label>
3232
<input
@@ -37,6 +37,7 @@ export function ShareList({ userId }) {
3737
value={email}
3838
onChange={handleEmailChange}
3939
required
40+
className="text-black placeholder-zinc-600"
4041
></input>
4142

4243
<button type="submit">Share List</button>

0 commit comments

Comments
 (0)