-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogo.html
122 lines (113 loc) · 3.84 KB
/
logo.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
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<meta charset="utf-8">
<title></title>
<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=Lexend:[email protected]&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
* { box-sizing: border-box; }
body {
font-family: "Lexend", "Helvetica Neue", "Helvetica", sans-serif;
margin: 0;
padding: 0;
font-size: 14px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color:#000;
}
header {
background-color: #999;
color: #eee;
height: 0vh;
}
main {
background-color: #000;
color: #ddd;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
footer {
background-color: #666;
color: #eee;
height: 0vh;
}
li {
display: flex;
flex-direction: row;
white-space: nowrap;
}
.logo {
height: 20rem;
width: 30rem;
}
</style>
<link rel='stylesheet' type='text/css' href='sleigh.css'/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" integrity="sha512-fD9DI5bZwQxOi7MhYWnnNPlvXdp/2Pj3XSTRrFs5FQa4mizyGLnJcN6tuvUS6LbmgN1ut+XGSABKvjN0H6Aoow==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<main>
<div class="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="5.90576 3.63929 147.1 127.1">
<path d="M 83 130 L 83.052 107.77 L 63.002 107.46 Q 29.378 109.312 29.07 65.2 Q 29.378 18.93 80 24 L 115 24 Q 136 24 136 41 Q 135 56 114 54 L 92 54 L 92 73 L 132 130 L 153 130 L 115 74 Q 151 77 152 41 Q 153 5 116 4 L 79 4 L 75 4 Q 5.626 -1.12 5.934 66.434 Q 4.727 130.262 55.111 130.704 Z" fill="#fff"/>
</svg>
</div>
<div class="cell"></div>
</main>
<script>
const $ = str => document.querySelector(str);
const $$ = str => document.querySelectorAll(str);
(function() {
const app = {
data: {},
state: {
loaded: false
},
init: function() {
app.state.loaded = true;
},
fetch: function(url, callback) {
fetch(url).then(response=>response.json()).then(data=>{
app.data = data;
app.state.loaded = true;
if (callback && typeof(callback) === "function") {
callback(data);
}
});
},
display: function(data, tgt) {
let out = "<table><thead><tr>";
const keys = Object.keys(data[0]);
if (keys) {
keys.forEach(key => {
out += `<th>${key}</th>`;
});
}
out += "</tr></thead><tbody>";
data.forEach(item=>{
out += `<tr>`;
keys.forEach(key => {
out += `<td>${item[i]}</td>`;
});
out += `</tr>`;
});
out += "</tbody></table>";
if (tgt) {
tgt.innerHTML = out;
}
return out;
}
}
window.app = app;
app.init();
})();
</script>
</body>
</html>