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 */} +