From fb41977b1841a51c5a1e729931226f7a4a81d492 Mon Sep 17 00:00:00 2001 From: "Najjar\\NajjarV02" Date: Thu, 21 May 2026 17:08:24 +0400 Subject: [PATCH] feat: enhance UI components and update Instagram post data --- src/app/bu-sunaidah/page.tsx | 4 +-- src/components/ConfigPanel.tsx | 49 +++++++++++++++++++------- src/components/ConfiguratorSection.tsx | 2 +- src/components/Navbar.tsx | 14 ++++---- src/components/RobotCanvas.tsx | 47 ++++++++++++++++++------ src/data/bu-sunaidah-posts.json | 14 ++++---- 6 files changed, 90 insertions(+), 40 deletions(-) diff --git a/src/app/bu-sunaidah/page.tsx b/src/app/bu-sunaidah/page.tsx index cd45b87..b8d4e2f 100644 --- a/src/app/bu-sunaidah/page.tsx +++ b/src/app/bu-sunaidah/page.tsx @@ -636,8 +636,8 @@ export default async function BuSunaidahPage() { border: 1px solid rgba(222, 224, 240, 0.12); background: rgba(14, 13, 18, 0.6); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45); - aspect-ratio: 9 / 16; - min-height: 620px; + height: 720px; + width: 100%; } /* The Instagram embed iframe ships an in-frame header (avatar + username + "View profile") at the top. It is cross-origin so we diff --git a/src/components/ConfigPanel.tsx b/src/components/ConfigPanel.tsx index c28dbf3..f918b26 100644 --- a/src/components/ConfigPanel.tsx +++ b/src/components/ConfigPanel.tsx @@ -264,21 +264,46 @@ function ColorInput({ label, value, onChange }: { label: string; value: string; background: 'linear-gradient(135deg, rgba(22, 21, 30, 0.78), rgba(14, 13, 20, 0.92))', }} > - onChange(e.target.value)} +
{label}
{value.toUpperCase()}
diff --git a/src/components/ConfiguratorSection.tsx b/src/components/ConfiguratorSection.tsx index ebd52a8..e2ff69d 100644 --- a/src/components/ConfiguratorSection.tsx +++ b/src/components/ConfiguratorSection.tsx @@ -156,7 +156,7 @@ export function ConfiguratorSection() { width: '100%', height: '100%', background: - 'radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74, 102, 216, 0.12), transparent 65%), radial-gradient(ellipse 60% 70% at 50% 90%, rgba(255, 255, 255, 0.04), transparent 70%), linear-gradient(180deg, rgba(8, 8, 14, 0.98), rgba(4, 4, 8, 1))', + 'radial-gradient(ellipse 100% 70% at 50% 45%, rgba(80, 110, 200, 0.22), transparent 70%), radial-gradient(ellipse 60% 24% at 50% 92%, rgba(220, 228, 245, 0.20), transparent 70%), linear-gradient(180deg, rgba(24, 26, 40, 0.98), rgba(12, 13, 22, 1))', }} role="main" aria-label={t('app.title')} diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 603a22c..0d573b1 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -13,7 +13,7 @@ const NAV_LINKS = [ { label: 'Bu Sunaidah', href: '/bu-sunaidah/' }, { label: 'About', href: '/about/' }, { label: 'Contact', href: '/contact/' }, - { label: 'Book Demo', href: '/book-demo/' }, + { label: 'Configure', href: '/configure/' }, ]; export function Navbar() { @@ -134,11 +134,11 @@ export function Navbar() {
- Configure + Book Demo
diff --git a/src/components/RobotCanvas.tsx b/src/components/RobotCanvas.tsx index 219b99d..c12eb18 100644 --- a/src/components/RobotCanvas.tsx +++ b/src/components/RobotCanvas.tsx @@ -49,15 +49,42 @@ function SceneContent({ onCapture }: { onCapture: (gl: WebGLRenderer, scene: Sce return ( <> - - - - - - - + + + + {/* Key — front-right, strong white */} + + {/* Fill — front-left, cool tint */} + + {/* Rim — behind */} + + {/* Top spotlight */} + + {/* Front fill — direct face/torso */} + + {/* Face spotlight — soft direct head light */} + + {/* Bottom fill — lift the legs */} + + {/* Side accents */} + + + {/* Back side accents — define silhouette */} + + - + ); @@ -136,11 +163,11 @@ export function RobotCanvas() {
}> diff --git a/src/data/bu-sunaidah-posts.json b/src/data/bu-sunaidah-posts.json index 867360c..b0274e0 100644 --- a/src/data/bu-sunaidah-posts.json +++ b/src/data/bu-sunaidah-posts.json @@ -1,10 +1,8 @@ [ - { - "url": "https://www.instagram.com/reel/DX6pDm9Mkwe/", - "caption": "Make It in the Emirates 2026 — Abu Dhabi appearance." - }, - { - "url": "https://www.instagram.com/reel/DYg5KQsC8pW/", - "caption": "Abu Dhabi Global Sustainable Security Summit activation." - } + { "url": "https://www.instagram.com/reel/DYFUSrTNJcZ/" }, + { "url": "https://www.instagram.com/reel/DVO0Pp2k0Y-/" }, + { "url": "https://www.instagram.com/reel/DVJtcu3E_oc/" }, + { "url": "https://www.instagram.com/reel/DYE2K2uNYs3/" }, + { "url": "https://www.instagram.com/reel/DYE1rISN6Ut/" }, + { "url": "https://www.instagram.com/reel/DYC_yu1OTnk/" } ]