style: improve search bar and cards design
This commit is contained in:
parent
d8c9514a7d
commit
905547ec6f
2 changed files with 12 additions and 5 deletions
|
|
@ -4,10 +4,14 @@ import { Icon } from "@iconify/react";
|
||||||
|
|
||||||
export default function SearchBar() {
|
export default function SearchBar() {
|
||||||
return (
|
return (
|
||||||
<div className="max-w-md w-full flex rounded-xl focus-within:ring-[3px] ring-orange-200/75 transition shadow-md">
|
<div className="max-w-md w-full flex rounded-xl focus-within:ring-[3px] ring-orange-400/35 transition shadow-md">
|
||||||
<input type="text" placeholder="Search..." className="bg-orange-300 border-2 border-orange-400 py-2 px-3 rounded-l-xl outline-0 w-full" />
|
<input
|
||||||
<button className="bg-orange-400 p-2 w-12 rounded-r-xl flex justify-center items-center">
|
type="text"
|
||||||
<Icon icon="ic:baseline-search" fontSize={24} />
|
placeholder="Search..."
|
||||||
|
className="bg-orange-200 border-2 border-orange-400 py-2 px-3 rounded-l-xl outline-0 w-full placeholder:text-black/40"
|
||||||
|
/>
|
||||||
|
<button className="bg-orange-400 p-2 w-12 rounded-r-xl flex justify-center items-center cursor-pointer text-2xl transition-all hover:text-[1.75rem] active:text-2xl">
|
||||||
|
<Icon icon="ic:baseline-search" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@ export default function Page() {
|
||||||
<div className="max-w-7xl grid grid-cols-4 gap-4 max-lg:grid-cols-3 max-sm:grid-cols-2 max-[25rem]:grid-cols-1">
|
<div className="max-w-7xl grid grid-cols-4 gap-4 max-lg:grid-cols-3 max-sm:grid-cols-2 max-[25rem]:grid-cols-1">
|
||||||
{/* testing purposes only */}
|
{/* testing purposes only */}
|
||||||
{[...Array(12)].map((_, index) => (
|
{[...Array(12)].map((_, index) => (
|
||||||
<div key={index} className="bg-zinc-50 rounded-3xl border-2 border-zinc-300 shadow-lg p-3 transition hover:scale-105">
|
<div
|
||||||
|
key={index}
|
||||||
|
className="bg-zinc-50 rounded-3xl border-2 border-zinc-300 shadow-lg p-3 transition hover:scale-105 hover:bg-cyan-100 hover:border-cyan-600"
|
||||||
|
>
|
||||||
<img src="https://placehold.co/600x400" alt="mii" className="rounded-xl" />
|
<img src="https://placehold.co/600x400" alt="mii" className="rounded-xl" />
|
||||||
<div className="p-4">
|
<div className="p-4">
|
||||||
<h3 className="font-bold text-2xl">Frieren</h3>
|
<h3 className="font-bold text-2xl">Frieren</h3>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue