|
| 1 | +<svelte:options immutable={true} /> |
| 2 | + |
1 | 3 | <script>
|
2 | 4 | import { Row, Col, ListItem, Icon } from 'svelte-materialify/src';
|
| 5 | + import { |
| 6 | + mdiViewDashboardOutline, |
| 7 | + mdiSpeedometer, |
| 8 | + mdiPaletteOutline, |
| 9 | + mdiFlaskEmptyOutline, |
| 10 | + mdiFunction, |
| 11 | + } from '@mdi/js'; |
3 | 12 |
|
4 | 13 | export let related;
|
5 | 14 | const items = related.map((x) => x.split('/'));
|
|
12 | 21 | }
|
13 | 22 |
|
14 | 23 | const icons = {
|
15 |
| - components: 'view-dashboard-outline indigo-text', |
16 |
| - 'getting-started': 'speedometer green-text', |
17 |
| - styles: 'palette-outline deep-purple-text', |
18 |
| - api: 'flask-empty-outline amber-text', |
19 |
| - actions: 'function indigo-text', |
| 24 | + components: { |
| 25 | + path: mdiViewDashboardOutline, |
| 26 | + color: 'view-dashboard-outline indigo-text', |
| 27 | + }, |
| 28 | + 'getting-started': { path: mdiSpeedometer, color: 'speedometer green-text' }, |
| 29 | + styles: { path: mdiPaletteOutline, color: 'palette-outline deep-purple-text' }, |
| 30 | + api: { path: mdiFlaskEmptyOutline, color: 'flask-empty-outline amber-text' }, |
| 31 | + actions: { path: mdiFunction, color: 'function indigo-text' }, |
20 | 32 | };
|
21 | 33 | </script>
|
22 | 34 |
|
|
26 | 38 | }
|
27 | 39 | </style>
|
28 | 40 |
|
29 |
| -<svelte:options immutable={true} /> |
30 |
| - |
31 | 41 | <section>
|
32 | 42 | <h2 class="text-h4 mb-3">Ready For More?</h2>
|
33 | 43 | <p>
|
|
39 | 49 | <a href="/{dir}/{page}/">
|
40 | 50 | <ListItem ripple class="rounded ready-for-more">
|
41 | 51 | <div slot="prepend">
|
42 |
| - <Icon class="mdi mdi-{icons[dir]}" /> |
| 52 | + <Icon path={icons[dir].path} class={icons[dir].color} /> |
43 | 53 | </div>
|
44 | 54 | {fmt(page)}
|
45 | 55 | <span slot="subtitle">{fmt(dir)}</span>
|
|
0 commit comments