From 3bbf9ccd8a240cd3e708839229c2c349a39bb9f3 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Mon, 6 Oct 2025 15:58:35 +0800 Subject: [PATCH 1/4] Added keyboard event --- src/components/Input/Input.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index 8e08856..e955bf6 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -6,12 +6,13 @@ interface Props { label?: string value: string onChange: Setter + onKeyDown?: (event: KeyboardEvent) => void } export default (props: Props) => { return ( <> - + {props.label} From 721dce1622aa0615bcd1a63c4b4d2cd67b3b616a Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Mon, 6 Oct 2025 15:59:16 +0800 Subject: [PATCH 2/4] Applied keyboard event --- src/pages/LoginPage/Login.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/LoginPage/Login.tsx b/src/pages/LoginPage/Login.tsx index 3cfb38c..88bbb4f 100644 --- a/src/pages/LoginPage/Login.tsx +++ b/src/pages/LoginPage/Login.tsx @@ -6,6 +6,7 @@ import { ofetch } from 'ofetch' import { SHA1, SHA3 } from 'crypto-js' import { useNavigate } from '@solidjs/router' import { checkConnection } from '../../utils/functions' +import { _employeeId, _employeeName } from '../../stores/employee' export default () => { const API = import.meta.env.VITE_BACKEND @@ -39,6 +40,8 @@ export default () => { } if (dbpassword.result === hashPassword) { + _employeeId.set(employeeid) + _employeeName.set(name()) setLoggedin(2) } else { setLoggedin(1) @@ -84,7 +87,8 @@ export default () => { - + + {/*
*/} Login @@ -102,7 +106,13 @@ export default () => { {APPROVERNAME}

Password

- + { + if (event.key === 'Enter') login() + }} + /> @@ -129,6 +139,7 @@ export default () => { + {/*
*/}
From b77686beac33c844bea014ee7022e767fef29c96 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Mon, 6 Oct 2025 15:59:36 +0800 Subject: [PATCH 3/4] Added mobile view --- src/pages/IndexPage/Index.sass | 23 +++++++++++++ src/pages/IndexPage/Index.tsx | 62 +++++++++++++++++++++++++++------- 2 files changed, 72 insertions(+), 13 deletions(-) diff --git a/src/pages/IndexPage/Index.sass b/src/pages/IndexPage/Index.sass index e3046ea..ab1ef30 100644 --- a/src/pages/IndexPage/Index.sass +++ b/src/pages/IndexPage/Index.sass @@ -19,14 +19,37 @@ h1 align-content: flex-start gap: 0.5rem + @media only screen and (max-width: views.$tablet) + display: flex + flex-direction: row + flex-wrap: wrap + justify-content: center + align-items: center + align-content: flex-start + text-align: center + gap: 0.5rem + &__main font-size: 3.25rem margin: 0 1rem 0 0 + @media only screen and (max-width: views.$tablet) + padding: 2rem 0 0 0 + font-size: 2.25rem + margin: 0 1rem 0 0 + &__sub font-weight: 700 font-size: 2.75rem + @media only screen and (max-width: views.$tablet) + font-weight: 700 + font-size: 1.75rem + &__paragraph padding: 4rem 0 0 0 font-size: 1.25rem + + @media only screen and (max-width: views.$tablet) + padding: 3.25rem 0 0 0 + font-size: 1rem diff --git a/src/pages/IndexPage/Index.tsx b/src/pages/IndexPage/Index.tsx index d59f6e9..8e48009 100644 --- a/src/pages/IndexPage/Index.tsx +++ b/src/pages/IndexPage/Index.tsx @@ -75,25 +75,61 @@ export default () => { + + + + +

OCBO e-Sign

+ +
+

Secure e-Signature

+ for Office of the City Building Official +

A paperless and effortless solution on signing permits

+
+ + +