-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
81 lines (81 loc) · 2.54 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
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<title>Shoelace Style: Left Side Navigation Bar</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/shoelace/shoelace.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/shoelace/shoelace.esm.js"></script>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
body{
font-family: 'Lato', sans-serif;
background-color: #f1f2f6;
}
::part(body) {
padding: 0;
}
sl-menu-item::part(base){
padding-top: 15px;
padding-bottom: 15px;
}
::part(header){
border-bottom: 1px solid #f2f2f2;
}
</style>
</head>
<body>
<sl-drawer label="W3hubs" placement="left" class="drawer-placement-left">
<sl-menu>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 1
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 2
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 3
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 4
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 5
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 6
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 7
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 8
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 9
</sl-menu-item>
<sl-menu-item>
<sl-icon slot="prefix" name="link-45deg"></sl-icon>
Link 10
</sl-menu-item>
</sl-menu>
</sl-drawer>
<sl-button>Open Drawer</sl-button>
<script>
(() => {
const drawer = document.querySelector('.drawer-placement-left');
const openButton = drawer.nextElementSibling;
openButton.addEventListener('click', () => drawer.show());
})();
</script>
</body>
</html>