Skip to content

Commit f3f35d5

Browse files
committed
add more legible colors and center items, applying styling to managelist
1 parent cdfb3f2 commit f3f35d5

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/views/Home.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ export function Home({ data, setListPath, setAllLists }) {
133133
</ul>
134134
<form
135135
onSubmit={handleSubmit}
136-
className="flex flex-col sm:flex-row items-center space-y-2 sm:space-y-0 sm:space-x-4 mt-4 "
136+
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
>
138138
<label htmlFor="listName" className="text-white">
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"

src/views/List.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function List({ data, userId, path }) {
8585
Add item <AddBoxRoundedIcon fontSize="large" />
8686
</button>
8787

88-
<form onSubmit={clearInput} className="py-4">
88+
<form onSubmit={clearInput} className="py-4 flex items-center">
8989
<label htmlFor="item-name" aria-label="Search for an item">
9090
Find Item{' '}
9191
</label>

src/views/ManageList.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,19 @@ export function ManageList({ list }) {
104104

105105
return (
106106
<>
107-
<div className="manage-list-form">
107+
<div className="manage-list-form flex flex-col h-[20vh] my-8 p-8 rounded-3xl shadow-xl overflow-hidden mx-auto bg-neutral ">
108108
<form onSubmit={handleSubmit}>
109-
<label htmlFor="name">Name of item:</label>
109+
<label htmlFor="name" className="text-white">
110+
Name of item:
111+
</label>
110112
<input
111113
type="text"
112114
placeholder="Type here"
113115
name="name"
114116
id="name-of-item"
115117
value={formData.name}
116118
onChange={handleChange}
119+
className="placeholder-zinc-700"
117120
required
118121
></input>
119122

@@ -127,7 +130,7 @@ export function ManageList({ list }) {
127130

128131
<br></br>
129132

130-
<label htmlFor="frequency">
133+
<label htmlFor="frequency" className="text-white">
131134
When will you need this item again?:
132135
</label>
133136

@@ -136,6 +139,7 @@ export function ManageList({ list }) {
136139
value={formData.frequency}
137140
name="frequency"
138141
onChange={handleChange}
142+
className="placeholder-zinc-700"
139143
required
140144
>
141145
<option value="" disabled>

0 commit comments

Comments
 (0)