Skip to content

Commit 77a083c

Browse files
committed
fix hover states and add new theme color
1 parent d45900d commit 77a083c

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

src/api/useAuth.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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 ${styles}`}
15+
className={`m-0 bg-accent text-black font-bold hover:text-black hover:bg-third ${styles}`}
1616
>
1717
Sign In
1818
</button>
@@ -25,7 +25,7 @@ export const SignOutButton = () => (
2525
<button
2626
type="button"
2727
onClick={() => auth.signOut() && window.location.reload()}
28-
className="m-0 bg-accent text-black hover:text-white"
28+
className="m-0 bg-accent text-black font-bold hover:text-black hover:bg-third "
2929
>
3030
Sign Out
3131
</button>

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
button {
3131
@apply btn
32-
text-2xl font-sans font-bold btn-secondary m-2 text-white;
32+
text-2xl font-sans font-bold btn-secondary m-2 text-white border-none hover:bg-neutral;
3333
}
3434
/*temporary for the 'Hello from the [/list] Page' titles */
3535
p {

src/views/Home.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ 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 font-medium ">
138+
<label htmlFor="listName" className="text-white font-medium">
139139
Create a new list:
140140
</label>
141141
<div className="flex flex-col">
@@ -152,11 +152,11 @@ export function Home({ data, setListPath, setAllLists }) {
152152
type="button"
153153
onClick={startListening}
154154
aria-label="Use microphone to add a new list"
155-
className="bg-accent text-black hover:text-white"
155+
className="bg-accent text-black hover:bg-third"
156156
>
157157
{isListening ? 'Listening...' : <KeyboardVoiceIcon />}
158158
</button>
159-
<button className="bg-accent text-black hover:text-white">
159+
<button className="bg-accent text-black hover:bg-third">
160160
Submit
161161
</button>
162162
</form>

src/views/ManageList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function ManageList({ list }) {
123123
<button
124124
type="button"
125125
onClick={handleVoiceTransform}
126-
className="bg-accent text-black hover:text-white"
126+
className="bg-accent text-black hover:text-black hover:bg-third"
127127
>
128128
{isListening ? (
129129
'Listening...'
@@ -155,7 +155,7 @@ export function ManageList({ list }) {
155155
</select>
156156
<button
157157
type="submit"
158-
className="bg-accent text-black hover:text-white"
158+
className="bg-accent text-black hover:text-black hover:bg-third"
159159
>
160160
Submit
161161
</button>

src/views/ShareList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function ShareList({ userId }) {
4444

4545
<button
4646
type="submit"
47-
className="bg-accent text-black hover:text-white"
47+
className="bg-accent text-black hover:text-neutral hover:bg-third"
4848
>
4949
Share List
5050
</button>

tailwind.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default {
99
archivo: ['Archivo Narrow', 'sans-serif'],
1010
bowlby: ['BowlbyOne Regular', 'Archivo Narrow', 'sans-serif'],
1111
},
12+
colors: {
13+
third: '#bdc100', // This adds it to the Tailwind color palette as wel
14+
},
1215
},
1316
},
1417
plugins: [require('daisyui')],
@@ -21,6 +24,7 @@ export default {
2124

2225
secondary: '#676D16',
2326
// accent:"#bec000",
27+
third: '#bdc100',
2428
},
2529
},
2630
,

0 commit comments

Comments
 (0)