JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebOS Mobile</title>
<style>
:root {
--accent-color: #007AFF;
--glass: rgba(255, 255, 255, 0.2);
--glass-heavy: rgba(255, 255, 255, 0.4);
--bg-url: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=800&q=80');
--aura-color: rgba(0, 122, 255, 0.3);
}
* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; user-select: none; }
body {
background: #222;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
overflow: hidden;
}
/* --- Phone Frame --- */
#phone {
width: 375px;
height: 750px;
background: #000;
border-radius: 50px;
border: 12px solid #333;
position: relative;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
#screen {
width: 100%;
height: 100%;
background-image: var(--bg-url);
background-size: cover;
background-position: center;
position: relative;
transition: all 0.5s ease;
}
/* Aura Mode Glow Effect */
#aura-glow {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
box-shadow: inset 0 0 100px var(--aura-color);
pointer-events: none;
transition: background 1s ease;
}
/* --- Status Bar --- */
#status-bar {
height: 40px;
padding: 0 30px;
...