-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (58 loc) · 1.68 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Layouter DEMO</title>
<link rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<main p="24-1/15 24-1/25@sm 30-1/31@md 29.26-1/41@lg" mxw="1280" mx="auto">
<header fx="jc:sb@md" mb="24 30@md">
<div h="100" c="11.1/29@md" mb="24@-md"></div>
<div h="100" c="16.9/29@md"></div>
</header>
<section h="320" mb="24 25@sm 30@md"></section>
<footer fx="jc:sb@sm">
<div h="200" c="7/23@sm 9/29@md 12.33/39@lg"></div>
<div h="200" c="7/23@sm 9/29@md 12.33/39@lg" my="24@-sm"></div>
<div h="200" c="7/23@sm 9/29@md 12.33/39@lg"></div>
</footer>
</main>
<style>
body {
background-color: #004b85;
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
header > div:first-child {
background-color: #00a0ff;
}
header > div:last-child {
background-color: white;
}
section {
background-color: #575757;
}
footer div {
background-color: #bcbcbc;
}
</style>
<script>
console.time('layouter');
window.layouterConfig = {
ready: (data) => {
console.log(data);
console.timeEnd('layouter');
},
};
document.querySelector('footer div:nth-child(3)').addEventListener('layout:ready', () => {
console.log('Square layout ready!');
});
</script>
<script src="https://cdn.jsdelivr.net/npm/layouter.js/dist/layouter.umd.js" defer></script>
</body>
</html>