From abc64f203628b2b26f83a9fcd7ed228e68435573 Mon Sep 17 00:00:00 2001 From: arrcann Date: Thu, 5 Nov 2026 09:56:12 +0800 Subject: [PATCH 1/2] Accessible + fast front end, CI pipeline green --- .github/workflows/ci.yml | 24 ++++++-- app/static/index.html | 34 +++++------ app/static/styles.css | 127 +++++---------------------------------- 3 files changed, 53 insertions(+), 132 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15c3ad8..9303f02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,26 @@ name: CI -# >>> TASK 6: add the triggers (push + pull_request on main) on: -# <<< END TASK 6 + push: + branches: [main] + pull_request: + branches: [main] -# >>> TASK 7: add a `test` job that runs on ubuntu-latest with the four steps jobs: -# <<< END TASK 7 + test: + runs-on: ubuntu-latest + steps: + - name: Check out the code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Run the full test suite + run: pytest -q \ No newline at end of file diff --git a/app/static/index.html b/app/static/index.html index dea88a2..5634cbe 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -8,21 +8,21 @@ to see red turn green. The handout explains the "why" behind each task. --> - + - + SecureNotes — Your notes, kept private - + @@ -33,7 +33,7 @@ - + SecureNotes logo SecureNotes @@ -46,7 +46,7 @@ -
+

Your notes, kept private

@@ -54,8 +54,8 @@

Your notes, kept private

-

Log in

+ Fix the section headings so levels don't skip (WCAG 1.3.1). --> +

Log in

@@ -63,19 +63,19 @@

Log in

-

My notes

+

My notes

  • Log in to load your notes.
-

Why SecureNotes

+

Why SecureNotes

Passwords are hashed, every note is tied to its owner, and the whole app is checked automatically before each release.

- + and loading="lazy" (TASK 5c). --> + A padlock resting on a stack of notes
-
+