|
1 | 1 | <script lang="ts"> |
2 | 2 | import DreamcastController from "$lib/icons/ryan-beck-dreamcast-controller.svg?component"; |
3 | 3 | import GamecubeController from "$lib/icons/ryan-beck-gamecube-controller.svg?component"; |
4 | | - import NintendoController from "$lib/icons/ryan-beck-nintendo-controller.svg?component"; |
| 4 | + import WiiController from "$lib/icons/ryan-beck-wii-controller.svg?component"; |
| 5 | + import NesController from "$lib/icons/ryan-beck-nes-controller.svg?component"; |
| 6 | + import NSFController from "$lib/icons/ryan-beck-n64-controller.svg?component"; |
5 | 7 | </script> |
6 | 8 |
|
7 | | -<svg width="0" height="0" style="position:absolute; overflow:hidden;"> |
8 | | - <defs> |
9 | | - <symbol id="icon-dreamcast" viewBox="0 0 24 24"> |
10 | | - <DreamcastController /> |
11 | | - </symbol> |
12 | | - <symbol id="icon-gamecube" viewBox="0 0 24 24"> |
13 | | - <GamecubeController /> |
14 | | - </symbol> |
15 | | - <symbol id="icon-nintendo" viewBox="0 0 100 100"> |
16 | | - <NintendoController /> |
17 | | - </symbol> |
| 9 | +<defs> |
| 10 | + <symbol id="icon-dreamcast" viewBox="0 0 24 24" |
| 11 | + ><DreamcastController /></symbol |
| 12 | + > |
| 13 | + <symbol id="icon-gamecube" viewBox="0 0 24 24" |
| 14 | + ><GamecubeController /></symbol |
| 15 | + > |
| 16 | + <symbol id="icon-wii" viewBox="0 0 100 100"><WiiController /></symbol> |
| 17 | + <symbol id="icon-nes" viewBox="0 0 100 100"><NesController /></symbol> |
| 18 | + <symbol id="icon-n64" viewBox="0 0 100 100"><NSFController /></symbol> |
18 | 19 |
|
19 | | - <pattern |
20 | | - id="controller-pattern" |
21 | | - patternUnits="userSpaceOnUse" |
22 | | - width="250" |
23 | | - height="250" |
24 | | - color="var(--pattern-color, currentColor)" |
25 | | - > |
26 | | - <use |
27 | | - href="#icon-dreamcast" |
28 | | - x="25" |
29 | | - y="50" |
30 | | - width="75" |
31 | | - height="75" |
32 | | - fill="currentColor" |
33 | | - /> |
34 | | - <use |
35 | | - href="#icon-gamecube" |
36 | | - x="125" |
37 | | - y="125" |
38 | | - width="75" |
39 | | - height="75" |
40 | | - fill="currentColor" |
41 | | - /> |
42 | | - <use |
43 | | - href="#icon-nintendo" |
44 | | - x="75" |
45 | | - y="200" |
46 | | - width="75" |
47 | | - height="75" |
48 | | - fill="currentColor" |
49 | | - /> |
50 | | - </pattern> |
51 | | - </defs> |
52 | | -</svg> |
| 20 | + <pattern |
| 21 | + id="controller-pattern" |
| 22 | + patternUnits="userSpaceOnUse" |
| 23 | + width="250" |
| 24 | + height="250" |
| 25 | + > |
| 26 | + <use href="#icon-dreamcast" x="25" y="50" width="75" height="75" /> |
| 27 | + <use href="#icon-gamecube" x="125" y="125" width="75" height="75" /> |
| 28 | + <use href="#icon-wii" x="81" y="224" width="75" height="75" /> |
| 29 | + <use href="#icon-nes" x="84" y="214" width="75" height="75" /> |
| 30 | + <use href="#icon-n64" x="86" y="208" width="75" height="75" /> |
| 31 | + </pattern> |
| 32 | +</defs> |
0 commit comments