From 2d6378c1edf6d6d2be909eed0ea19fcb03d65593 Mon Sep 17 00:00:00 2001 From: Alvin-Zilverstand Date: Tue, 10 Nov 2026 14:19:34 +0100 Subject: [PATCH] m --- README.md | 4 ++-- app.js | 18 +++++++++-------- docs/codebase-index.md | 6 +++--- docs/content-editing.md | 2 +- docs/verification.md | 13 ++++++++++++- styles.css | 43 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 71 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 7fd54d4..6b3ea70 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ An evidence item looks like this: } ``` -Use `"directory": true` for a folder. Paths are relative to the school repository by default; a project can specify its own pinned GitHub or Gitea repository. Keep project `id` values stable to preserve links. Use exactly three `nodes` for the system diagram. Project numbers and challenge numbers are strings. +Use `"directory": true` for a folder. Paths are relative to the school repository by default; a project can specify its own pinned GitHub or Gitea repository. Keep project `id` values stable to preserve links. Use exactly three `nodes` for the schematic structure line in project dossiers. Project numbers and challenge numbers are strings. See [the content reference](docs/content-editing.md) for every field, validation limits and how project tags differ from evidence mappings. @@ -63,7 +63,7 @@ https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420 English process names are informal translations. The qualification review date remains 9 November 2026. The separate repository review on 10 November 2026 selected six additional projects and checked pinned source paths; it did not reassess the qualification. -Direct contact details, a CV, screenshots, assessed outcomes and personal reflections were not supplied, so the site does not invent them. Add these as real material becomes available. Project diagrams illustrate structure; they are not screenshots of running applications. +Direct contact details, a CV, screenshots, assessed outcomes and personal reflections were not supplied, so the site does not invent them. Add these as real material becomes available. The structure line in each dossier is schematic, not a screenshot of a running application. ## Host on Proxmox with Docker diff --git a/app.js b/app.js index 5fa5864..cc39b8b 100644 --- a/app.js +++ b/app.js @@ -24,26 +24,28 @@ function header() { })); } function footer() { - document.querySelector('footer').innerHTML = `
AZ / PORTFOLIO

Alvin Zilverstand · VISTA college, Heerlen

${tx(['In ontwikkeling','Work in progress'])} / 2026`; + document.querySelector('footer').innerHTML = `

Alvin Zilverstand · VISTA college, Heerlen

`; } function system(p, large = false) { return ``; } function projectRow(p) { - return `
/${esc(p.number)}

${p.challenge === '—' ? tx(['PERSOONLIJK PROJECT','PERSONAL PROJECT']) : `CHALLENGE ${esc(p.challenge)}`} · ${tx(p.kind)}

${go(`project/${p.id}`,tx(p.name))}

${tx(p.intro)}

${p.stack.map(badge).join('')}
${go(`project/${p.id}`,`${tx(['Bekijk project','Explore project'])}`,'row-link')}
`; + return `

${tx(p.setting || ['Schoolproject · leerjaar 2','School project · year 2'])} · ${tx(p.kind)}

${go(`project/${p.id}`,tx(p.name))}

${tx(p.intro)}

${esc(p.stack.slice(0,2).join(' · '))}${go(`project/${p.id}`,`${tx(['Lees het project','Read the project'])} `,'row-link')}
`; } function home() { - const p = projects[0]; - return `

${tx(['Van idee','From idea'])}
${tx(['naar iets','to something'])}
${tx(['dat werkt.','that works.'])}

${tx(['Ik ben Alvin. Derdejaars Software Developer bij VISTA college in Heerlen. Hier laat ik zien wat ik bouw, hoe het in elkaar zit en wat ik nog leer.','I’m Alvin, a third-year Software Developer student at VISTA college in Heerlen. This is what I build, how it fits together, and what I’m still learning.'])}

