Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ apps/web/node_modules
apps/web/.next
apps/web/dist
apps/web/build
apps/web/public
apps/web/.yalc
apps/web/out/*

Expand All @@ -54,7 +53,7 @@ packages/api/public
**/node_modules
**/dist
**/build
**/public


.turbo
output.log
Expand Down
Binary file added apps/web/public/swush-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 8 additions & 18 deletions apps/web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,16 @@ export default function SwapPage() {
return (
<ErrorBoundary>
<div className="h-screen relative overflow-hidden">
{/* Simplified Swush-inspired background with better contrast */}
<div className="absolute inset-0 bg-gradient-to-br from-forest-900 via-forest-900 to-slate-900">
{/* Background image with overlay for better contrast */}
<div
className="absolute inset-0 bg-cover bg-center bg-no-repeat"
style={{
backgroundImage: 'url(/swush-background.png)'
}}
>

</div>

{/* Swush Logo - Top Left Corner - Hidden on mobile */}
<div className="absolute top-6 left-6 z-20 hidden md:block">
<div className="relative">
<Image
src="/swush-logo.png"
alt="Swush"
width={100}
height={100}
className="drop-shadow-lg opacity-90 hover:opacity-100 transition-opacity duration-300"
priority
/>
{/* Subtle glow effect and increase the effect time to 300ms*/}
<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>
</div>
</div>

<Suspense fallback={<LoadState />}>
<SwapContainer />
</Suspense>
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/swap/ui/SwapField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ export const SwapField = memo(function SwapField({

return (
<motion.div
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`}
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`}
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3, delay: isInput ? 0 : 0.1 }}
>
{/* Subtle hover glow effect */}
<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>
<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>

{/* Content */}
<div className="relative z-10">
Expand Down Expand Up @@ -82,7 +82,7 @@ export const SwapField = memo(function SwapField({
<Dialog open={openDialog} onOpenChange={setOpenDialog}>
<DialogTrigger asChild>
<div className="flex-shrink-0">
<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">
<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">
<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">
<span className="text-white text-lg font-bold">{token.icon}</span>
</div>
Expand Down