Skip to content

Simulate edge-to-edge displays with notch or any form of camera cutout to see how your web application will look e.g. on modern mobile phones

License

Notifications You must be signed in to change notification settings

bytemind-de/edge-sq-display-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeSquare - Edge-2-Edge Display Simulator

EdgeSquare is a web based online simulator for mobile edge-to-edge displays with notch or any other form of camera cutout. It can load your web-app via iframe and lets you choose from a number of devices with presets for the status bar, navigation bar, camera cutout (notches, holes, etc.) and some other properties. In addition you can set your own colors for status bar and navigation bar to try out some design tweaks.

Check out how your web application REALLY looks on modern smartphones! ;-)

Getting started

  • Host the website on your server or simply go to: https://byteteilchen.de/edge-2-edge/
  • Enter the URL of your web application (or play around with the SEPIA Open Assistant demo, another great open-source project ^^)
  • Choose a device from the selector
  • Adjust colors as needed
  • Discover how your website/app looks like on a modern mobile phone display

Known issues

  • Since the devices are defined by their viewport size and not their physical size some might appear bigger than others or identical in size when they are actually smaller (or vice versa). Nevertheless this DOES represent the space a website or app will have on a specific device! Use the 'Device scale' toggle and scaling factor to get the approx. real size of a device.
  • The child app (the app started via 'App URL') runs in an iframe of the parent page and therefore it might not look exactly like the mobile version. This depends on how the child app reacts to the browser 'User-Agent' and viewport scaling.
  • If you need to simulate a different 'User-Agent' e.g. of a mobile browser you can use this SEPIA open-source browser extension for Chrome: SEPIA Framework Tools or the developer tools of your browser ;-)
  • HTML meta property 'theme-color' is ignored (in general data from inside the iframe is not handed over to the parent).

Screenshots

EdgeSquare using SEPIA App

Licenses

This project is licensed under the MIT open-source license. It is written in vanilla JS and includes only very few dependencies:

  • Pickr - Color picker that works cross-browser - MIT license
  • SVG-Inject - Tool to create styleable SVG images - MIT license
  • Web fonts from Google Material Icons - Apache license version 2.0
  • Some SVG icons from Simple Icons project - CC0 1.0 Universal license

About

Simulate edge-to-edge displays with notch or any form of camera cutout to see how your web application will look e.g. on modern mobile phones

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published