${go('work',`${tx(['Ontdek mijn werk','Explore my work'])} `,'button primary')}${go('evidence',tx(['Naar de bewijsindex','View the evidence index']),'text-link')}
FIELDNOTES / 0012024—2026
${p ? system(p,true) : ''}${p ? `
${esc(p.number)} /
${tx(p.name)}

${tx(p.kind)}

${go(`project/${p.id}`, '' + tx(p.name) + '↗','circle-link')}
` : ''}
${tx(['NU','NOW'])}VISTA college · Heerlen${tx(['Leerjaar 3','Year 3'])}
-

01 / ${tx(['SELECTIE','SELECTED'])}

${tx(['Werk met een verhaal.','Work with a story.'])}

${String(projects.length).padStart(2, '0')} ${tx(['PROJECTEN','PROJECTS'])}
${projects.length ? projects.map(projectRow).join('') : emptyProjects()}
-

02 / ${tx(['VAN PROJECT NAAR BEWIJS','FROM PROJECT TO EVIDENCE'])}

${tx(['De code is het begin.','The code is the starting point.'])}

${tx(['Een project vertelt meer met de keuzes, documenten en tests ernaast. De bewijsindex verbindt die onderdelen met de acht beroepsspecifieke SBB-werkprocessen.','A project says more with its decisions, documents, and tests alongside it. The evidence index connects those artifacts to the eight vocational SBB work processes.'])}

${go('evidence',`${tx(['Open bewijsindex','Open evidence index'])} ↗`,'text-link')}
`; + const featured = projects.find(p => p.id === 'warehouse') || projects[0]; + const selected = ['narrowcasting','clipforge'].map(id => projects.find(p => p.id === id)).filter(Boolean).filter(p => p !== featured); + return `

Alvin Zilverstand · Software Developer

${tx(['Ik bouw software die een concreet probleem oplost.','I build software around real problems.'])}

${tx(['Van een magazijnapp voor school tot een eigen tool voor gameclips: ik werk aan webapplicaties, systemen en kleine hulpmiddelen. Hier kun je per project lezen wat de opdracht was, hoe het is opgebouwd en welke bronnen beschikbaar zijn.','From a school warehouse application to my own game clip tool, I work on web applications, systems, and small utilities. Each project shows the problem, how it was built, and the sources you can inspect.'])}

${go('work',`${tx(['Bekijk alle projecten','Browse all projects'])} `,'text-link')}
+ ${featured ? `

${tx(['Uitgelicht project','Featured project'])}

${go(`project/${featured.id}`,tx(featured.name))}

${tx(featured.intro)}

${go(`project/${featured.id}`,`${tx(['Lees het dossier','Read the project file'])} `,'text-link')}
${tx(['Waarom dit project','Why this project'])}

${tx(['De repository volgt het werk van klantgesprekken en requirements tot de applicatie en database. Daardoor is niet alleen het eindresultaat te bekijken, maar ook het traject ernaartoe.','The repository follows the work from client conversations and requirements through to the application and database. You can inspect the route to the result as well as the code.'])}

` : ''} +

${tx(['Nog twee kanten van mijn werk','Two other sides of my work'])}

${selected.length ? selected.map(projectRow).join('') : emptyProjects()}

${go('work',`${tx(['Volledig archief: alle projecten','Complete archive: all projects'])} `,'text-link')}

+

${tx(['Bronnen voor mijn examen','Sources for my exam'])}

${tx(['Naast de projecten houd ik een voorlopige index bij van bronnen per werkproces. De koppelingen zijn nog geen beoordeling.','Alongside the projects, I keep a provisional index of sources by work process. These mappings are not an assessment.'])}

${go('evidence',`${tx(['Bekijk de bewijsindex','View the evidence index'])} `,'text-link')}
`; } function emptyProjects() { return `

${tx(['Nog geen projecten toegevoegd.','No projects added yet.'])}

`; } function work() { - return `

01 / ${tx(['PROJECTARCHIEF','PROJECT ARCHIVE'])}

${tx(['Gebouwd. Onderzocht.','Built. Explored.'])}
${tx(['Verder geleerd.','Still learning.'])}

