Skip to content

Commit

Permalink
Update search input styling in Home.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
SideeID committed Apr 9, 2024
1 parent d637599 commit 4ea4d21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function Home() {
<Navbar />
<div className='grid grid-cols-1'>
<div className='w-[90%] mt-[50px] mx-auto relative'>
<input type="text" id="search" onChange={e => setSearchTerm(e.target.value)} className="block w-full p-2 pl-8 text-sm border rounded-lg bg-gray-700 border-gray-600 placeholder-white text-white focus:ring-blue-500 focus:border-blue-500" placeholder="Search..." />
<svg className="w-4 h-4 text-white absolute left-3 top-1/2 transform -translate-y-1/2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<input type="text" id="search" onChange={e => setSearchTerm(e.target.value)} className="block w-full p-2 pl-8 text-sm border rounded-lg bg-gray-200 border-gray-300 placeholder-gray-900 text-gray-900 focus:ring-blue-500 focus:border-blue-500" placeholder="Search..." />
<svg className="w-4 h-4 text-gray-900 absolute left-3 top-1/2 transform -translate-y-1/2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" />
</svg>
</div>
Expand All @@ -35,7 +35,7 @@ function Home() {
type={item.tempatTurun}
total={item.jumlahAyat}
/>
)) : <p className="text-white text-center">No results found.</p>}
)) : <p className="text-gray-900 text-center">No results found.</p>}
</div>
</div>
<Footer />
Expand Down

0 comments on commit 4ea4d21

Please sign in to comment.