JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Демонстратор вероятностей кубика</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 2.5em;
background: linear-gradient(135deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.input-section {
display: flex;
gap: 20px;
margin-bottom: 30px;
flex-wrap: wrap;
justify-content: center;
}
.input-group {
display: flex;
flex-direction: column;
gap: 5px;
}
label {
color: #555;
font-weight: 600;
font-size: 14px;
}
input[type="number"] {
padding: 12px 15px;
border: 2px solid #ddd;
border-radius: 10px;
font-size: 16px;
width: 200px;
transition: all 0.3s;
}
input[type="number"]:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 10px...