From 902fa2897f02f9446436d0d0d07c75f158a6758e Mon Sep 17 00:00:00 2001 From: ellenegeld-eficode Date: Thu, 4 Jun 2026 12:53:47 +0000 Subject: [PATCH] Add announcement banner with registration instructions and associated styles --- .github/prompts/code-review.prompt.md | 42 +++++++++++++++++++++++++++ src/static/index.html | 3 ++ src/static/styles.css | 8 +++++ 3 files changed, 53 insertions(+) create mode 100644 .github/prompts/code-review.prompt.md diff --git a/.github/prompts/code-review.prompt.md b/.github/prompts/code-review.prompt.md new file mode 100644 index 0000000..46e94e2 --- /dev/null +++ b/.github/prompts/code-review.prompt.md @@ -0,0 +1,42 @@ +--- +description: Perform a thorough code review +agent: ask +--- + +# Code Review + +Perform a thorough code review of the currently selected code. + +## Code to Review + +${selection} + +## Review Checklist + +### 1. Correctness +- Does the code do what it's supposed to? +- Are there any logical errors? +- Are edge cases handled? + +### 2. Security +- Is user input validated and sanitized? +- Are there SQL injection or XSS vulnerabilities? +- Is sensitive data handled properly? + +### 3. Performance +- Are there any N+1 query issues? +- Is there unnecessary computation? + +### 4. Readability +- Are names descriptive and consistent? +- Is the code self-documenting? + +## Output Format + +For each issue found, provide: +- **Severity**: 🔴 Critical / 🟡 Warning / 🔵 Suggestion +- **Line(s)**: Where the issue is +- **Issue**: What's wrong +- **Fix**: How to fix it + +End with a summary of the overall code quality. \ No newline at end of file diff --git a/src/static/index.html b/src/static/index.html index 9cad9f4..6b1f1c9 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -12,6 +12,9 @@ /> +
+ 📢 Activity registration is open until the end of the month. Don't lose your spot! +

Mergington High School

Extracurricular Activities

diff --git a/src/static/styles.css b/src/static/styles.css index 83361b1..b5e1d91 100644 --- a/src/static/styles.css +++ b/src/static/styles.css @@ -654,6 +654,14 @@ footer { font-size: 1rem; } +.announcement-banner { + background-color: rgb(84, 146, 84); + color: white; + text-align: center; + padding: 15px; + font-weight: bold; +} + #logout-button { padding: 3px 10px; background-color: rgba(255, 255, 255, 0.2);