Skip to content

Commit 000dc59

Browse files
authored
feat: update background and UI (#26)
* feat: update background and overlay for improved UI contrast * refactor: remove dark overlay * refactor: updated the background and border styles in the SwapField
1 parent a86a2a1 commit 000dc59

File tree

4 files changed

+12
-23
lines changed

4 files changed

+12
-23
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ apps/web/node_modules
4040
apps/web/.next
4141
apps/web/dist
4242
apps/web/build
43-
apps/web/public
4443
apps/web/.yalc
4544
apps/web/out/*
4645

@@ -54,7 +53,7 @@ packages/api/public
5453
**/node_modules
5554
**/dist
5655
**/build
57-
**/public
56+
5857

5958
.turbo
6059
output.log
638 KB
Loading

apps/web/src/app/page.tsx

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,16 @@ export default function SwapPage() {
88
return (
99
<ErrorBoundary>
1010
<div className="h-screen relative overflow-hidden">
11-
{/* Simplified Swush-inspired background with better contrast */}
12-
<div className="absolute inset-0 bg-gradient-to-br from-forest-900 via-forest-900 to-slate-900">
11+
{/* Background image with overlay for better contrast */}
12+
<div
13+
className="absolute inset-0 bg-cover bg-center bg-no-repeat"
14+
style={{
15+
backgroundImage: 'url(/swush-background.png)'
16+
}}
17+
>
18+
1319
</div>
1420

15-
{/* Swush Logo - Top Left Corner - Hidden on mobile */}
16-
<div className="absolute top-6 left-6 z-20 hidden md:block">
17-
<div className="relative">
18-
<Image
19-
src="/swush-logo.png"
20-
alt="Swush"
21-
width={100}
22-
height={100}
23-
className="drop-shadow-lg opacity-90 hover:opacity-100 transition-opacity duration-300"
24-
priority
25-
/>
26-
{/* Subtle glow effect and increase the effect time to 300ms*/}
27-
<div className="absolute inset-0 bg-gradient-to-br from-flame-400/15 to-flame-500/10 rounded-full filter blur-lg -z-10"></div>
28-
</div>
29-
</div>
30-
3121
<Suspense fallback={<LoadState />}>
3222
<SwapContainer />
3323
</Suspense>

apps/web/src/components/swap/ui/SwapField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export const SwapField = memo(function SwapField({
4242

4343
return (
4444
<motion.div
45-
className={`group relative ${isInput ? 'p-5' : 'p-6'} rounded-2xl bg-forest-800/95 backdrop-blur-md border border-forest-600/60 shadow-xl hover:border-flame-400/50 hover:shadow-flame-500/20 transition-all duration-300`}
45+
className={`group relative ${isInput ? 'p-5' : 'p-6'} rounded-2xl bg-forest-800/60 backdrop-blur-md border border-forest-600/30 shadow-lg shadow-black/10 hover:border-forest-500/30 hover:bg-forest-800/80 transition-all duration-300`}
4646
initial={{ opacity: 0, y: 20 }}
4747
animate={{ opacity: 1, y: 0 }}
4848
transition={{ duration: 0.3, delay: isInput ? 0 : 0.1 }}
4949
>
5050
{/* Subtle hover glow effect */}
51-
<div className="absolute inset-0 bg-gradient-to-br from-flame-500/0 to-flame-400/0 group-hover:from-flame-500/5 group-hover:to-flame-400/5 rounded-2xl transition-all duration-300 pointer-events-none"></div>
51+
<div className="absolute inset-0 bg-gradient-to-br from-flame-500/0 to-flame-400/0 group-hover:from-flame-500/8 group-hover:to-flame-400/8 rounded-2xl transition-all duration-300 pointer-events-none"></div>
5252

5353
{/* Content */}
5454
<div className="relative z-10">
@@ -82,7 +82,7 @@ export const SwapField = memo(function SwapField({
8282
<Dialog open={openDialog} onOpenChange={setOpenDialog}>
8383
<DialogTrigger asChild>
8484
<div className="flex-shrink-0">
85-
<div className="flex items-center gap-3 pl-2 py-3 rounded-xl bg-forest-800 hover:bg-forest-700 border-forest-600 hover:border-flame-400 transition-all duration-200 cursor-pointer">
85+
<div className="flex items-center gap-3 pl-2 py-3 rounded-xl hover:bg-forest-800 border-forest-600 hover:border-flame-400 transition-all duration-200 cursor-pointer">
8686
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-flame-400 to-flame-500 flex items-center justify-center shadow-lg">
8787
<span className="text-white text-lg font-bold">{token.icon}</span>
8888
</div>

0 commit comments

Comments
 (0)