From c1e98743ff6c336830cdfcc24ecae90469d47930 Mon Sep 17 00:00:00 2001 From: tokslaw7 <147814066+tokslaw-shruboak@users.noreply.github.com> Date: Sun, 22 Jun 2025 13:54:56 -0400 Subject: [PATCH] frontend cleanup --- frontend/public/vite.svg | 1 - frontend/src/counter.js | 9 ---- frontend/src/javascript.svg | 1 - frontend/src/main.js | 24 ---------- frontend/src/style.css | 96 ------------------------------------- 5 files changed, 131 deletions(-) delete mode 100644 frontend/public/vite.svg delete mode 100644 frontend/src/counter.js delete mode 100644 frontend/src/javascript.svg delete mode 100644 frontend/src/main.js delete mode 100644 frontend/src/style.css diff --git a/frontend/public/vite.svg b/frontend/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/frontend/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/frontend/src/counter.js b/frontend/src/counter.js deleted file mode 100644 index 881e2d7..0000000 --- a/frontend/src/counter.js +++ /dev/null @@ -1,9 +0,0 @@ -export function setupCounter(element) { - let counter = 0 - const setCounter = (count) => { - counter = count - element.innerHTML = `count is ${counter}` - } - element.addEventListener('click', () => setCounter(counter + 1)) - setCounter(0) -} diff --git a/frontend/src/javascript.svg b/frontend/src/javascript.svg deleted file mode 100644 index f9abb2b..0000000 --- a/frontend/src/javascript.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/frontend/src/main.js b/frontend/src/main.js deleted file mode 100644 index 5fc3358..0000000 --- a/frontend/src/main.js +++ /dev/null @@ -1,24 +0,0 @@ -import './style.css' -import javascriptLogo from './javascript.svg' -import viteLogo from '/vite.svg' -import { setupCounter } from './counter.js' - -document.querySelector('#app').innerHTML = ` -
-` - -setupCounter(document.querySelector('#counter')) diff --git a/frontend/src/style.css b/frontend/src/style.css deleted file mode 100644 index 8df73e3..0000000 --- a/frontend/src/style.css +++ /dev/null @@ -1,96 +0,0 @@ -:root { - font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; - - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body { - margin: 0; - display: flex; - place-items: center; - min-width: 320px; - min-height: 100vh; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -.logo { - height: 6em; - padding: 1.5em; - will-change: filter; - transition: filter 300ms; -} -.logo:hover { - filter: drop-shadow(0 0 2em #646cffaa); -} -.logo.vanilla:hover { - filter: drop-shadow(0 0 2em #f7df1eaa); -} - -.card { - padding: 2em; -} - -.read-the-docs { - color: #888; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -}