fix: improve Button component and replace HTML
This commit is contained in:
@@ -51,6 +51,7 @@ export const Search = () => {
|
||||
<>
|
||||
<Button
|
||||
theme="glass"
|
||||
size="small"
|
||||
className="group relative"
|
||||
onClick={() => setIsSearchOpen(!isSearchOpen)}
|
||||
>
|
||||
@@ -71,6 +72,7 @@ export const Search = () => {
|
||||
{/* Close button */}
|
||||
<Button
|
||||
theme="glass"
|
||||
size="small"
|
||||
className="absolute top-6 right-6 z-10 group hover:!bg-red-500/50"
|
||||
onClick={handleClose}
|
||||
>
|
||||
@@ -144,9 +146,8 @@ export const Search = () => {
|
||||
{/* Show More Button */}
|
||||
{total_results > 4 && (
|
||||
<div className="text-center">
|
||||
<div className="relative inline-block">
|
||||
<div className="absolute inset-0 bg-gradient-to-r from-purple-500 to-cyan-500 rounded-xl blur-lg opacity-50"></div>
|
||||
<Button href={`/search?s=${query}`} onClick={handleClose}>
|
||||
<div className="inline-block">
|
||||
<Button href={`/search?s=${query}`}>
|
||||
<span className="flex items-center gap-2">
|
||||
Zobacz wszystkie ({total_results})
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user