From f1794ac41dfd9b2aa33e78ea30ce57a9ba22fcbe Mon Sep 17 00:00:00 2001 From: sounmind Date: Sat, 15 Jun 2024 00:57:18 -0400 Subject: [PATCH] chore: remove unused component --- components/divider/divider.css | 10 ---------- components/divider/divider.js | 17 ----------------- main.js | 4 +--- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 components/divider/divider.css delete mode 100644 components/divider/divider.js diff --git a/components/divider/divider.css b/components/divider/divider.css deleted file mode 100644 index 9370d7b..0000000 --- a/components/divider/divider.css +++ /dev/null @@ -1,10 +0,0 @@ -.divider { - margin: 24px 0; -} - -.divider hr { - background-color: #e1e4e8; - border: 0; - height: 0.25em; - padding: 0; -} diff --git a/components/divider/divider.js b/components/divider/divider.js deleted file mode 100644 index ebf3480..0000000 --- a/components/divider/divider.js +++ /dev/null @@ -1,17 +0,0 @@ -const template = document.createElement("template"); -template.innerHTML = ` - -
-
-
-`; - -class DividerComponent extends HTMLElement { - constructor() { - super(); - const shadow = this.attachShadow({ mode: "open" }); - shadow.appendChild(template.content.cloneNode(true)); - } -} - -customElements.define("divider-component", DividerComponent); diff --git a/main.js b/main.js index ea39064..351112f 100644 --- a/main.js +++ b/main.js @@ -1,8 +1,6 @@ -import "./components/divider/divider.js"; import "./components/footer-link/footer-link.js"; -import "./components/header.js" +import "./components/header.js"; import "./components/hero/hero.js"; import "./components/link-button/link-button.js"; import "./components/review-item/review-item.js"; import "./components/seo-meta-tag/seo-meta-tag.js"; -