${tx(['Schoolprojecten en persoonlijke experimenten, bekeken vanuit het probleem, de uitvoering en de beschikbare bronnen. De broncode blijft één klik verder.','School projects and personal experiments, through their problems, implementation, and available sources. The source code is always one click away.'])}

${projects.length ? projects.map(p=>`
${system(p)}${projectRow(p)}
`).join('') : emptyProjects()}
`; + return `

${tx(['Alle projecten','All projects'])}

${tx(['Projectarchief','Project archive'])}

${tx(['School- en persoonlijke projecten. Open een dossier voor de opdracht, technische opbouw en concrete bronbestanden.','School and personal projects. Open a project file for the problem, implementation, and specific source files.'])}

${projects.length ? projects.map(projectRow).join('') : emptyProjects()}
`; } function detail(p) { - return `
${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}

PROJECT ${esc(p.number)} / ${p.challenge === '—' ? tx(['PERSOONLIJK PROJECT','PERSONAL PROJECT']) : `CHALLENGE ${esc(p.challenge)}`}

${tx(p.name)}.

${tx(p.intro)}

${p.stack.map(badge).join('')}
${system(p,true)}
${[[['De opdracht','The assignment'],p.context],[['Hoe het is opgebouwd','How it is built'],p.implementation],[['Keuzes & aandachtspunten','Decisions & considerations'],p.decisions]].map(([title,body],i)=>`

0${i+1}

${tx(title)}

${tx(body)}

`).join('')}

04

${tx(['Bronnen & bewijs','Sources & evidence'])}

${tx(['Dit zijn gevonden bronnen, geen goedgekeurde examenbewijzen. Documentinhoud en testresultaten moeten nog worden gecontroleerd.','These are located sources, not approved exam evidence. Document contents and test results still need review.'])}

05 / ${tx(['PERSOONLIJKE REFLECTIE','PERSONAL REFLECTION'])}

${tx(['Het verhaal achter mijn bijdrage.','The story behind my contribution.'])}

${tx(['Nog aan te vullen door Alvin: welke onderdelen heb ik zelf gemaakt, met wie werkte ik samen, welke feedback kreeg ik en wat zou ik anders doen?','To be completed by Alvin: which parts did I build myself, who did I work with, what feedback did I receive, and what would I do differently?'])}

${p.codes.map(c=>go(`evidence/${c}`,esc(c),'tag')).join('')}
`; + return `
${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}

${tx(p.setting || ['Schoolproject · leerjaar 2','School project · year 2'])} · ${tx(p.kind)}

${tx(p.name)}

${tx(p.intro)}

${ext(source(p.path,true,p),tx(['Open repository','Open repository']),'text-link')}${esc(p.stack.join(' · '))}

${tx(['De opdracht','The assignment'])}

${tx(p.context)}

${tx(['Hoe het is opgebouwd','How it is built'])}

${tx(p.implementation)}

${p.nodes.length === 3 ? `

${tx(['Schematische opbouw','Schematic structure'])}

    ${p.nodes.map(node=>`
  1. ${esc(node)}
  2. `).join('')}
` : ''}

${tx(['Bronbestanden','Source files'])}

${tx(['Deze links verwijzen naar gevonden bestanden en mappen. Ze zijn geen goedgekeurd examenbewijs; inhoud, eigen bijdrage en resultaten moeten nog worden gecontroleerd.','These links point to located files and folders. They are not approved exam evidence; contents, personal contribution, and results still need review.'])}

${tx(['Keuzes en aandachtspunten','Decisions and considerations'])}

${tx(p.decisions)}

${tx(['Eigen bijdrage en reflectie','My contribution and reflection'])}

${tx(['Nog aan te vullen door Alvin: welke onderdelen heb ik zelf gemaakt, met wie werkte ik samen, welke feedback kreeg ik en wat zou ik anders doen?','To be completed by Alvin: which parts did I build myself, who did I work with, what feedback did I receive, and what would I do differently?'])}

