From 7c40003b8e35348da3ae5016d94c7b5f5162b4c1 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 30 Jan 2026 15:08:12 +0100 Subject: [PATCH] feat: implement animated container for dashboard preview using framer-motion, enhancing visual appeal and interactivity --- app/page.tsx | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index ee0bd56..bca8ca9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react' import Link from 'next/link' +import { motion } from 'framer-motion' import { useAuth } from '@/lib/auth/context' import { initiateOAuthFlow, initiateSignupFlow } from '@/lib/api/oauth' import { listSites, deleteSite, type Site } from '@/lib/api/sites' @@ -13,30 +14,34 @@ import { toast } from '@ciphera-net/ui' function DashboardPreview() { return ( -
+
{/* * Glow behind the image */}
- {/* * Floating Wrapper */} -
- {/* * The Dashboard Image Container */} -
- {/* * Header of the fake browser window */} -
-
-
-
-
- - {/* * Placeholder for actual dashboard screenshot - replace src with real image later */} -
-
- -

Dashboard Preview

-
-
+ {/* * Animated Container */} + + {/* * Header of the fake browser window */} +
+
+
+
-
+ + {/* * Placeholder for actual dashboard screenshot - replace src with real image later */} +
+
+ +

Dashboard Preview

+
+
+
) }