-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalculadora.html
105 lines (90 loc) · 2.85 KB
/
Calculadora.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<html>
<head>
<!-- Adicionar o React. -->
<!-- Nota: ao fazer o deploy, substitua "development.js" por "production.min.js". -->
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
<!-- Babel-->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>
/*REINICIAR BORDER-BOX*/
html {
box-sizing: border-box;
}
*, *::before, *:after {
box-sizing: inherit;
}
body {
background-color: #121212;
font-family: sans-serif;
margin: 0;
}
.header {
background-color: #333;
text-align: center;
color: white;
padding: 16px;
border-radius: 4px;
}
.calculator {
background-color: #FFF;
margin: 40px auto;
max-width: 400px;
padding: 16px;
border-radius: 4px;
}
.display {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1.2em;
}
.keyboard {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 1 frame */
grid-gap: 16px;
font-size: 1.2em;
margin-top: 16px;
font-weight: bold;
}
button {
border: 0;
border-radius: 4px;
background-color: #efefef;
padding: 8px;
cursor: pointer;
}
</style>
</head>
<body>
<div id="root"></div>
<div>
<div class="header">CALCULADOR</div>
<div class="calculator">
<div class="display"></div>
<div class="keyboard">
<button>7</button>
<button>8</button>
<button>9</button>
<button>4</button>
<button>5</button>
<button>6</button>
<button>1</button>
<button>2</button>
<button>3</button>
<button>0</button>
</div>
</div>
</div>
<script>
var e = React.createElement;
ReactDOM.render(
<div>
</div>
,
document.getElementById('root')
);
</script>
</body>
</html>