refactor(components-widgets): remove unused code & icon

This commit is contained in:
xHyroM 2023-01-05 13:46:08 +01:00
parent ce2f45421a
commit a52dce33c8
2 changed files with 1 additions and 9 deletions

View file

@ -1,4 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 17L6 12L11 7" stroke="#B7C8CB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M18 17L13 12L18 7" stroke="#B7C8CB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 324 B

View file

@ -1,13 +1,9 @@
---
import type { MarkdownInstance } from "astro";
import leftArrow from "/icons/chevrons-left.svg";
import rightArrow from "/icons/chevrons-right.svg";
const files = await Astro.glob("../../../pages/docs/items/**/*.md");
for (let i = 0; i < 100; i++) {
files.push(files[0]);
}
const sections = files.reduce((acc, file) => {
const category: string = file.url!.split("/")[3];
@ -22,7 +18,7 @@ const sections = files.reduce((acc, file) => {
const categories = Object.keys(sections);
---
<aside aria-label="Sidebar" class="">
<aside aria-label="Sidebar">
<div class="absolute z-10 text-white md:hidden">
<button id="sidebar-show" class="p-4 pl-2">
<img src={rightArrow} alt="" id="open-arrow" class="duration-200" />