From e844613eec48cadd342d84658cf9e694c93fd27a Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Wed, 28 May 2025 22:13:54 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feature:=20Add=20page=20for=20signle?= =?UTF-8?q?=20site=20test=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/stylesheets/style.css | 15 +++++++++++++++ views/sites.ejs | 4 ++-- views/test-list.ejs | 23 +++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 views/test-list.ejs diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index e878137..88e32d6 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -7,6 +7,7 @@ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --color-blue-400: oklch(70.7% 0.165 254.624); + --color-slate-300: oklch(86.9% 0.022 252.894); --color-slate-900: oklch(20.8% 0.042 265.755); --color-gray-200: oklch(92.8% 0.006 264.531); --color-gray-400: oklch(70.7% 0.022 261.325); @@ -35,6 +36,7 @@ --color-success: oklch(64.01% 0.1751 146.7); --color-info: oklch(0.55 0.0922 211.57); --color-warning: oklch(84.42% 0.1722 84.93); + --text-18px: clamp(0.875rem, 0.9375vw, 1.9rem); --text-25px: clamp(1.125rem, 1.3021vw, 2.2rem); --h1: calc(var(--text-base) * 2.25); --h2: calc(var(--text-base) * 1.75); @@ -2324,6 +2326,9 @@ .resize { resize: both; } + .list-none { + list-style-type: none; + } .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } @@ -2417,6 +2422,9 @@ font-size: var(--text-xl); line-height: var(--tw-leading, var(--text-xl--line-height)); } + .text-18px { + font-size: var(--text-18px); + } .text-25px { font-size: var(--text-25px); } @@ -2449,6 +2457,9 @@ .text-info-content\! { color: var(--color-info-content) !important; } + .text-slate-300 { + color: var(--color-slate-300); + } .text-white { color: var(--color-white); } @@ -2498,6 +2509,10 @@ --cardtitle-fs: 1.25rem; } } + .badge-info { + --badge-color: var(--color-info); + --badge-fg: var(--color-info-content); + } .btn-info { --btn-color: var(--color-info); --btn-fg: var(--color-info-content); diff --git a/views/sites.ejs b/views/sites.ejs index e46a309..b9cb46e 100644 --- a/views/sites.ejs +++ b/views/sites.ejs @@ -5,10 +5,10 @@ <%- include('add-form'); -%> -

Your Tests

+

Tests for <%= sites[0].domain_name %>

- <%- include('domain-cards', { data: sites }); -%> + <%- include('test-list', { sites: sites }); -%>
diff --git a/views/test-list.ejs b/views/test-list.ejs new file mode 100644 index 0000000..1cac1bc --- /dev/null +++ b/views/test-list.ejs @@ -0,0 +1,23 @@ +<% +// Helper function to format date +function formatDate(dateString) { + let date = new Date(dateString); + return date.toLocaleString('en-CA', { + year: 'numeric', + month: 'long', + day: 'numeric', + hour: 'numeric', + minute: '2-digit' + }); +} +%> + +