Skip to content

Commit 31c7bf9

Browse files
committed
fix: simplify Button component structure in SearcherBar for cleaner code
1 parent 19d8e60 commit 31c7bf9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/modules/SearcherBar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ export function SearcherBar({ className }: { className?: string }) {
2323
</Button>
2424
</div>
2525

26-
<Button
27-
variant="outline"
28-
className="mx-auto mt-4 flex w-auto sm:hidden"
29-
>
26+
<Button variant="outline" className="mx-auto mt-4 flex w-auto sm:hidden">
3027
My activity
3128
</Button>
3229
</div>

src/routes/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export const Route = createFileRoute('/')({
1212

1313
function Index() {
1414
return (
15-
<div className="mt-8 flex flex-col gap-20">
16-
<div className="radial-bg before:bg-grey-800 border-secondary relative z-0 mx-auto h-80 w-full max-w-[1408px] overflow-hidden rounded-2xl border pt-20">
15+
<div className="mt-8 flex flex-col gap-10 sm:gap-20">
16+
<div className="radial-bg sm:before:bg-grey-800 border-secondary relative z-0 mx-auto w-full max-w-[1408px] overflow-hidden rounded-2xl pt-10 sm:h-80 sm:border sm:px-12 sm:pt-20">
1717
<SearcherBar />
18-
<div className="absolute inset-0 -z-10 blur-2xl sm:blur-[100px] lg:blur-[150px]">
18+
<div className="absolute inset-0 -z-10 hidden blur-2xl sm:block sm:blur-[100px] lg:blur-[150px]">
1919
<div className="absolute top-3/4 right-0 aspect-[23/30] w-1/2 rounded-full bg-orange-400/40" />
2020
<div className="absolute top-0 right-0 hidden aspect-square h-full translate-x-1/2 -translate-y-1/2 rounded-full bg-yellow-100/50 md:block" />
2121
</div>

0 commit comments

Comments
 (0)