|
14 | 14 | import Icon from '$lib/components/Icon.svelte';
|
15 | 15 | import Preview from '$lib/components/Preview.svelte';
|
16 | 16 | import Tooltip from '$lib/components/Tooltip.svelte';
|
| 17 | + import Button from '$lib/components/Button.svelte'; |
| 18 | + import ButtonGroup from '$lib/components/ButtonGroup.svelte'; |
17 | 19 | </script>
|
18 | 20 |
|
| 21 | +<svelte:head> |
| 22 | + <link |
| 23 | + href= "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:[email protected]" |
| 24 | + rel="stylesheet" |
| 25 | + /> |
| 26 | +</svelte:head> |
| 27 | + |
19 | 28 | <h1>Examples</h1>
|
20 | 29 |
|
21 |
| -<h2>Material Design icons</h2> |
| 30 | +<div class="grid grid-cols-[1fr,auto] items-center gap-2"> |
| 31 | + <h2>Material Design icons</h2> |
| 32 | + |
| 33 | + <ButtonGroup variant="fill-light" color="primary" size="sm"> |
| 34 | + <Button href="https://pictogrammers.com/library/mdi/" target="_blank">icons</Button> |
| 35 | + </ButtonGroup> |
| 36 | +</div> |
22 | 37 |
|
23 | 38 | <Preview>
|
24 | 39 | <Icon data={mdiAccount} />
|
|
36 | 51 | </Icon>
|
37 | 52 | </Preview>
|
38 | 53 |
|
39 |
| -<h2>Font Awesome icons</h2> |
| 54 | +<div class="grid grid-cols-[1fr,auto] items-center gap-2"> |
| 55 | + <h2>Font Awesome icons</h2> |
| 56 | + <ButtonGroup variant="fill-light" color="primary" size="sm"> |
| 57 | + <Button href="https://fontawesome.com/icons" target="blank">Icons</Button> |
| 58 | + </ButtonGroup> |
| 59 | +</div> |
40 | 60 |
|
41 | 61 | <Preview>
|
42 | 62 | <Icon data={faUser} />
|
43 | 63 | </Preview>
|
44 | 64 |
|
| 65 | +<div class="grid grid-cols-[1fr,auto] items-center gap-2"> |
| 66 | + <h2>Material Symbols font</h2> |
| 67 | + <ButtonGroup variant="fill-light" color="primary" size="sm"> |
| 68 | + <Button href="https://fonts.google.com/icons" target="blank">Icons</Button> |
| 69 | + <Button href="https://developers.google.com/fonts/docs/material_symbols" target="blank"> |
| 70 | + Docs |
| 71 | + </Button> |
| 72 | + </ButtonGroup> |
| 73 | +</div> |
| 74 | + |
| 75 | +<Preview> |
| 76 | + <Icon> |
| 77 | + <span class="material-symbols-outlined">person</span> |
| 78 | + </Icon> |
| 79 | + <Icon> |
| 80 | + <span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1"> |
| 81 | + person |
| 82 | + </span> |
| 83 | + </Icon> |
| 84 | +</Preview> |
| 85 | + |
45 | 86 | <h2>Sizes</h2>
|
46 | 87 |
|
47 | 88 | <Preview>
|
|
0 commit comments