From 8ca8e6126a26883c349614ec0e2a744f11e4c61a Mon Sep 17 00:00:00 2001 From: EricRovell Date: Sat, 2 Sep 2023 22:44:20 +0300 Subject: [PATCH 01/35] feat: remove fouc by using inline script --- src/app.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app.html b/src/app.html index 1765d73e..ed545ca3 100644 --- a/src/app.html +++ b/src/app.html @@ -8,6 +8,10 @@ %sveltekit.head% + %sveltekit.body% From 546a0e7f1afcc04640b1f353f57d1673ba182d80 Mon Sep 17 00:00:00 2001 From: EricRovell Date: Sat, 2 Sep 2023 22:45:01 +0300 Subject: [PATCH 02/35] feat(icon): remove unused, set order, new items --- src/lib/components/icons/default.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/components/icons/default.ts b/src/lib/components/icons/default.ts index d0cb0bbc..04e10ac6 100644 --- a/src/lib/components/icons/default.ts +++ b/src/lib/components/icons/default.ts @@ -1,22 +1,22 @@ +export const iconArrowTop = "M7.35,4.41A4.42,4.42,0,0,1,11.76,0h5.1a4.41,4.41,0,0,1,0,8.82h-5.1A4.41,4.41,0,0,1,7.35,4.41Zm20.4,0A4.41,4.41,0,0,1,32.16,0H42.35a4.41,4.41,0,0,1,0,8.82H32.16A4.4,4.4,0,0,1,27.75,4.41Zm25.49,0A4.41,4.41,0,0,1,57.65,0H67.84a4.41,4.41,0,0,1,0,8.82H57.65A4.4,4.4,0,0,1,53.24,4.41Zm25.49,0A4.41,4.41,0,0,1,83.14,0h5.1a4.41,4.41,0,1,1,0,8.82h-5.1A4.4,4.4,0,0,1,78.73,4.41ZM53.12,18.94a4.42,4.42,0,0,0-6.24,0L17.47,48.35a4.41,4.41,0,0,0,6.24,6.24L45.59,32.71V95.59a4.41,4.41,0,0,0,8.82,0V32.71L76.29,54.59a4.41,4.41,0,0,0,6.24-6.24Z"; export const iconCancel = "M98.56,96a1.12,1.12,0,0,1,0,1.57l-1.64,1.64a1.14,1.14,0,0,1-1.59,0L49.71,53.59,4.09,99.21a1.14,1.14,0,0,1-1.59,0L.86,97.57A1.12,1.12,0,0,1,.86,96L46.49,50.36.86,4.73a1.12,1.12,0,0,1,0-1.58h0L2.5,1.5a1.14,1.14,0,0,1,1.59,0L49.71,47.13,95.33,1.5a1.14,1.14,0,0,1,1.59,0l1.64,1.64a1.12,1.12,0,0,1,0,1.58h0L52.93,50.36Z"; +export const iconDelete = "M52.61,10.94,16.5,47.05l-.4.47A4.16,4.16,0,0,0,16.5,53L52.61,89.06l.47.4a4.16,4.16,0,0,0,5.42-.4l.4-.47a4.16,4.16,0,0,0-.4-5.43l-29-29H95.83l.57,0A4.17,4.17,0,0,0,100,50l0-.57a4.17,4.17,0,0,0-4.13-3.6H29.5l29-29,.4-.47a4.17,4.17,0,0,0-6.29-5.43L16.5,47.05ZM4.17,90.28a4.17,4.17,0,0,0,4.16-4.17V13.89a4.17,4.17,0,1,0-8.33,0V86.11A4.17,4.17,0,0,0,4.17,90.28Z"; +export const iconDownload = "M82.5,92.48a3.75,3.75,0,0,1,0,7.5l-65,0a3.75,3.75,0,0,1,0-7.5ZM49.49,0,50,0a3.75,3.75,0,0,1,3.72,3.24l0,.51V72.18l18.61-18.6a3.75,3.75,0,0,1,4.88-.37l.42.37A3.75,3.75,0,0,1,78,58.46l-.36.42-25,25a3.75,3.75,0,0,1-4.88.36l-.42-.36-25-25a3.75,3.75,0,0,1,4.88-5.67l.42.36L46.24,72.14V3.75A3.75,3.75,0,0,1,49.49,0L50,0Z"; +export const iconFullscreen = "M8.33,15.28a7,7,0,0,1,7-6.95H26.39a4.17,4.17,0,1,0,0-8.33H15.28A15.28,15.28,0,0,0,0,15.28V26.39a4.17,4.17,0,1,0,8.33,0Zm0,69.44a7,7,0,0,0,7,7H26.39a4.17,4.17,0,1,1,0,8.33H15.28A15.28,15.28,0,0,1,0,84.72V73.61a4.17,4.17,0,1,1,8.33,0ZM84.72,8.33a7,7,0,0,1,7,7V26.39a4.17,4.17,0,1,0,8.33,0V15.28A15.28,15.28,0,0,0,84.72,0H73.61a4.17,4.17,0,1,0,0,8.33Zm7,76.39a7,7,0,0,1-7,7H73.61a4.17,4.17,0,1,0,0,8.33H84.72A15.28,15.28,0,0,0,100,84.72V73.61a4.17,4.17,0,1,0-8.33,0Z"; export const iconFunction = "M52.53,9.69A9.19,9.19,0,0,0,37.9,16.46L37.07,29H51.31a3.94,3.94,0,0,1,0,7.87H36.55L33.4,84.06A17.05,17.05,0,0,1,5.16,95.76l-1-.9a3.93,3.93,0,0,1,5.18-5.92l1,.9a9.19,9.19,0,0,0,15.21-6.3l3.11-46.71H17.22a3.94,3.94,0,0,1,0-7.87h12l.86-13A17.05,17.05,0,0,1,57.21,3.37l1.95,1.45a3.93,3.93,0,1,1-4.68,6.32ZM59,56.57a3.93,3.93,0,0,0-6-1.16l-1.69,1.45a3.93,3.93,0,1,1-5.12-6l1.69-1.45A11.8,11.8,0,0,1,65.94,52.9l5.13,9.74L85.24,48.47A3.94,3.94,0,1,1,90.81,54l-15.9,15.9L83,85.27a3.93,3.93,0,0,0,6,1.16L90.71,85a3.93,3.93,0,1,1,5.12,6L94.14,92.4A11.8,11.8,0,0,1,76,88.94L69.08,75.76,51.47,93.37a3.93,3.93,0,0,1-5.56-5.56L65.25,68.47Z"; +export const iconGear = "m99.08,37.15c-.2-1.02-.84-1.9-1.74-2.41l-13.32-7.59-.05-15.01c0-1.05-.47-2.04-1.26-2.71-4.83-4.09-10.39-7.22-16.39-9.23-.96-.32-2-.23-2.88.26l-13.43,7.51L36.56.46c-.88-.49-1.93-.59-2.89-.27-6,2.02-11.55,5.17-16.37,9.26-.8.68-1.26,1.67-1.26,2.71l-.07,15.02-13.32,7.59c-.9.51-1.54,1.39-1.74,2.41-1.22,6.12-1.22,12.43,0,18.55.2,1.02.84,1.9,1.74,2.41l13.32,7.59.05,15.01c0,1.05.47,2.04,1.26,2.71,4.83,4.09,10.39,7.22,16.39,9.23.96.32,2,.23,2.88-.26l13.45-7.53,13.45,7.52c.53.3,1.13.45,1.74.45.39,0,.78-.06,1.15-.19,5.99-2.02,11.55-5.16,16.37-9.25.8-.68,1.26-1.67,1.26-2.71l.07-15.02,13.32-7.59c.9-.51,1.54-1.39,1.74-2.41,1.21-6.12,1.21-12.42-.01-18.53Zm-49.08,27.14c-9.86,0-17.86-7.99-17.86-17.86s7.99-17.86,17.86-17.86,17.86,7.99,17.86,17.86-7.99,17.86-17.86,17.86Z"; export const iconGithub = "M99,50c0,21.49,0,33.43-7.8,41.23C84.94,97.53,76,98.75,61.46,99a2.27,2.27,0,0,1-.13-.77c0-.48,0-2.17,0-4.44,0-4.58,0-11.5,0-15.4,0-4.08-1.44-6.75-3.06-8.1C68.37,69.2,78.93,65.5,78.93,48.7A16.57,16.57,0,0,0,74.28,37c.47-1.11,2-5.55-.44-11.57,0,0-3.78-1.18-12.4,4.48a44.13,44.13,0,0,0-22.59,0c-8.62-5.66-12.41-4.48-12.41-4.48C24,31.42,25.53,35.86,26,37A16.64,16.64,0,0,0,21.35,48.7c0,16.76,10.54,20.51,20.56,21.62a9.13,9.13,0,0,0-2.86,5.84c-2.58,1.12-9.12,3-13.14-3.63,0,0-2.38-4.2-6.91-4.51,0,0-4.41-.06-.32,2.65,0,0,3,1.35,5,6.4,0,0,2.65,8.5,15.2,5.87,0,3.64.06,14.25.06,15.28a2.31,2.31,0,0,1-.12.78c-14.68-.23-23.73-1.42-30.06-7.75C1,83.45,1,71.51,1,50S1,16.6,8.78,8.8,28.52,1,50,1,83.43,1,91.22,8.8,99,28.54,99,50Z"; export const iconGlobe = "M50,0A50,50,0,1,1,0,50,50,50,0,0,1,50,0ZM64.69,72.5H35.31c3.26,12.06,8.92,20,14.69,20S61.43,84.56,64.69,72.5Zm-37.14,0H13.93a42.73,42.73,0,0,0,20.47,17,55.25,55.25,0,0,1-6.35-15.08Zm58.52,0H72.46a56.91,56.91,0,0,1-6.87,17A42.69,42.69,0,0,0,85.14,73.92ZM25.47,40H8.69l0,.08A42.83,42.83,0,0,0,10.22,65H26.08A101.81,101.81,0,0,1,25,50C25,46.58,25.16,43.24,25.47,40ZM67,40H33a94.8,94.8,0,0,0-.53,10,93.32,93.32,0,0,0,1.2,15H66.31a93.32,93.32,0,0,0,1.2-15A94.8,94.8,0,0,0,67,40Zm24.34,0H74.53c.31,3.24.47,6.58.47,10a101.81,101.81,0,0,1-1.08,15H89.78A42.38,42.38,0,0,0,92.5,50,42.86,42.86,0,0,0,91.32,40ZM34.41,10.45l-.12.05a42.62,42.62,0,0,0-23,22H26.5C28.06,23.74,30.8,16.11,34.41,10.45ZM50,7.5l-.58,0C43.1,8.1,37,18.11,34.15,32.5h31.7C63,18.15,56.94,8.16,50.63,7.53Zm15.6,2.95.53.87C69.48,16.88,72,24.18,73.51,32.5H88.74A42.62,42.62,0,0,0,67.05,11.06Z"; export const iconImg = "M18.06,8.33a9.73,9.73,0,0,0-9.73,9.73v8.33a4.17,4.17,0,1,1-8.33,0V18.06A18.05,18.05,0,0,1,18.06,0h8.33a4.17,4.17,0,1,1,0,8.33Zm73.61,9.73a9.73,9.73,0,0,0-9.73-9.73H73.61a4.17,4.17,0,1,1,0-8.33h8.33A18.05,18.05,0,0,1,100,18.06v8.33a4.17,4.17,0,1,1-8.33,0Zm0,63.88a9.73,9.73,0,0,1-9.73,9.73H73.61a4.17,4.17,0,1,0,0,8.33h8.33A18.05,18.05,0,0,0,100,81.94V73.61a4.17,4.17,0,1,0-8.33,0Zm-83.34,0a9.73,9.73,0,0,0,9.73,9.73h8.33a4.17,4.17,0,1,1,0,8.33H18.06A18.05,18.05,0,0,1,0,81.94V73.61a4.17,4.17,0,1,1,8.33,0ZM29.17,16.67a12.49,12.49,0,0,0-12.5,12.5V70.83a12.49,12.49,0,0,0,12.5,12.5H70.83a12.49,12.49,0,0,0,12.5-12.5V29.17a12.49,12.49,0,0,0-12.5-12.5ZM25,29.17A4.17,4.17,0,0,1,29.17,25H70.83A4.17,4.17,0,0,1,75,29.17V70.83A4.17,4.17,0,0,1,70.83,75H29.17A4.17,4.17,0,0,1,25,70.83Z"; +export const iconMoon = "m98.8,63.15c-3.14,10.24-9.42,19.23-17.96,25.68-22.28,16.77-53.93,12.3-70.69-9.98C3.56,70.1,0,59.44,0,48.48c-.03-10.95,3.53-21.61,10.14-30.35C16.59,9.59,25.58,3.31,35.82.17c2.05-.63,4.22.52,4.85,2.57.23.74.23,1.54,0,2.29-6.83,22.6,5.95,46.47,28.55,53.3,8.07,2.44,16.68,2.44,24.75,0,2.05-.63,4.22.52,4.85,2.57.23.74.23,1.54,0,2.29l-.02-.03Z"; export const iconNpm = "M95,14a20.76,20.76,0,0,0-9-9C78.25,1,67.17,1,50,1S21.75,1,14,5a20.76,20.76,0,0,0-9,9C1,21.75,1,32.83,1,50S1,78.25,5,86a20.76,20.76,0,0,0,9,9c7.73,4,18.81,4,36,4s28.25,0,36-4a20.76,20.76,0,0,0,9-9c4-7.73,4-18.81,4-36S99,21.75,95,14ZM50,33.12v45H21.88V21.88H78.12V78.12H66.88v-45Z"; export const iconNumberE = "M68.38,16.69a3.76,3.76,0,0,0-5.45-1.23L61,16.84a3.74,3.74,0,0,1-4.35-6.09l1.92-1.38A11.23,11.23,0,0,1,74.91,13l3.34,6L88.62,8.65a3.74,3.74,0,0,1,5.29,5.29L82,25.82l4.42,7.91a3.73,3.73,0,0,0,5.62,1.08l1.82-1.47a3.74,3.74,0,0,1,4.72,5.81L96.8,40.63a11.23,11.23,0,0,1-16.88-3.25l-3.38-6.06L66.47,41.39a3.74,3.74,0,0,1-5.29-5.3L72.75,24.52ZM31.88,61.9c-7.24,1.42-15.43,1.73-23.33,1.78-1.71,6.23-1.19,10.77.33,13.91,1.7,3.5,5,5.9,9.35,7,9,2.24,21.78-1.32,30.31-11a3.74,3.74,0,0,1,5.63,4.93C44,90.11,28.37,94.83,16.41,91.85c-6.07-1.52-11.4-5.1-14.26-11s-2.93-13.36.11-22.13C6.37,46.86,12.6,39.5,18.81,34.94a39.58,39.58,0,0,1,15.57-6.85c7.76-1.59,14.51.62,18.22,5.49s3.69,11.71-.47,17.4C47.51,57.28,39.91,60.33,31.88,61.9Zm4-26.48A32,32,0,0,0,23.24,41a37.93,37.93,0,0,0-11.9,15.19,112.18,112.18,0,0,0,19.11-1.6c7.37-1.44,12.69-4,15.64-8,2.43-3.33,2.08-6.44.56-8.44S41.53,34.26,35.89,35.42Z"; +export const iconPause = "M15.28,0A9.72,9.72,0,0,0,5.56,9.72V90.28A9.72,9.72,0,0,0,15.28,100H34.72a9.72,9.72,0,0,0,9.72-9.72V9.72A9.72,9.72,0,0,0,34.72,0Zm50,0a9.72,9.72,0,0,0-9.72,9.72V90.28A9.72,9.72,0,0,0,65.28,100H84.72a9.72,9.72,0,0,0,9.72-9.72V9.72A9.72,9.72,0,0,0,84.72,0Z"; +export const iconReset = "M50,8.33A41.67,41.67,0,1,1,8.33,50a42.9,42.9,0,0,1,.45-6.15,4.24,4.24,0,0,0-4-5A4.16,4.16,0,0,0,.58,42.35,50.74,50.74,0,0,0,0,50,50,50,0,1,0,16.67,12.73V6.94a4.17,4.17,0,0,0-8.34,0V23.61a4.17,4.17,0,0,0,4.17,4.17H29.17a4.17,4.17,0,0,0,0-8.34h-7.5A41.56,41.56,0,0,1,50,8.33Z"; export const iconPi = "M0,21.07A14.87,14.87,0,0,1,14.86,6.2H96a4.06,4.06,0,0,1,0,8.11H78.38V76.22A9.45,9.45,0,0,0,91,85.12l.86-.3a4.05,4.05,0,1,1,2.73,7.63l-.86.31A17.57,17.57,0,0,1,70.27,76.22V14.31H37.81c0,1.3-.07,3-.14,5.1-.17,4.85-.52,11.64-1.2,19.41C35.11,54.29,32.37,74,26.8,90a4.06,4.06,0,0,1-7.66-2.67c5.24-15.06,7.91-33.91,9.25-49.19.67-7.6,1-14.24,1.17-19,.07-1.95.11-3.58.14-4.82H14.86a6.76,6.76,0,0,0-6.75,6.76v2.7a4.06,4.06,0,0,1-8.11,0Z"; -export const iconURL = "M91.2,8.8C83.41,1,71.47,1,50,1S16.59,1,8.8,8.8,1,28.53,1,50,1,83.41,8.8,91.2,28.53,99,50,99s33.41,0,41.2-7.8S99,71.47,99,50,99,16.59,91.2,8.8Zm-16.81,66A10.26,10.26,0,0,1,64.14,85H25.25A10.26,10.26,0,0,1,15,74.75V35.86A10.26,10.26,0,0,1,25.25,25.61H46.46a3.18,3.18,0,1,1,0,6.36H25.25a3.89,3.89,0,0,0-3.89,3.89V74.75a3.9,3.9,0,0,0,3.89,3.89H64.14A3.89,3.89,0,0,0,68,74.75V53.54a3.18,3.18,0,1,1,6.36,0ZM85,39.39a3.18,3.18,0,1,1-6.36,0V25.86L45.18,59.32a3.18,3.18,0,0,1-4.5-4.5L74.14,21.36H60.61a3.18,3.18,0,1,1,0-6.36H81.82a3.06,3.06,0,0,1,1.18.23,3,3,0,0,1,1,.69h0a3.21,3.21,0,0,1,.68,1A3.31,3.31,0,0,1,85,18.18Z"; -export const iconMasonry = "M100,38.88V94.44A5.3,5.3,0,0,1,95,100H55V38.88ZM45,72.22V100H5a5.3,5.3,0,0,1-5-5.56V72.22ZM45,0V61.11H0V5.56A5.3,5.3,0,0,1,5,0ZM95,0a5.3,5.3,0,0,1,5,5.56V27.77H55V0Z"; -export const iconGrid = "M100,55.55V94.44A5.3,5.3,0,0,1,95,100H55V55.55Zm-55,0V100H5a5.3,5.3,0,0,1-5-5.56V55.55ZM45,0V44.44H0V5.56A5.3,5.3,0,0,1,5,0ZM95,0a5.3,5.3,0,0,1,5,5.56V44.44H55V0Z"; -export const iconHome = "M7,33.09,45.84,3.89a6.93,6.93,0,0,1,8.32,0L93,33.09M11.47,43.27V85.64c0,6.55,6.19,11.86,13.83,11.86H74.7c7.64,0,13.83-5.31,13.83-11.86V43.27M63.15,97.5V63c0-5.79-3.85-10.48-8.59-10.48H45.44c-4.74,0-8.59,4.69-8.59,10.48V97.5Z"; -export const iconBook = "M4,76.13V4.55s6.2-2.1,24.47-.22C44.83,6,50,11.71,50,11.71s3-4.59,16.84-7.32C86.35.55,96,4.55,96,4.55V76.13s-14.93-.23-25,1.18a53.62,53.62,0,0,0-21,8.13s-12.44-6.85-21.95-8.6C12.16,73.91,4,76.13,4,76.13ZM4,88s8.16-2.22,24.05.71c9.51,1.75,22,8.6,22,8.6a53,53,0,0,1,11.47-5.72m18.27-3.23C88,87.84,96,88,96,88M66.84,16.23C53,19,50,23.54,50,23.54s-5.17-5.69-21.53-7.37M50,34.71V85.44m0-74.57V21.46"; +export const iconPlay = "M3.05,12.55a12.53,12.53,0,0,1,18.52-11L90.41,39a12.53,12.53,0,0,1,0,22L21.57,98.46a12.53,12.53,0,0,1-18.52-11Z"; export const iconRSS = "M91.22,8.8C83.43,1,71.48,1,50,1S16.56,1,8.78,8.8,1,28.49,1,50,1,83.45,8.76,91.25c6.33,6.33,15.38,7.52,30.06,7.75H61.46C76,98.75,84.94,97.53,91.2,91.23,99,83.43,99,71.49,99,50S99,16.6,91.22,8.8ZM25.62,82.5a8.13,8.13,0,1,1,8.13-8.12A8.13,8.13,0,0,1,25.62,82.5Zm35.21-3.61A3.73,3.73,0,0,1,57,82.5h-.49a4,4,0,0,1-3.81-4.06A31.15,31.15,0,0,0,21.56,47.29a4,4,0,0,1-4.06-3.81V43a3.73,3.73,0,0,1,3.61-3.82h.45A39.27,39.27,0,0,1,60.83,78.44Zm21.67-.17a3.85,3.85,0,0,1-3.92,3.78h-.29a4,4,0,0,1-3.91-4.06A52.82,52.82,0,0,0,21.56,25.62a4,4,0,0,1-4.06-3.91v-.29a3.85,3.85,0,0,1,3.78-3.92h.28A60.94,60.94,0,0,1,82.5,78.44Z"; -export const iconDownload = "M82.5,92.48a3.75,3.75,0,0,1,0,7.5l-65,0a3.75,3.75,0,0,1,0-7.5ZM49.49,0,50,0a3.75,3.75,0,0,1,3.72,3.24l0,.51V72.18l18.61-18.6a3.75,3.75,0,0,1,4.88-.37l.42.37A3.75,3.75,0,0,1,78,58.46l-.36.42-25,25a3.75,3.75,0,0,1-4.88.36l-.42-.36-25-25a3.75,3.75,0,0,1,4.88-5.67l.42.36L46.24,72.14V3.75A3.75,3.75,0,0,1,49.49,0L50,0Z"; -export const iconFullscreen = "M8.33,15.28a7,7,0,0,1,7-6.95H26.39a4.17,4.17,0,1,0,0-8.33H15.28A15.28,15.28,0,0,0,0,15.28V26.39a4.17,4.17,0,1,0,8.33,0Zm0,69.44a7,7,0,0,0,7,7H26.39a4.17,4.17,0,1,1,0,8.33H15.28A15.28,15.28,0,0,1,0,84.72V73.61a4.17,4.17,0,1,1,8.33,0ZM84.72,8.33a7,7,0,0,1,7,7V26.39a4.17,4.17,0,1,0,8.33,0V15.28A15.28,15.28,0,0,0,84.72,0H73.61a4.17,4.17,0,1,0,0,8.33Zm7,76.39a7,7,0,0,1-7,7H73.61a4.17,4.17,0,1,0,0,8.33H84.72A15.28,15.28,0,0,0,100,84.72V73.61a4.17,4.17,0,1,0-8.33,0Z"; export const iconShare = "M77.62,0A18.43,18.43,0,1,1,64,30.79L40,44.49a18.7,18.7,0,0,1,0,11L64,69.22A18.39,18.39,0,1,1,60,76.07l-24-13.71a18.44,18.44,0,1,1,0-24.72L60,23.93A18.43,18.43,0,0,1,77.62,0Zm0,71A10.54,10.54,0,1,0,88.16,81.57,10.53,10.53,0,0,0,77.62,71ZM22.38,39.47A10.53,10.53,0,1,0,32.91,50,10.53,10.53,0,0,0,22.38,39.47ZM77.62,7.89A10.54,10.54,0,1,0,88.16,18.43,10.53,10.53,0,0,0,77.62,7.89Z"; -export const iconArrowTop = "M7.35,4.41A4.42,4.42,0,0,1,11.76,0h5.1a4.41,4.41,0,0,1,0,8.82h-5.1A4.41,4.41,0,0,1,7.35,4.41Zm20.4,0A4.41,4.41,0,0,1,32.16,0H42.35a4.41,4.41,0,0,1,0,8.82H32.16A4.4,4.4,0,0,1,27.75,4.41Zm25.49,0A4.41,4.41,0,0,1,57.65,0H67.84a4.41,4.41,0,0,1,0,8.82H57.65A4.4,4.4,0,0,1,53.24,4.41Zm25.49,0A4.41,4.41,0,0,1,83.14,0h5.1a4.41,4.41,0,1,1,0,8.82h-5.1A4.4,4.4,0,0,1,78.73,4.41ZM53.12,18.94a4.42,4.42,0,0,0-6.24,0L17.47,48.35a4.41,4.41,0,0,0,6.24,6.24L45.59,32.71V95.59a4.41,4.41,0,0,0,8.82,0V32.71L76.29,54.59a4.41,4.41,0,0,0,6.24-6.24Z"; -export const iconDelete = "M52.61,10.94,16.5,47.05l-.4.47A4.16,4.16,0,0,0,16.5,53L52.61,89.06l.47.4a4.16,4.16,0,0,0,5.42-.4l.4-.47a4.16,4.16,0,0,0-.4-5.43l-29-29H95.83l.57,0A4.17,4.17,0,0,0,100,50l0-.57a4.17,4.17,0,0,0-4.13-3.6H29.5l29-29,.4-.47a4.17,4.17,0,0,0-6.29-5.43L16.5,47.05ZM4.17,90.28a4.17,4.17,0,0,0,4.16-4.17V13.89a4.17,4.17,0,1,0-8.33,0V86.11A4.17,4.17,0,0,0,4.17,90.28Z"; -export const iconPause = "M15.28,0A9.72,9.72,0,0,0,5.56,9.72V90.28A9.72,9.72,0,0,0,15.28,100H34.72a9.72,9.72,0,0,0,9.72-9.72V9.72A9.72,9.72,0,0,0,34.72,0Zm50,0a9.72,9.72,0,0,0-9.72,9.72V90.28A9.72,9.72,0,0,0,65.28,100H84.72a9.72,9.72,0,0,0,9.72-9.72V9.72A9.72,9.72,0,0,0,84.72,0Z"; -export const iconPlay = "M3.05,12.55a12.53,12.53,0,0,1,18.52-11L90.41,39a12.53,12.53,0,0,1,0,22L21.57,98.46a12.53,12.53,0,0,1-18.52-11Z"; -export const iconReset = "M50,8.33A41.67,41.67,0,1,1,8.33,50a42.9,42.9,0,0,1,.45-6.15,4.24,4.24,0,0,0-4-5A4.16,4.16,0,0,0,.58,42.35,50.74,50.74,0,0,0,0,50,50,50,0,1,0,16.67,12.73V6.94a4.17,4.17,0,0,0-8.34,0V23.61a4.17,4.17,0,0,0,4.17,4.17H29.17a4.17,4.17,0,0,0,0-8.34h-7.5A41.56,41.56,0,0,1,50,8.33Z"; +export const iconSun = "m45.69,7.62v-3.81c0-2.1,1.7-3.81,3.81-3.81s3.81,1.7,3.81,3.81v3.81c0,2.1-1.7,3.81-3.81,3.81s-3.81-1.7-3.81-3.81Zm3.81,11.42c-16.82,0-30.46,13.64-30.46,30.46s13.64,30.46,30.46,30.46,30.46-13.64,30.46-30.46c-.02-16.82-13.65-30.44-30.46-30.46Zm-33.16,2.69c1.49,1.49,3.9,1.49,5.39,0s1.49-3.9,0-5.39l-3.81-3.81c-1.49-1.49-3.9-1.49-5.39,0-1.49,1.49-1.49,3.9,0,5.39h0l3.81,3.81Zm0,55.54l-3.81,3.81c-1.49,1.49-1.49,3.9,0,5.39s3.9,1.49,5.39,0l3.81-3.81c1.49-1.49,1.49-3.9,0-5.39-1.49-1.49-3.9-1.49-5.39,0Zm63.62-54.42c1.01,0,1.98-.4,2.69-1.11l3.81-3.81c1.49-1.49,1.49-3.9,0-5.39s-3.9-1.49-5.39,0h0l-3.81,3.81c-1.49,1.49-1.49,3.9,0,5.38.71.72,1.69,1.12,2.7,1.12Zm2.69,54.42c-1.49-1.49-3.9-1.49-5.39,0s-1.49,3.9,0,5.39l3.81,3.81c1.49,1.49,3.9,1.49,5.39,0s1.49-3.9,0-5.39h0l-3.81-3.81ZM7.62,45.69h-3.81c-2.1,0-3.81,1.7-3.81,3.81s1.7,3.81,3.81,3.81h3.81c2.1,0,3.81-1.7,3.81-3.81s-1.7-3.81-3.81-3.81Zm41.88,41.88c-2.1,0-3.81,1.7-3.81,3.81v3.81c0,2.1,1.7,3.81,3.81,3.81s3.81-1.7,3.81-3.81v-3.81c0-2.1-1.7-3.81-3.81-3.81Zm45.69-41.88h-3.81c-2.1,0-3.81,1.7-3.81,3.81s1.7,3.81,3.81,3.81h3.81c2.1,0,3.81-1.7,3.81-3.81s-1.7-3.81-3.81-3.81Z"; +export const iconSunset = "m99,52.8c0,1.82-1.48,3.3-3.3,3.3H3.3c-1.82,0-3.3-1.48-3.3-3.3s1.48-3.3,3.3-3.3h16.69c-.12-1.1-.18-2.2-.19-3.3,0-16.4,13.3-29.7,29.7-29.7s29.7,13.3,29.7,29.7c0,1.1-.06,2.2-.19,3.3h16.69c1.82,0,3.3,1.48,3.3,3.3Zm-16.5,13.2H16.5c-1.82,0-3.3,1.48-3.3,3.3s1.48,3.3,3.3,3.3h66c1.82,0,3.3-1.48,3.3-3.3s-1.48-3.3-3.3-3.3ZM30.05,11.38c.82,1.63,2.8,2.29,4.43,1.48,1.63-.82,2.29-2.8,1.48-4.43l-3.3-6.6c-.82-1.63-2.8-2.29-4.43-1.48-1.63.82-2.29,2.8-1.48,4.43l3.3,6.6ZM5.12,29.36l6.6,3.3c1.63.82,3.61.16,4.43-1.47.82-1.63.16-3.61-1.47-4.43l-6.6-3.3c-1.63-.82-3.61-.16-4.43,1.47-.82,1.63-.16,3.61,1.47,4.43Zm80.68,3.65c.51,0,1.02-.12,1.47-.35l6.6-3.3c1.63-.82,2.29-2.8,1.47-4.43-.82-1.63-2.8-2.29-4.43-1.47l-6.6,3.3c-1.63.82-2.29,2.8-1.47,4.43.56,1.12,1.7,1.82,2.95,1.82Zm-21.28-20.15c1.63.82,3.61.16,4.43-1.47,0,0,0,0,0,0l3.3-6.6c.82-1.63.15-3.61-1.48-4.43-1.63-.82-3.61-.15-4.43,1.48h0l-3.3,6.6c-.82,1.63-.16,3.61,1.47,4.43,0,0,0,0,0,0Z"; +export const iconURL = "M91.2,8.8C83.41,1,71.47,1,50,1S16.59,1,8.8,8.8,1,28.53,1,50,1,83.41,8.8,91.2,28.53,99,50,99s33.41,0,41.2-7.8S99,71.47,99,50,99,16.59,91.2,8.8Zm-16.81,66A10.26,10.26,0,0,1,64.14,85H25.25A10.26,10.26,0,0,1,15,74.75V35.86A10.26,10.26,0,0,1,25.25,25.61H46.46a3.18,3.18,0,1,1,0,6.36H25.25a3.89,3.89,0,0,0-3.89,3.89V74.75a3.9,3.9,0,0,0,3.89,3.89H64.14A3.89,3.89,0,0,0,68,74.75V53.54a3.18,3.18,0,1,1,6.36,0ZM85,39.39a3.18,3.18,0,1,1-6.36,0V25.86L45.18,59.32a3.18,3.18,0,0,1-4.5-4.5L74.14,21.36H60.61a3.18,3.18,0,1,1,0-6.36H81.82a3.06,3.06,0,0,1,1.18.23,3,3,0,0,1,1,.69h0a3.21,3.21,0,0,1,.68,1A3.31,3.31,0,0,1,85,18.18Z"; From 13fc45549c0bdad349490924897affd41ecf3195 Mon Sep 17 00:00:00 2001 From: EricRovell Date: Sat, 2 Sep 2023 22:46:14 +0300 Subject: [PATCH 03/35] refactor: move footer to views --- src/lib/components/Footer.svelte | 161 ------------------ src/lib/components/nav-locale/index.ts | 1 - .../nav-locale/nav-locale.module.css | 24 --- .../footer/footer.locale.svelte} | 16 +- src/lib/views/footer/footer.module.css | 110 ++++++++++++ src/lib/views/footer/footer.svelte | 73 ++++++++ 6 files changed, 191 insertions(+), 194 deletions(-) delete mode 100644 src/lib/components/Footer.svelte delete mode 100644 src/lib/components/nav-locale/index.ts delete mode 100644 src/lib/components/nav-locale/nav-locale.module.css rename src/lib/{components/nav-locale/NavLocale.svelte => views/footer/footer.locale.svelte} (52%) create mode 100644 src/lib/views/footer/footer.module.css create mode 100644 src/lib/views/footer/footer.svelte diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte deleted file mode 100644 index 92190ff9..00000000 --- a/src/lib/components/Footer.svelte +++ /dev/null @@ -1,161 +0,0 @@ - - -
-
- - -
-

