-
-
Notifications
You must be signed in to change notification settings - Fork 285
/
+page.svelte
43 lines (38 loc) · 1.04 KB
/
+page.svelte
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
<AutoAdjust {bottomAppBar}>
<h5>Fixed</h5>
<LoremIpsum />
<img
alt="Page content placeholder"
src="/page-content.jpg"
style="display: block; max-width: 100%; height: auto; margin: 1em auto;"
/>
</AutoAdjust>
<BottomAppBar bind:this={bottomAppBar} variant="fixed">
<Section>
<IconButton class="material-icons">menu</IconButton>
</Section>
<Section>
<IconButton class="material-icons" aria-label="Search">search</IconButton>
<IconButton class="material-icons" aria-label="More">more_vert</IconButton>
</Section>
</BottomAppBar>
<script lang="ts">
import BottomAppBar, {
Section,
AutoAdjust,
} from '@smui-extra/bottom-app-bar';
import IconButton from '@smui/icon-button';
import LoremIpsum from '$lib/LoremIpsum.svelte';
let bottomAppBar: BottomAppBar;
</script>
<style>
/* Hide everything above this component. */
:global(app),
:global(body),
:global(html) {
display: block !important;
height: auto !important;
width: auto !important;
position: static !important;
}
</style>