Skip to content

Commit 8914857

Browse files
Jessica Symonsclaude
andcommitted
Apply PEEL design scheme across all pages
Unified visual language from the PEEL page: border-left accent panels, uppercase panel headers, compact typography, and consistent colour palette (#2c3e6b primary, category accents) across the main portal, study skills hub, and all five skill pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e6b5531 commit 8914857

10 files changed

Lines changed: 390 additions & 398 deletions

File tree

demo/app.js

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ const STUDENTS = {
245245
const SECTIONS = [
246246
{
247247
key: "structure", title: "Structure", icon: "\ud83c\udfd7\ufe0f",
248-
cssClass: "section-structure", skillPage: "skills/structure.html",
248+
cssClass: "sec-structure", skillPage: "skills/structure.html",
249249
subsections: [
250250
{ key: "overall", title: "Overview" },
251251
{ key: "introduction", title: "Introduction" },
@@ -254,7 +254,7 @@ const SECTIONS = [
254254
},
255255
{
256256
key: "understanding", title: "Understanding", icon: "\ud83d\udca1",
257-
cssClass: "section-understanding", skillPage: "skills/understanding.html",
257+
cssClass: "sec-understanding", skillPage: "skills/understanding.html",
258258
subsections: [
259259
{ key: "overall", title: "Overview" },
260260
{ key: "content", title: "Content Selection" },
@@ -263,15 +263,15 @@ const SECTIONS = [
263263
},
264264
{
265265
key: "argument", title: "Argument", icon: "\ud83c\udfaf",
266-
cssClass: "section-argument", skillPage: "skills/argument.html",
266+
cssClass: "sec-argument", skillPage: "skills/argument.html",
267267
subsections: [
268268
{ key: "overall", title: "Overview" },
269269
{ key: "framing", title: "Framing Your Argument" }
270270
]
271271
},
272272
{
273273
key: "writing", title: "Academic Writing Skills", icon: "\u270d\ufe0f",
274-
cssClass: "section-writing", skillPage: "skills/writing.html",
274+
cssClass: "sec-writing", skillPage: "skills/writing.html",
275275
subsections: [
276276
{ key: "overall", title: "Overview" },
277277
{ key: "conciseness", title: "Conciseness" },
@@ -281,7 +281,7 @@ const SECTIONS = [
281281
},
282282
{
283283
key: "referencing", title: "Referencing", icon: "\ud83d\udcda",
284-
cssClass: "section-referencing", skillPage: "skills/referencing.html",
284+
cssClass: "sec-referencing", skillPage: "skills/referencing.html",
285285
subsections: [
286286
{ key: "overall", title: "Overview" },
287287
{ key: "citing", title: "In-Text Citations" },
@@ -435,22 +435,23 @@ function renderDetail(assignmentId) {
435435
html += '<button class="btn-print" onclick="window.print()">\ud83d\udda8\ufe0f Print / Save PDF</button>';
436436
html += '</div>';
437437

438-
// Welcome banner with grade
439-
html += '<div class="welcome-banner">';
438+
// Welcome panel
439+
html += '<div class="welcome-panel">';
440440
html += '<div class="welcome-name">' + escapeHtml(student.name) + '</div>';
441441
html += '<div class="welcome-meta">';
442442
html += '<span>' + escapeHtml(assignment.module) + '</span>';
443443
html += '<span>' + escapeHtml(assignment.title) + '</span>';
444444
html += '</div>';
445445
html += '<div class="welcome-grade-row">';
446-
html += '<span class="welcome-grade-badge ' + welcomeGradeClass(assignment.band) + '">' + assignment.grade + '% \u2014 ' + escapeHtml(assignment.band) + '</span>';
447-
html += '<span style="font-size:13px;opacity:0.7;">' + escapeHtml(assignment.date) + '</span>';
446+
html += '<span class="welcome-grade-badge">' + assignment.grade + '% \u2014 ' + escapeHtml(assignment.band) + '</span>';
447+
html += '<span class="welcome-date">' + escapeHtml(assignment.date) + '</span>';
448448
html += '</div>';
449449
html += '</div>';
450450

451-
// Intro
452-
html += '<div class="intro-block">';
453-
html += 'We have assessed your essay and here is feedback on your current performance and how you can improve on future assignments. Each section below covers a different aspect of your work. Please read each comment carefully and use the tips to guide your development.';
451+
// Intro (PEEL panel style)
452+
html += '<div class="intro-panel">';
453+
html += '<div class="panel-hdr">About This Feedback</div>';
454+
html += '<div class="panel-body">We have assessed your essay and here is feedback on your current performance and how you can improve on future assignments. Each section below covers a different aspect of your work. Please read each comment carefully and use the tips to guide your development.</div>';
454455
html += '</div>';
455456

456457
// Feedback sections
@@ -459,10 +460,7 @@ function renderDetail(assignmentId) {
459460
if (!data) return;
460461

461462
html += '<div class="fb-section ' + section.cssClass + '">';
462-
html += '<div class="fb-section-header">';
463-
html += '<div class="fb-section-icon">' + section.icon + '</div>';
464-
html += '<div class="fb-section-title">' + escapeHtml(section.title) + '</div>';
465-
html += '</div>';
463+
html += '<div class="fb-section-hdr">' + section.icon + ' ' + escapeHtml(section.title) + '</div>';
466464
html += '<div class="fb-section-body">';
467465

468466
section.subsections.forEach(function(sub, i) {
@@ -506,7 +504,7 @@ function renderDetail(assignmentId) {
506504
var pct = Math.round((doneCount / assignment.actionPlan.length) * 100);
507505

508506
html += '<div class="action-plan">';
509-
html += '<div class="action-plan-header">\ud83c\udfaf Your Action Plan</div>';
507+
html += '<div class="action-plan-hdr">\ud83c\udfaf Your Action Plan</div>';
510508
html += '<div class="action-plan-body">';
511509
html += '<div class="action-plan-intro">Based on your feedback, here are your priority actions for your next assignment. Tick them off as you work through them.</div>';
512510

0 commit comments

Comments
 (0)