-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainTemplate.js
130 lines (130 loc) · 3.62 KB
/
mainTemplate.js
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
const htmlTemplate=
`<!DOCTYPE html>
<html>
<head>
<title>
Hotel Management
</title>
<style>
button{
border: 0px;
padding-left: 50px;
padding-right: 50px;
}
button:hover{
color: #ffffff;
background-color: #000000;
}
*{
font-family: sans-serif;
}
body{
margin: 0px;
}
#menu{
display: flex;
background-color: rgba(239,239,239);
}
#container{
height: 100vh;
display: grid;
grid-template-rows: 5vh 95vh;
}
#contentPanel{
box-sizing: border-box;
}
#roomsContent{
display: grid;
box-sizing: border-box;
grid-template-columns: 1fr 1fr;
height: 100%;
}
#searchRoom{
display: grid;
box-sizing: border-box;
grid-template-columns: 1fr 1fr;
height: 100%;
}
.scrollable{
overflow: auto;
}
table {
width:100%;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
text-align: left;
}
tr:nth-child(even) {
background-color: #eee;
}
tr:nth-child(odd) {
background-color: #fff;
}
tr:hover{
color: #ffffff;
background-color: #000000;
}
th {
background-color: black;
color: white;
}
a {
text-decoration: none;
}
#searchOptions{
display: flex;
padding-left: 27vw;
}
#buttons{
display: flex;
}
#stat{
display: grid;
box-sizing: border-box;
grid-template-columns: 1fr 1fr;
height: 100%;
}
#roomTypesContent{
display: grid;
box-sizing: border-box;
grid-template-columns: 1fr 1fr;
height: 100%;
}
#about{
padding-left: 35vw;
padding-top: 35vh;
}
#chooseMonth{
padding-left: 35vw;
padding-top: 35vh;
}
#chooseRoom{
padding-left: 35vw;
padding-top: 35vh;
}
</style>
</head>
<body id="container">
<!-- Menu -->
<div id="menu">
<button onclick="document.location='/rooms'">Rooms</button>
<button onclick="document.location='/rent'">Rent</button>
<button onclick="document.location='/search'">Search</button>
<button onclick="document.location='/bill'">Bill</button>
<button onclick="document.location='/stat'">Statistics</button>
<button onclick="document.location='/logout'">Log out</button>
</div>
<div id="contentPanel">
{{{contentPanel}}}
</div>
{{#each scripts}}
<script src="{{this.src}}"></script>
{{/each}}
</body>
</html>`
module.exports = {htmlTemplate};