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>Mobile Browser OS</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
font-family: 'Segoe UI', system-ui, sans-serif;
}
body {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #fff;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
padding: 10px;
}
.mobile-container {
width: 100%;
max-width: 400px;
height: 85vh;
background: #111;
border-radius: 30px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
position: relative;
overflow: hidden;
border: 10px solid #222;
}
/* Status Bar */
.status-bar {
height: 30px;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
font-size: 14px;
z-index: 100;
position: relative;
}
.time {
font-weight: 600;
}
/* Home Screen */
.home-screen {
height: calc(100% - 80px);
position: relative;
background-size: cover;
background-position: center;
transition: background-image 0.5s ease;
}
.wallpaper-overlay {
position: absolute;
...