From 789f91ecebc355bed391c2d096a821159576f9ca Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Sat, 14 Oct 2023 15:10:56 -0600 Subject: [PATCH] feat: added base login frontend JS --- frontend/login.mts | 4 ++++ views/login.pug | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 frontend/login.mts diff --git a/frontend/login.mts b/frontend/login.mts new file mode 100644 index 0000000..9138bed --- /dev/null +++ b/frontend/login.mts @@ -0,0 +1,4 @@ +import { SlInput, SlButton } from '@shoelace-style/shoelace'; + +// * Wait for the document to be ready +document.addEventListener('DOMContentLoaded', () => console.log('Login page')); \ No newline at end of file diff --git a/views/login.pug b/views/login.pug index 54a2bf1..4d621a4 100644 --- a/views/login.pug +++ b/views/login.pug @@ -8,4 +8,4 @@ block content h3 Password sl-input#login-password(type='password' placeholder='password' clearable): sl-icon(slot='prefix' name='fas-lock' library='fa') sl-button.mt-4#login-submit(type='primary' submit) Login - //- script(src='/setup/login.js') \ No newline at end of file + script(src='/login/ui.js') \ No newline at end of file