-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (63 loc) · 2.15 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>html-to-table - npm</title>
<meta http-equiv="cleartype" content="on"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,initial-scale=1"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" rel="stylesheet">
<style>
body{
background: #131217;
color: #f2f2f2;
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 10vh;
padding-bottom: 10vh;
row-gap: 5vh;
height: 100vh;
margin:0;
box-sizing: border-box;
}
.box {
color: white;
padding: 12px;
border-radius: 12px;
background: linear-gradient(to bottom, transparent 0%, rgba(217, 217, 217, 0.03) 36%, rgba(115, 115, 115, 0.13) 100%);
}
.box:focus{
border: 1px solid #4385f8 !important;
outline: none;
}
button{
border-radius: 6px;
background: #4385f8;
padding: 20px 32px;
color: white;
}
</style>
</head>
<body>
<h1>Convert HTML element to Email Compatible Layout</h1>
<textarea class="box" style="min-width: 50vw; min-height: 40vh;" placeholder="Enter Source Text">
</textarea>
<div id="output-container" style="width: 50vw; display: none">
<div style="width: 100%; display: flex; justify-content: end; column-gap: 12px">
<button class="box" id="preview">Preview</button>
<button class="box" id="code">Code</button>
</div>
<div id="output" style="width: 100%;">
</div>
</div>
<button id="action">Convert</button>
<script type="module" src="./main.js"></script>
</body>
</html>