- - © , Eric/Rovell - - {$t("message.build-at")} -

-
- {$t("dict.language")}: - -
-
-
-
- - diff --git a/src/lib/components/nav-locale/index.ts b/src/lib/components/nav-locale/index.ts deleted file mode 100644 index 1b19fbd7..00000000 --- a/src/lib/components/nav-locale/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as NavLocale } from "./NavLocale.svelte"; \ No newline at end of file diff --git a/src/lib/components/nav-locale/nav-locale.module.css b/src/lib/components/nav-locale/nav-locale.module.css deleted file mode 100644 index 54075c71..00000000 --- a/src/lib/components/nav-locale/nav-locale.module.css +++ /dev/null @@ -1,24 +0,0 @@ -.nav { - display: grid; - grid-template: 1fr / 1fr 1fr; - height: 100%; - border: 2px solid var(--color-border); - border-radius: var(--radius-s); - font-size: inherit; - text-transform: capitalize; -} - -.nav > a { - display: flex; - justify-content: center; - align-items: center; - padding: var(--space-1-rel); -} - -.nav > a:hover { - outline: 3px solid var(--color-border); -} - -.nav > a[aria-current] { - background-color: var(--surface-3); -} diff --git a/src/lib/components/nav-locale/NavLocale.svelte b/src/lib/views/footer/footer.locale.svelte similarity index 52% rename from src/lib/components/nav-locale/NavLocale.svelte rename to src/lib/views/footer/footer.locale.svelte index 2db3b3b0..b1cfdc93 100644 --- a/src/lib/components/nav-locale/NavLocale.svelte +++ b/src/lib/views/footer/footer.locale.svelte @@ -1,8 +1,8 @@