From 23886e3ef2ee5d825f18cfcb5977b0dcba56a1c4 Mon Sep 17 00:00:00 2001 From: smian1 Date: Tue, 3 Dec 2024 21:55:19 -0800 Subject: [PATCH] Enhance UI with gradient animations and layout adjustments - Added a new gradient animation for background effects in the ProductBanner and other components. - Updated spacing in AppList and CategoryHeader for improved layout consistency. - Refactored ProductBanner to enhance visual appeal and responsiveness with new gradient backgrounds and hover effects. - Added 'rel="noreferrer"' to external links in the footer for security improvements. --- frontend/src/app/apps/components/app-list.tsx | 4 +- .../apps/components/category-header/index.tsx | 2 +- .../app/components/product-banner/index.tsx | 330 ++++++++++++------ frontend/src/app/globals.css | 17 + frontend/src/components/shared/footer.tsx | 3 + 5 files changed, 252 insertions(+), 104 deletions(-) diff --git a/frontend/src/app/apps/components/app-list.tsx b/frontend/src/app/apps/components/app-list.tsx index 10507857e..213cc3bfd 100644 --- a/frontend/src/app/apps/components/app-list.tsx +++ b/frontend/src/app/apps/components/app-list.tsx @@ -116,7 +116,7 @@ export default async function AppList() {
-
+
{/* New This Week Section */}
@@ -180,7 +180,7 @@ export default async function AppList() { {/* Category Sections */} {Object.entries(sortedCategories).map(([category, plugins]) => ( -
+
{plugins.length > diff --git a/frontend/src/app/apps/components/category-header/index.tsx b/frontend/src/app/apps/components/category-header/index.tsx index 516a6624b..ab978d544 100644 --- a/frontend/src/app/apps/components/category-header/index.tsx +++ b/frontend/src/app/apps/components/category-header/index.tsx @@ -12,7 +12,7 @@ export function CategoryHeader({ category, totalApps }: CategoryHeaderProps) { const Icon = metadata.icon; return ( -
+
diff --git a/frontend/src/app/components/product-banner/index.tsx b/frontend/src/app/components/product-banner/index.tsx index 3c130932b..5e638a2ce 100644 --- a/frontend/src/app/components/product-banner/index.tsx +++ b/frontend/src/app/components/product-banner/index.tsx @@ -24,45 +24,122 @@ export function ProductBanner({ switch (variant) { case 'detail': return ( -
-
-
-
-
- {PRODUCT_INFO.name} +
+
+
+
+ {/* Left Content */} +
+ {/* Image Container */} +
+
+
+ {PRODUCT_INFO.name} +
+
+ + {/* Text Content */} +
+
+

+ Experience {appName} with {PRODUCT_INFO.name} +

+

+ AI-Powered Voice Assistant - {PRODUCT_INFO.shipping} +

+
+ + {/* Features */} +
+ + + + + + Second Brain + + + + + + Voice AI + + + + + + Built-in Memory + +
+
-
-

- Experience {appName} with {PRODUCT_INFO.name} -

-

- AI-Powered Voice Assistant - {PRODUCT_INFO.shipping} -

+ + {/* Right Content - Price and CTA */} +
+
+
+ + {PRODUCT_INFO.price} + + + Shipping Now + +
+

+ 30-day money-back guarantee +

+
+ + + + Order Now + + + + +
-
- - {PRODUCT_INFO.price} - - - Order Now -
- -
); @@ -71,45 +148,71 @@ export function ProductBanner({ return (
-
-
-
- {PRODUCT_INFO.name} -
-
-

- {PRODUCT_INFO.name} -

-

{PRODUCT_INFO.price}

+
+
+
+
+
+
+
+ {PRODUCT_INFO.name} +
+
+
+

+ {PRODUCT_INFO.name} +

+
+

{PRODUCT_INFO.price}

+ + Shipping Now + +
+
-
-
@@ -117,39 +220,64 @@ export function ProductBanner({ case 'category': return ( -
-
-
-
-
- {PRODUCT_INFO.name} -
-
-

- Enhance your {category} experience -

-

- {PRODUCT_INFO.name} - {PRODUCT_INFO.price} -

+
+
+
+
+
+
+
+
+ {PRODUCT_INFO.name} +
+
+
+

+ Enhance your {category} experience +

+
+

+ {PRODUCT_INFO.name} - {PRODUCT_INFO.price} +

+ + Shipping Now + +
+
+ + + Order Now + + + + +
- - Order Now -
); diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index f021f0bcb..11f10bf7e 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -12,3 +12,20 @@ scrollbar-width: none; } } + +@keyframes gradient-x { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } +} + +.animate-gradient-x { + animation: gradient-x 15s ease infinite; + background-size: 400% 400%; +} diff --git a/frontend/src/components/shared/footer.tsx b/frontend/src/components/shared/footer.tsx index b99648746..b8aead763 100644 --- a/frontend/src/components/shared/footer.tsx +++ b/frontend/src/components/shared/footer.tsx @@ -71,6 +71,7 @@ export default function Footer() { className="text-zinc-400 hover:text-white hover:underline md:text-base" href={'https://www.omi.me/pages/openglass'} target="_blank" + rel="noreferrer" > OpenGlass @@ -80,6 +81,7 @@ export default function Footer() { className="text-zinc-400 hover:text-white hover:underline md:text-base" href={'https://www.omi.me/'} target="_blank" + rel="noreferrer" > Friend @@ -89,6 +91,7 @@ export default function Footer() { className="text-zinc-400 hover:text-white hover:underline md:text-base" href={'https://www.omi.me/pages/friend-dev'} target="_blank" + rel="noreferrer" > Friend DEV KIT