From 0ef262b30b7758a9c8b97c466697cc2a8cccc6d3 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 4 Aug 2025 23:11:56 +1000 Subject: [PATCH] Use pico css to optimize UI --- .gitignore | 2 + internal/database/database.go | 2 +- web/index.html | 502 +++++++++++++++------------------- 3 files changed, 230 insertions(+), 276 deletions(-) diff --git a/.gitignore b/.gitignore index da6f209..cc66455 100644 --- a/.gitignore +++ b/.gitignore @@ -56,3 +56,5 @@ k8s/*-secret.yaml # Development files dev-* + +*.log diff --git a/internal/database/database.go b/internal/database/database.go index e3eea0f..c43982d 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -31,7 +31,7 @@ type Credential struct { } func New(dbPath string) (*DB, error) { - conn, err := sql.Open("sqlite3", dbPath+"?_fk=1") + conn, err := sql.Open("sqlite", dbPath+"?_fk=1") if err != nil { return nil, err } diff --git a/web/index.html b/web/index.html index aae9eff..1184732 100644 --- a/web/index.html +++ b/web/index.html @@ -1,85 +1,13 @@ - + - Passkey Auth - Admin + + Passkey Authentication + -
-
-

🔐 Passkey Auth

-

Secure Authentication

-
+
+
+
+

🔐 Passkey Authentication

+

Secure passwordless authentication

+
+ +
- -
-

Sign In

-
-
- - + +
+
+
+

Sign in to your account

+

Use your passkey for secure authentication

+
+ + + + + + + +
+ +
+
+
+ + +
+
+
+

Welcome back!

+

You're successfully authenticated

+
+ +
+ +
+ +
+
+
+ + +
+
+
+

User Management

+

Manage user accounts and permissions

+
+ + + +
+
Loading users...
- - -
- -
-
- - - - - - + + +
-
+