File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 const gridMenu = [
3030 [" Bahasa Pemograman" , " languages" ],
3131 [" Alat-alat" , " tools" ],
32+ [" Kerangka Kerja & Pustaka" , " frameworkLibrary" ],
3233 ];
34+
35+ function applyStyle (style ) {
36+ return (event ) => {
37+ event .target .style = style;
38+ };
39+ }
3340 </script >
3441
3542<Head {config } />
8390 <h2 >{menu [0 ]}</h2 >
8491 <div class =" grid gap-2 min-[375px]:grid-cols-2 sm:grid-cols-3 md:grid-cols-4" >
8592 {#each data [menu [1 ]] as { name, icon, color } (name )}
86- <div class =" group flex cursor-pointer gap-2 rounded-xl border-2 border-neutral-300 p-4 hover:scale-90" >
87- <Icon {icon } style ="color: {color }" />
88- <span class ="" >{name }</span >
93+ <!-- svelte-ignore a11y_no_static_element_interactions -- how to fix it? -->
94+ <div
95+ class =" group flex cursor-pointer gap-2 rounded-xl border-2 border-neutral-300 p-4 hover:scale-90"
96+ onmouseenter ={applyStyle (` color: ${color }; border-color: ${color }; ` )}
97+ onmouseleave ={applyStyle (` ` )}
98+ aria-label ={name }>
99+ <Icon {icon } />
100+ <span >{name }</span >
89101 </div >
90102 {/each }
91103 </div >
Original file line number Diff line number Diff line change 3535 {
3636 "name" : " Markdown" ,
3737 "icon" : " markdown" ,
38- "color" : " white "
38+ "color" : " gray "
3939 },
4040 {
4141 "name" : " HTML" ,
4242 "icon" : " html5" ,
43- "color" : " orange "
43+ "color" : " orangered "
4444 },
4545 {
4646 "name" : " CSS" ,
5959 "icon" : " nodedotjs" ,
6060 "color" : " green"
6161 },
62+ {
63+ "name" : " ESBuild" ,
64+ "icon" : " esbuild" ,
65+ "color" : " yellow"
66+ },
67+ {
68+ "name" : " RollUp" ,
69+ "icon" : " rollupdotjs" ,
70+ "color" : " red"
71+ },
6272 {
6373 "name" : " Vite" ,
6474 "icon" : " vite" ,
6575 "color" : " darkviolet"
6676 },
77+ {
78+ "name" : " ESLint" ,
79+ "icon" : " eslint" ,
80+ "color" : " darkorchid"
81+ },
82+ {
83+ "name" : " Prettier" ,
84+ "icon" : " prettier" ,
85+ "color" : " darkslategray"
86+ },
6787 {
6888 "name" : " NPM" ,
6989 "icon" : " npm" ,
7494 "icon" : " pnpm" ,
7595 "color" : " yellow"
7696 }
97+ ],
98+ "frameworkLibrary" : [
99+ {
100+ "name" : " PostCSS" ,
101+ "icon" : " postcss" ,
102+ "color" : " red"
103+ },
104+ {
105+ "name" : " Svelte" ,
106+ "icon" : " svelte" ,
107+ "color" : " orangered"
108+ },
109+ {
110+ "name" : " SvelteKit" ,
111+ "icon" : " svelte" ,
112+ "color" : " orangered"
113+ },
114+ {
115+ "name" : " SASS" ,
116+ "icon" : " sass" ,
117+ "color" : " pink"
118+ },
119+ {
120+ "name" : " Tailwind CSS" ,
121+ "icon" : " tailwindcss" ,
122+ "color" : " cyan"
123+ }
77124 ]
78125}
You can’t perform that action at this time.
0 commit comments