File tree Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 99import NavbarItem from ' ./lib/nav/navbar-item.svelte' ;
1010
1111// icons
12- import Icon from ' svelte-icons-pack ' ;
13- import AiOutlineFunction from ' svelte-icons-pack/ai/AiOutlineFunction ' ;
12+ import Icon from ' @components/common/icon. svelte' ;
13+ import HiOutlineFolderOpen from ' svelte-icons-pack/hi/HiOutlineFolderOpen ' ;
1414import AiOutlineAppstore from ' svelte-icons-pack/ai/AiOutlineAppstore' ;
1515import BsBraces from ' svelte-icons-pack/bs/BsBraces' ;
1616import IoDocumentText from ' svelte-icons-pack/io/IoDocumentText' ;
17- import BiCube from ' svelte-icons-pack/bi/BiCube ' ;
17+ import HiOutlineCubeTransparent from ' svelte-icons-pack/hi/HiOutlineCubeTransparent ' ;
1818
1919export let url = ' ' ;
2020 </script >
2323<Layout >
2424<div slot =" links" class =" flex flex-col" >
2525<NavbarItem to =" /2d" >
26- <Icon color = "currentcolor" src ={AiOutlineFunction } />
26+ <Icon src ={HiOutlineFolderOpen } />
2727</NavbarItem >
2828<NavbarItem to =" /3d" >
29- <Icon color = "currentcolor" src ={BiCube } />
29+ <Icon src ={HiOutlineCubeTransparent } />
3030</NavbarItem >
3131<NavbarItem to =" /code" >
32- <Icon color = "currentcolor" src ={BsBraces } />
32+ <Icon src ={BsBraces } />
3333</NavbarItem >
3434<NavbarItem to =" /document" >
35- <Icon color = "currentcolor" src ={IoDocumentText } />
35+ <Icon src ={IoDocumentText } />
3636</NavbarItem >
3737<NavbarItem to =" /addons" >
38- <Icon color = "currentcolor" src ={AiOutlineAppstore } />
38+ <Icon src ={AiOutlineAppstore } />
3939</NavbarItem >
4040</div >
4141
Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import Icon from ' svelte-icons-pack' ;
3+
4+ export let src: string ;
5+ </script >
6+
7+ <Icon className ="icon" color ="currentcolor" {src } />
8+
9+ <style >
10+ :global(.icon * ) {
11+ stroke : inherit ;
12+ font : inherit ;
13+ }
14+ </style >
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ declare module 'svelte-icons-pack';
33declare module 'svelte-icons-pack/Icon.svelte' ;
44declare module 'svelte-icons-pack/ai/AiOutlineFunction' ;
55declare module 'svelte-icons-pack/ai/AiOutlineAppstore' ;
6+ declare module 'svelte-icons-pack/hi/HiOutlineFolderOpen' ;
7+ declare module 'svelte-icons-pack/hi/HiOutlineCubeTransparent' ;
68declare module 'svelte-icons-pack/bs/BsBraces' ;
79declare module 'svelte-icons-pack/io/IoDocumentText' ;
810declare module 'svelte-icons-pack/bi/BiCube' ;
You can’t perform that action at this time.
0 commit comments