`; } function evidence(filter = '') { const selected = processes.some(p=>p.code === filter) ? filter : ''; diff --git a/docs/codebase-index.md b/docs/codebase-index.md index 7220b1a..8b72ac3 100644 --- a/docs/codebase-index.md +++ b/docs/codebase-index.md @@ -10,7 +10,7 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri | `content/settings.json` | Profile links, pinned source revision, eight process definitions | | `content.js` | Generated browser module; do not edit directly | | `app.js` | DOM rendering, translations, navigation, evidence filtering and printing | -| `styles.css` | Desktop/mobile layouts, project diagrams, accessibility and print styles | +| `styles.css` | Desktop/mobile editorial layouts, accessibility and print styles | | `index.html`, `favicon.svg` | Document shell, metadata and icon | | `scripts/content.mjs` | Validate content, generate module, scaffold a project | | `scripts/serve.mjs` | Loopback-only static preview; compiles content when requested | @@ -32,11 +32,11 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri Routes: `#home`, `#work`, `#project/`, `#evidence`, `#evidence/`, `#about`. Empty hash opens home. Unknown page/project routes render an in-page 404; an unknown evidence code falls back to all processes. Language is English only for `?lang=en`, otherwise Dutch. Switching language updates the query without losing the route. -`header` and `footer` render shared navigation. `home` and `work` render project lists; `detail` renders a dossier. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries. +`header` and `footer` render shared navigation. `home` shows one featured project and two selected projects; `work` renders the complete compact archive; `detail` renders a dossier with source links and a schematic structure line. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries. The compiler reads JSON files directly inside `content/projects/`, sorts by `number` using numeric-aware comparison, validates project fields and emits exports. The first project is featured and the homepage count is derived from the array; an empty portfolio is supported. The preview generates content in memory on request. Content, test and build commands regenerate the tracked module on disk. -Project IDs are stable route identifiers. Evidence paths default to `profile.school` at the pinned `revision`. An optional project `repository` overrides the base, commit and forge; `source(path, directory, project)` constructs GitHub or Gitea URLs. An optional bilingual `setting` describes school year or personal-project context. Text pairs are `[Dutch, English]`. The existing design uses exactly three diagram nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`. +Project IDs are stable route identifiers. Evidence paths default to `profile.school` at the pinned `revision`. An optional project `repository` overrides the base, commit and forge; `source(path, directory, project)` constructs GitHub or Gitea URLs. An optional bilingual `setting` describes school year or personal-project context. Text pairs are `[Dutch, English]`. The schematic structure line uses exactly three nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`. `tests/content.test.mjs` checks translations, mappings, pinned URL construction and the currently missing collaboration evidence. `tests/editor.test.mjs` checks compilation, empty collections, invalid inputs and homepage rendering with the featured project or all projects removed. Its DOM stub does not test real layout or browser interactions. diff --git a/docs/content-editing.md b/docs/content-editing.md index c72629b..47e59d8 100644 --- a/docs/content-editing.md +++ b/docs/content-editing.md @@ -20,7 +20,7 @@ Delete a project's JSON file to remove it. Remove entries from its `evidence` ar | `challenge` | Nonempty string, including combined labels such as `14 + 15`; use `—` for personal projects | | `kind`, `title`, `name`, `intro`, `context`, `implementation`, `decisions` | Two nonempty strings in `[Dutch, English]` order. `title` is required by validation but not currently rendered | | `stack` | Nonempty array of nonempty strings; technology badges | -| `nodes` | Exactly three nonempty strings; shared diagram labels in both languages | +| `nodes` | Exactly three nonempty strings; schematic structure labels shown near the implementation explanation | | `path` | Repository-relative project directory path, without a leading slash or `.` / `..` segments. An empty string links to the root only when `repository` is supplied | | `repository` | Optional object: `url` (HTTPS repository URL on github.com or codealvin.xyz), `revision` (40-character lowercase commit SHA), `forge` (`github` or `gitea`, matching the host). Applies to project and evidence links | | `setting` | Optional `[Dutch, English]` context, such as personal project or school year. Defaults to school project, year 2 | diff --git a/docs/verification.md b/docs/verification.md index 0a9128d..7f56775 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -1,6 +1,6 @@ # Verification -## Latest checks — security verification, 10 November 2026 +## Latest checks � security verification, 10 November 2026 The initial working tree was clean. The checked-in baseline already contained staged replacement of build output, guarded preview URL parsing, strict settings validation, explicit module exports, process-code escaping and four security regression tests. This pass reviewed and verified those protections, made invalid review dates report the intended validation error, added direct bilingual rendering-injection and export-surface assertions, and corrected outdated publication/settings documentation. No project content, source-review dates, Docker/Nginx allowlists or rendering code changed. Generated `content.js` was regenerated by commands and remains byte-identical. @@ -91,3 +91,14 @@ The following is the previous verification record, retained for context. Its two - Preview saved in `docs/preview.png`. Limits: print/PDF layout has a dedicated stylesheet but was not rendered to a PDF in this pass. Docker deployment was not run. Linked DOCX contents were not reviewed. Source project tests were not executed. These checks validate the portfolio implementation, not the completeness or acceptance of exam evidence. + +## Portfolio redesign checks — 10 November 2026 + +The homepage, archive and dossier layouts were changed in `app.js` and `styles.css`. No project source claims or evidence mappings were changed. The existing unrelated working-tree changes were preserved. + +- `node --check app.js`: passed. +- `npm test`: 14 tests passed; `npm run build`: passed and staged five public assets. +- `git diff --check`: passed after whitespace cleanup. +- Browser checked homepage, archive, warehouse dossier, ClipForge dossier, evidence index and about page in Dutch and English at 1280px and 390px. All nine archive entries rendered; no horizontal document overflow was observed. +- Evidence selection changed the route to `#evidence/B1-K1-W1` and rendered one process. The skip link focused `main` while preserving the route. +- Print rules were reviewed in CSS; a printed PDF was not captured. The original preview images remain historical references. diff --git a/styles.css b/styles.css index effc136..a055b15 100644 --- a/styles.css +++ b/styles.css @@ -1224,3 +1224,46 @@ details[open] .expand{ flex-shrink:0 } } +/* Editorial project journal */ +:root{--bg:#111513;--panel:#19201b;--text:#edf0e8;--muted:#aab6aa;--line:#39443b;--accent:#c5e09f;font-family:'Segoe UI',Arial,sans-serif} +body{line-height:1.65} +.header-inner{min-height:78px} +.header-inner nav{margin-right:24px} +.header-inner nav a[aria-current]:after{width:100%;height:1px} +.languages{border:0} +.eyebrow{font-family:inherit;font-size:12px;letter-spacing:.03em;font-weight:600;text-transform:none;margin-bottom:20px} +h1{font-size:clamp(48px,6.5vw,88px);letter-spacing:-.055em;line-height:1.08;font-weight:550} +h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.035em;line-height:1.16} +h3{font-size:clamp(22px,2.4vw,30px)} +.hero{display:block;padding:105px 0 95px;max-width:1000px} +.hero h1{max-width:950px;margin-bottom:48px} +.hero-bottom{display:flex;align-items:end;justify-content:space-between;gap:60px} +.hero-bottom p{font-size:19px;line-height:1.7;max-width:660px;margin:0} +.hero-bottom .text-link{white-space:nowrap} +.feature{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr);gap:80px;padding:62px 0 72px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)} +.feature-intro h2{font-size:clamp(44px,5vw,72px);margin-bottom:22px} +.feature-intro>p:not(.eyebrow){font-size:18px;max-width:650px} +.feature-note{border-left:2px solid var(--accent);padding-left:25px;align-self:end} +.feature-note span,.project-kicker,.project-side>span{font-size:12px;color:var(--muted)} +.feature-note p{font-size:14px;margin:12px 0 0} +.section{padding:72px 0;border-top:0} +.section-heading{margin-bottom:12px}.section-heading h2{margin:0} +.project-row{grid-template-columns:minmax(0,1fr) 190px;gap:55px;align-items:center;padding:29px 0} +.project-copy h3{margin:8px 0}.project-copy p:not(.project-kicker){font-size:14px;line-height:1.6;margin:0;max-width:700px} +.project-kicker{margin:0!important;color:var(--accent)} +.project-side{text-align:right;display:flex;flex-direction:column;align-items:end;gap:12px} +.row-link{display:inline-flex;align-items:center;gap:10px;font-size:13px;min-height:40px;color:var(--text)} +.all-work{margin:32px 0 0} +.exam-callout{display:flex;justify-content:space-between;align-items:end;gap:50px;background:none;border:0;border-top:1px solid var(--line);padding:48px 0;margin:0 0 50px} +.exam-callout h2{font-size:28px}.exam-callout p{max-width:620px!important}.exam-callout .text-link{white-space:nowrap} +.page-heading{padding:80px 0 48px}.page-heading h1{font-size:clamp(48px,5.8vw,78px)} +.work-list{padding:0 0 90px}.work-list .project-row:first-child{border-top:1px solid var(--line)} +.project-heading{max-width:1050px;padding-bottom:55px}.project-heading>p:not(.eyebrow){font-size:20px;max-width:750px}.project-actions{display:flex;align-items:center;gap:38px;flex-wrap:wrap;margin-top:30px}.project-actions>span{color:var(--muted);font-size:12px} +.project-layout{border-top:1px solid var(--line);grid-template-columns:minmax(0,760px) minmax(190px,240px);gap:clamp(45px,8vw,130px);padding:70px 0 100px;align-items:start} +.project-story section{margin-bottom:62px}.project-story h2{font-size:30px;margin-bottom:18px}.project-story p{font-size:16px;line-height:1.75}.project-story .reflection{border:0;border-top:1px solid var(--line);padding:35px 0;background:none} +.project-meta{position:sticky;top:25px;border-left:1px solid var(--line);padding-left:25px}.project-meta h2{font-size:18px;margin-bottom:20px}.project-meta dt{margin-top:20px}.project-meta p{font-size:12px;margin-top:35px} +.architecture{margin:32px 0 0;padding:20px 24px;background:var(--panel)}.architecture p{font-size:12px;margin:0 0 12px;color:var(--muted)}.architecture ol{display:flex;gap:8px;list-style:none;margin:0;padding:0;flex-wrap:wrap}.architecture li{font-size:12px;color:var(--accent)}.architecture li+li:before{content:'→';color:var(--muted);margin-right:8px} +.tag{font-size:11px}.evidence-links{margin-top:24px}.evidence-links a{min-height:55px;align-items:center} +footer{max-width:1272px;padding:28px 0}footer p{margin:0} +@media(max-width:760px){.hero{padding:62px 0}.hero h1{font-size:clamp(43px,11vw,65px);margin-bottom:30px}.hero-bottom{display:block}.hero-bottom p{font-size:16px;margin-bottom:26px}.feature{grid-template-columns:1fr;gap:30px;padding:40px 0}.feature-intro h2{font-size:44px}.feature-note{align-self:auto}.section{padding:50px 0}.project-row{grid-template-columns:1fr;gap:12px}.project-side{text-align:left;align-items:start;gap:2px}.exam-callout{display:block}.exam-callout .text-link{white-space:normal}.project-layout{grid-template-columns:1fr;padding-top:45px}.project-meta{position:static;border-left:0;border-bottom:1px solid var(--line);padding:0 0 30px}.project-meta dl{display:grid;grid-template-columns:110px 1fr;gap:8px}.project-meta dt,.project-meta dd{margin:0}.project-story section{margin-bottom:45px}.project-actions{gap:18px}.page-heading{padding:48px 0 35px}} +@media print{.feature,.project-meta,.exam-callout{break-inside:avoid}.architecture{background:none;border:1px solid #bbb}.project-layout{display:block}.hero{padding:15px 0}.project-story section{break-inside:avoid}}