Add power button
This commit is contained in:
parent
a0a385a50b
commit
fb54ef651b
37
css/powerButton.css
Normal file
37
css/powerButton.css
Normal file
@ -0,0 +1,37 @@
|
||||
html, body {
|
||||
border: 2px solid blue;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
margin: 0;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#canvas {
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
|
||||
border: 2px solid green;
|
||||
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
#title {
|
||||
border: 2px solid red;
|
||||
margin: 0;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#powerButton {
|
||||
border: 2px solid blue;
|
||||
|
||||
height: 60%;
|
||||
}
|
||||
|
||||
13
index.html
13
index.html
@ -14,14 +14,11 @@
|
||||
<title>Hello from Electron renderer!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello from Electron renderer!</h1>
|
||||
<p>👋</p>
|
||||
<button class="echoButton">
|
||||
ECHO
|
||||
</button>
|
||||
<button class="echoButton">
|
||||
ECHO 2
|
||||
</button>
|
||||
<div id="canvas">
|
||||
<h1 id="title">Ultra PowerButton Pro</h1>
|
||||
<input id="powerButton" type="image" class="echoButton" src="resource/logo1080.png" id="baz"/>
|
||||
</div>
|
||||
</body>
|
||||
<script src="pagejs/echo_button.js"></script>
|
||||
<link rel="stylesheet" href="css/powerButton.css" />
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user