JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nokia 3210 2024 Emulator</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f5f5f5;
font-family: 'Arial', sans-serif;
}
.phone {
width: 280px;
height: 550px;
background-color: #2c3e50;
border-radius: 30px;
position: relative;
box-shadow: 0 10px 20px rgba(0,0,0,0.3);
overflow: hidden;
padding: 10px;
}
.top-section {
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.brand {
color: #ecf0f1;
font-weight: bold;
font-size: 18px;
}
.screen-border {
height: 230px;
margin: 5px;
background-color: #34495e;
border-radius: 5px;
padding: 10px;
}
.screen {
height: 100%;
background-color: #7f8c8d;
border-radius: 3px;
position: relative;
overflow: hidden;
}
.screen-content {
padding: 10px;
height: calc(100% - 20px);
color: #111;
font-family: 'Courier New', monospace;
}
.status-bar {
height: 20px;
background-color: #7f8c8d;
display: flex;
justify-content: space-between;
padding: 0 10px;
align-items: center;
border-bottom: 1px solid #2c3e50;
}
.menu-screen {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 5px;
padding: 5px;
height: calc(100% - 30px);
}
.menu-item {
background-color: #2c3e50;
border-radius: 5px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-size: 10px;
cursor: pointer;
...