From 10dcc55a6479753be3c1cf57171b2bbd99470253 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 27 Feb 2026 15:38:40 +0000 Subject: [PATCH] 11 --- frontend/src/components/MobileSimulator.tsx | 65 +++++ frontend/src/components/NavBarItem.tsx | 5 +- frontend/src/layouts/Authenticated.tsx | 22 +- frontend/src/pages/index.tsx | 252 ++++++++---------- frontend/src/pages/projects/projects-view.tsx | 12 +- 5 files changed, 206 insertions(+), 150 deletions(-) create mode 100644 frontend/src/components/MobileSimulator.tsx diff --git a/frontend/src/components/MobileSimulator.tsx b/frontend/src/components/MobileSimulator.tsx new file mode 100644 index 0000000..dab6439 --- /dev/null +++ b/frontend/src/components/MobileSimulator.tsx @@ -0,0 +1,65 @@ +import React from 'react'; +import { mdiOpenInNew } from '@mdi/js'; +import BaseIcon from './BaseIcon'; + +type MobileSimulatorProps = { + url?: string; +}; + +const MobileSimulator: React.FC = ({ url }) => { + if (!url) { + return ( +
+
+
+

No URL provided to preview.

+
+
+
+ ); + } + + // Ensure URL has https:// prefix + const formattedUrl = url.startsWith('http') ? url : `https://${url}`; + + return ( +
+
+

Live App Preview

+

+ Previewing: {formattedUrl} + +

+
+ {/* Phone Frame */} +
+ {/* Notch */} +
+ {/* Speaker / Camera details inside notch */} +
+
+
+ {/* Left Side Buttons */} +
+
+ {/* Right Side Button */} +
+ + {/* Screen Content */} +
+ {/* Iframe for the website */} +