-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathh.js
More file actions
75 lines (65 loc) · 1.76 KB
/
h.js
File metadata and controls
75 lines (65 loc) · 1.76 KB
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
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send(`
<!DOCTYPE html>
<html>
<head>
<title>Button Layout Demo</title>
<style>
body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
.button-row {
display: flex;
justify-content: center;
width: 100%;
}
.button {
flex: 1;
padding: 20px;
font-size: 18px;
font-weight: bold;
color: white;
border: none;
cursor: pointer;
}
.blue { background-color: blue; }
.red { background-color: red; }
.green { background-color: green; }
.center-text {
font-size: 28px;
font-weight: bold;
text-align: center;
}
.bottom-buttons {
width: 100%;
}
</style>
</head>
<body>
<div class="button-row">
<button class="button blue">BLUE BUTTON</button>
<button class="button red">RED BUTTON</button>
<button class="button green">GREEN BUTTON</button>
</div>
<div class="bottom-buttons">
<button class="button blue">BLUE BUTTON</button>
<button class="button red">RED BUTTON</button>
<button class="button green">GREEN BUTTON</button>
</div>
</body>
</html>
`);
});
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});