File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 import SkillIcon from " $lib/components/ui/SkillIcon.svelte" ;
66 import BlinkingCursor from " $lib/components/ui/BlinkingCursor.svelte" ;
77 import DecoBG from " $lib/components/ui/DecoBG/DecoBG.svelte" ;
8+ import ControllerSvgDefs from " ../ui/DecoBG/ControllerSvgDefs.svelte" ;
89 </script >
910
1011<Section id ="skills" title ={$t (" skills.title" )}>
1617 <div class =" mt-12 grid grid-cols-1 gap-10 md:grid-cols-3" >
1718 <SkillCard title ={$t (" skills.engines" )} theme =" mauve" >
1819 <DecoBG >
20+ <svelte:fragment slot =" defs" >
21+ <ControllerSvgDefs />
22+ </svelte:fragment >
1923 <div
2024 class =" flex flex-wrap items-center justify-center gap-4 p-4"
2125 >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import DreamcastController from " $lib/icons/ryan-beck-dreamcast-controller.svg?component" ;
33 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 NintendoController from " $lib/icons/ryan-beck-wii -controller.svg?component" ;
55 </script >
66
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 >
7+ <defs >
8+ <symbol id =" icon-dreamcast" viewBox =" 0 0 24 24"
9+ ><DreamcastController /></symbol
10+ >
11+ <symbol id =" icon-gamecube" viewBox =" 0 0 24 24"
12+ ><GamecubeController /></symbol
13+ >
14+ <symbol id =" icon-nintendo" viewBox =" 0 0 100 100"
15+ ><NintendoController /></symbol
16+ >
1817
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 >
18+ <pattern
19+ id =" controller-pattern"
20+ patternUnits =" userSpaceOnUse"
21+ width =" 250"
22+ height =" 250"
23+ >
24+ <use href =" #icon-dreamcast" x =" 25" y =" 50" width =" 75" height =" 75" />
25+ <use href =" #icon-gamecube" x =" 125" y =" 125" width =" 75" height =" 75" />
26+ <use href =" #icon-nintendo" x =" 75" y =" 200" width =" 75" height =" 75" />
27+ </pattern >
28+ </defs >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 /** Controls the overall opacity of the pattern. */
3- export let density: number = 0. 1 ;
3+ export let density: number = 1 ;
44 </script >
55
66<div
77 class =" absolute inset-0 z-0 text-ctp-surface1 dark:text-ctp-surface2"
8- style ="opacity: {density }; --pattern-color: currentColor; "
8+ style ="opacity: {density };"
99 aria-hidden =" true"
1010>
1111 <svg width =" 100%" height =" 100%" >
12+ <slot name =" defs" ></slot >
13+ <!-- might need class="fill-current" -->
1214 <rect width =" 100%" height =" 100%" fill =" url(#controller-pattern)" />
1315 </svg >
1416</div >
You can’t perform that action at this time.
0 commit comments