forked from amirams/spotinst-functions-examples
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathformatter.js
49 lines (45 loc) · 787 Bytes
/
formatter.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
const header =
`
<!DOCTYPE html>
<html>
<style>
#wrapper {
padding-top: 15px;
font-family:sans-serif, verdana;
text-align: center;
padding: 20px 20px;
overflow: hidden;
background: #72a8ff;
}
div.singlePost{
border:3px solid black;
padding: 15px 15px;
border-radius: 5px;
background:white;
margin: 25px;
width: 500px;
height: 450px;
float:left;
display: inline-block;
}
img{
width: 250px;
max-height: 250px;
overflow:hidden;
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
}
.container{
padding-left:100px;
}
</style>
<body>
<div id="wrapper">
<h1>Spotinst Tweets</h1>
`;
const footer =
` </div>
</body>
</html>`;
exports.formatter = [header, footer]