Initial commit
This commit is contained in:
commit
ae2c99d71a
9 files changed
+213
No files matched your search
@@ -0,0 +1,3 @@
|
||||
dist/
|
||||
node_modules/
|
||||
*.log
|
||||
@@ -0,0 +1,78 @@
|
||||
import { profile, projects, processes, source } from './content.js';
|
||||
const main = document.querySelector('main');
|
||||
let lang = new URLSearchParams(location.search).get('lang') === 'en' ? 'en' : 'nl';
|
||||
const t = pair => pair[lang === 'nl' ? 0 : 1];
|
||||
const esc = value => String(value).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||
const tx = pair => esc(t(pair));
|
||||
const ext = (url, label, cls = '') => `<a class="${cls}" href="${esc(url)}" target="_blank" rel="noopener noreferrer">${label}<span aria-hidden="true"> ↗</span></a>`;
|
||||
const badge = text => `<span class="tag">${esc(text)}</span>`;
|
||||
const route = () => location.hash.slice(1) || 'home';
|
||||
const go = (id, label, cls = '') => `<a class="${cls}" href="#${id}">${label}</a>`;
|
||||
function header() {
|
||||
const current = route();
|
||||
document.querySelector('#header').innerHTML = `<div class="header-inner">
|
||||
${go('home', '<span class="monogram">az<span>_</span></span><span class="brand-name">Alvin Zilverstand</span>', 'brand')}
|
||||
<nav aria-label="${t(['Hoofdnavigatie','Main navigation'])}">${[['work',['Werk','Work']],['evidence',['Bewijsindex','Evidence']],['about',['Over mij','About']]].map(([id,label]) => `<a href="#${id}" ${current === id || (id === 'work' && current.startsWith('project/')) ? 'aria-current="page"' : ''}>${tx(label)}</a>`).join('')}</nav>
|
||||
<div class="languages" aria-label="Language">${['nl','en'].map(l => `<button type="button" data-lang="${l}" lang="${l}" aria-pressed="${lang === l}">${l.toUpperCase()}</button>`).join('')}</div>
|
||||
</div>`;
|
||||
document.querySelectorAll('[data-lang]').forEach(button => button.addEventListener('click', () => {
|
||||
lang = button.dataset.lang;
|
||||
const url = new URL(location.href); url.searchParams.set('lang', lang); history.replaceState(null, '', url);
|
||||
render(false);
|
||||
document.querySelector(`[data-lang="${lang}"]`).focus();
|
||||
}));
|
||||
}
|
||||
function footer() {
|
||||
document.querySelector('footer').innerHTML = `<div><span class="mono">AZ / PORTFOLIO</span><p>Alvin Zilverstand <span class="muted">· VISTA college, Heerlen</span></p></div><div class="footer-links">${ext(profile.github,'GitHub')}${ext(profile.gitea,'Gitea')}${go('evidence',tx(['Bewijsindex','Evidence index']))}</div><span class="mono muted">${tx(['In ontwikkeling','Work in progress'])} / 2026</span>`;
|
||||
}
|
||||
function system(p, large = false) {
|
||||
return `<div class="system ${p.id} ${large ? 'large' : ''}" role="img" aria-label="${esc(t(['Schematische weergave: ','Schematic view: ']) + p.nodes.join(' → '))}"><div class="system-top mono"><span>SYS.${p.number}</span><span>${tx(['SYSTEEMSCHEMA','SYSTEM MAP'])}</span><span class="dot"></span></div><div class="diagram">${p.nodes.map((node,i)=>`${i ? '<span class="wire" aria-hidden="true"></span>' : ''}<div class="node"><span class="node-icon" aria-hidden="true">${['◫','⌘','▤'][i]}</span><span>${esc(node)}</span><small class="mono">0${i+1}</small></div>`).join('')}</div><div class="system-bottom mono"><span>${p.stack.slice(0,2).join(' / ')}</span><span>CH.${p.challenge}</span></div></div>`;
|
||||
}
|
||||
function projectRow(p) {
|
||||
return `<article class="project-row"><span class="project-number mono">/${p.number}</span><div class="project-copy"><p class="eyebrow">CHALLENGE ${p.challenge} <span>· ${tx(p.kind)}</span></p><h3>${go(`project/${p.id}`,tx(p.name))}</h3><p>${tx(p.intro)}</p><div class="tags">${p.stack.map(badge).join('')}</div></div>${go(`project/${p.id}`,`<span>${tx(['Bekijk project','Explore project'])}</span><span aria-hidden="true">↗</span>`,'row-link')}</article>`;
|
||||
}
|
||||
function home() {
|
||||
const p = projects[0];
|
||||
return `<section class="hero"><div class="hero-copy"><p class="eyebrow"><span class="dot"></span> SOFTWARE DEVELOPER / ${tx(['IN OPLEIDING','IN TRAINING'])}</p><h1>${tx(['Van idee','From idea'])}<br>${tx(['naar iets','to something'])}<br><em>${tx(['dat werkt.','that works.'])}</em></h1><p class="hero-intro">${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.'])}</p><div class="actions">${go('work',`${tx(['Ontdek mijn werk','Explore my work'])} <span aria-hidden="true">↗</span>`,'button primary')}${go('evidence',tx(['Naar de bewijsindex','View the evidence index']),'text-link')}</div></div><div class="hero-aside"><div class="edition mono"><span>FIELDNOTES / 001</span><span>2024—2026</span></div>${system(p,true)}<div class="aside-caption"><span class="mono">01 /</span><div><strong>${tx(p.name)}</strong><p>${tx(['Van requirements naar reserveringen.','From requirements to reservations.'])}</p></div>${go('project/warehouse','↗','circle-link')}</div><div class="study-stamp"><span class="mono">${tx(['NU','NOW'])}</span><span>VISTA college · Heerlen</span><span>${tx(['Leerjaar 3','Year 3'])}</span></div></div></section>
|
||||
<section class="section"><div class="section-heading"><div><p class="eyebrow">01 / ${tx(['SELECTIE','SELECTED'])}</p><h2>${tx(['Werk met een verhaal.','Work with a story.'])}</h2></div><span class="mono muted">03 ${tx(['PROJECTEN','PROJECTS'])}</span></div>${projects.map(projectRow).join('')}</section>
|
||||
<section class="exam-callout"><div><p class="eyebrow">02 / ${tx(['VAN PROJECT NAAR BEWIJS','FROM PROJECT TO EVIDENCE'])}</p><h2>${tx(['De code is het begin.','The code is the starting point.'])}</h2><p>${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.'])}</p>${go('evidence',`${tx(['Open bewijsindex','Open evidence index'])} ↗`,'text-link')}</div><div class="index-preview" aria-hidden="true">${[['01','SCOPE'],['02','DESIGN'],['03','BUILD'],['04','TEST']].map(([n,s])=>`<div><span>${n}</span><strong>${s}</strong><span class="small-line"></span></div>`).join('')}</div></section>`;
|
||||
}
|
||||
function work() {
|
||||
return `<section class="page-heading"><p class="eyebrow">01 / ${tx(['PROJECTARCHIEF','PROJECT ARCHIVE'])}</p><h1>${tx(['Gebouwd. Getest.','Built. Tested.'])}<br><em>${tx(['Verder geleerd.','Still learning.'])}</em></h1><p>${tx(['Drie schoolprojecten, bekeken vanuit het probleem, de uitvoering en het beschikbare bewijs. De broncode blijft één klik verder.','Three school projects, through their problems, implementation, and available evidence. The source code is always one click away.'])}</p></section><section class="section work-list">${projects.map(p=>`<div>${system(p)}${projectRow(p)}</div>`).join('')}</section><div class="archive-link">${ext(profile.school,tx(['Bekijk het volledige schoolarchief','Browse the full school archive']),'text-link')}</div>`;
|
||||
}
|
||||
function detail(p) {
|
||||
return `<section class="page-heading project-heading">${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}<p class="eyebrow">PROJECT ${p.number} / CHALLENGE ${p.challenge}</p><h1>${tx(p.name)}<span class="accent">.</span></h1><p>${tx(p.intro)}</p><div class="tags">${p.stack.map(badge).join('')}</div></section>${system(p,true)}<div class="project-layout"><aside class="project-meta"><span class="eyebrow">${tx(['PROJECTDOSSIER','PROJECT FILE'])}</span><dl><dt>${tx(['Opleiding','Course'])}</dt><dd>Software Developer</dd><dt>${tx(['Context','Context'])}</dt><dd>${tx(['Schoolproject · leerjaar 2','School project · year 2'])}</dd><dt>${tx(['Eigen bijdrage','My contribution'])}</dt><dd>${tx(['Nog te beschrijven','Still to be documented'])}</dd><dt>${tx(['Beoordelingsstatus','Assessment status'])}</dt><dd>${tx(['Niet vastgesteld','Not established'])}</dd></dl>${ext(source(p.path,true),tx(['Open broncode','Open source code']),'text-link')}</aside><div class="project-story">${[[['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)=>`<section><p class="eyebrow">0${i+1}</p><h2>${tx(title)}</h2><p>${tx(body)}</p></section>`).join('')}<section><p class="eyebrow">04</p><h2>${tx(['Bronnen & bewijs','Sources & evidence'])}</h2><p class="muted">${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.'])}</p><div class="evidence-links">${p.evidence.map(e=>ext(source(e.path,e.directory),`<span><small class="mono">${e.type}</small>${tx(e.label)}</span>`)).join('')}</div></section><section class="reflection"><p class="eyebrow">05 / ${tx(['PERSOONLIJKE REFLECTIE','PERSONAL REFLECTION'])}</p><h2>${tx(['Het verhaal achter mijn bijdrage.','The story behind my contribution.'])}</h2><p>${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></section><div class="tags">${p.codes.map(c=>go(`evidence/${c}`,c,'tag')).join('')}</div></div></div>`;
|
||||
}
|
||||
function evidence(filter = '') {
|
||||
const selected = processes.some(p=>p.code === filter) ? filter : '';
|
||||
return `<section class="page-heading"><p class="eyebrow">02 / ${tx(['EXAMENPORTFOLIO','EXAM PORTFOLIO'])}</p><h1>${tx(['Van werk','From work'])}<br><em>${tx(['naar bewijs.','to evidence.'])}</em></h1><p>${tx(['Bronnen per werkproces. Een navigeerbare voorbereiding op mijn examen, met zichtbaar onderscheid tussen gevonden materiaal en wat nog ontbreekt.','Sources by work process. A navigable preparation for my exam, making the distinction between located material and missing evidence visible.'])}</p></section><div class="evidence-toolbar"><div><label for="process-filter">${tx(['Werkproces','Work process'])}</label><select id="process-filter"><option value="">${tx(['Alle werkprocessen','All work processes'])}</option>${processes.map(p=>`<option value="${p.code}" ${p.code===selected?'selected':''}>${p.code} · ${tx(p.title)}</option>`).join('')}</select></div><button id="print" class="button">${tx(['Afdrukken / PDF','Print / PDF'])} ↗</button></div><div class="notice"><span class="status-dot"></span><p>${tx(['In opbouw. Koppelingen zijn voorlopig; aanwezigheid van code of een document bewijst nog geen beheersing. Persoonlijke bijdrage, resultaten en beoordeling moeten worden toegevoegd. Stem de definitieve bewijslast af met de examinator.','In progress. Mappings are provisional; code or a document alone does not demonstrate competence. Personal contributions, results, and assessment need to be added. Agree the final evidence requirements with the examiner.'])}</p></div><section id="process-list" class="process-list">${processes.filter(p=>!selected||p.code===selected).map(processRow).join('')}</section><div class="source-note"><p class="mono">SBB / 25998 / 2024</p><p>${tx(['Deze index volgt de acht beroepsspecifieke werkprocessen uit het gekoppelde dossier. Generieke vakken, keuzedelen en VISTA-examenafspraken vallen buiten deze index. Engelse labels zijn eigen vertalingen.','This index follows the eight vocational work processes in the linked qualification. General subjects, electives, and VISTA exam arrangements are outside this index. English labels are informal translations.'])}</p>${ext(profile.qualification,tx(['Lees het officiële kwalificatiedossier','Read the official qualification document']),'text-link')}</div>`;
|
||||
}
|
||||
function processRow(p) {
|
||||
const found = projects.flatMap(project=>project.evidence.filter(e=>e.codes.includes(p.code)).map(e=>({project,e})));
|
||||
return `<details class="process" ${route()===`evidence/${p.code}`?'open':''}><summary><span class="mono process-code">${p.code}</span><span class="process-title">${tx(p.title)}</span><span class="evidence-status ${found.length?'located':'missing'}">${found.length ? `${found.length} ${tx(['bronnen','sources'])}` : tx(['Aanvullen','To add'])}</span><span class="expand" aria-hidden="true">+</span></summary><div class="process-content"><p>${tx(p.description)}</p>${found.length?`<div class="evidence-links">${found.map(({project,e})=>`<div class="evidence-entry">${ext(source(e.path,e.directory),`<span><small class="mono">${e.type}</small>${tx(e.label)}</span>`)}${go(`project/${project.id}`,tx(project.name),'evidence-project')}</div>`).join('')}</div><p class="pending">${tx(['Te controleren: inhoud, eigen bijdrage en geschiktheid voor het examen.','To verify: contents, personal contribution, and suitability for the exam.'])}</p>`:`<div class="empty-state">${tx(['Nog geen bewijs geselecteerd. Voeg een eigen document, feedback of een concreet projectvoorbeeld toe.','No evidence selected yet. Add your own document, feedback, or a specific project example.'])}</div>`}</div></details>`;
|
||||
}
|
||||
function about() {
|
||||
return `<section class="page-heading"><p class="eyebrow">03 / ${tx(['OVER MIJ','ABOUT ME'])}</p><h1>Alvin<br><em>Zilverstand.</em></h1><p>${tx(['Software Developer in opleiding. Derdejaars bij VISTA college in Heerlen.','Software Developer in training. Third-year student at VISTA college in Heerlen.'])}</p></section><section class="about-grid"><div><h2>${tx(['Leren door te bouwen.','Learning by building.'])}</h2><p>${tx(['Mijn schoolwerk loopt uiteen van websites en PHP-applicaties tot een magazijnsysteem en narrowcasting. Dit portfolio brengt de projecten en de bijbehorende bronnen bij elkaar.','My schoolwork ranges from websites and PHP applications to a warehouse system and narrowcasting. This portfolio brings those projects and their sources together.'])}</p><p>${tx(['Ik bouw dit portfolio voor mijn eindexamen. Daarna wil ik het verder gebruiken om mijn werk aan toekomstige werkgevers te laten zien.','I’m building this portfolio for my final exam. After that, I want to keep using it to show my work to future employers.'])}</p></div><div class="profile-facts"><div><span>${tx(['Opleiding','Course'])}</span><strong>Software Developer</strong></div><div><span>Campus</span><strong>VISTA · Heerlen</strong></div><div><span>${tx(['Studiefase','Study stage'])}</span><strong>${tx(['Leerjaar 3','Year 3'])}</strong></div><div><span>${tx(['Werk & broncode','Work & source'])}</span><strong>GitHub + Gitea</strong></div></div></section><section class="contact-section"><p class="eyebrow">${tx(['VERDER KIJKEN','TAKE A CLOSER LOOK'])}</p><h2>${tx(['De rest staat in de repositories.','There’s more in the repositories.'])}</h2><div class="actions">${ext(profile.github,'GitHub','button primary')}${ext(profile.gitea,'Gitea','button')}</div><p class="muted">${tx(['Een rechtstreeks contactadres en cv worden later toegevoegd.','A direct contact address and CV will be added later.'])}</p></section>`;
|
||||
}
|
||||
function render(focus = false) {
|
||||
document.documentElement.lang = lang;
|
||||
header(); footer();
|
||||
const r = route();
|
||||
let title = t(['Portfolio','Portfolio']);
|
||||
if (r === 'home') main.innerHTML = home();
|
||||
else if (r === 'work') { main.innerHTML = work(); title = t(['Werk','Work']); }
|
||||
else if (r === 'about') { main.innerHTML = about(); title = t(['Over mij','About']); }
|
||||
else if (r === 'evidence' || r.startsWith('evidence/')) {
|
||||
main.innerHTML = evidence(r.split('/')[1]); title = t(['Bewijsindex','Evidence index']);
|
||||
document.querySelector('#process-filter').addEventListener('change', e => { location.hash = e.target.value ? `evidence/${e.target.value}` : 'evidence'; });
|
||||
document.querySelector('#print').addEventListener('click', () => { document.querySelectorAll('.process').forEach(d=>d.open=true); window.print(); });
|
||||
} else {
|
||||
const p = projects.find(p=>r === `project/${p.id}`);
|
||||
if (p) { main.innerHTML = detail(p); title = t(p.name); }
|
||||
else main.innerHTML = `<section class="page-heading"><h1>404</h1><p>${tx(['Deze pagina bestaat niet.','This page does not exist.'])}</p>${go('home',tx(['Terug naar het begin','Back to home']),'button')}</section>`;
|
||||
}
|
||||
document.title = `${title} — Alvin Zilverstand`;
|
||||
if (focus) { main.focus({preventScroll:true}); window.scrollTo(0,0); }
|
||||
}
|
||||
window.addEventListener('hashchange',()=>render(true));
|
||||
render();
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
// Edit portfolio content here. Text pairs are [Dutch, English].
|
||||
export const profile = {
|
||||
name: 'Alvin Zilverstand',
|
||||
github: 'https://github.com/Alvin-Zilverstand',
|
||||
gitea: 'https://codealvin.xyz/Alvin-Zilverstand',
|
||||
school: 'https://github.com/Alvin-Zilverstand/school',
|
||||
qualification: 'https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420',
|
||||
reviewed: '2026-11-09',
|
||||
};
|
||||
export const revision = 'd420c317abcbd117e0e1dd641674ab3283ab34ba';
|
||||
export const source = (path, directory = false) => `${profile.school}/${directory ? 'tree' : 'blob'}/${revision}/${path.split('/').map(encodeURIComponent).join('/')}`;
|
||||
const warehouse = 'projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken';
|
||||
const planning = 'projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen';
|
||||
const refactor = 'projects/year_02/challenge_13/Messy-coder-Verbeterd';
|
||||
const screens = 'projects/year_02/challenge_18/narrow_casting_system';
|
||||
export const projects = [
|
||||
{
|
||||
id: 'warehouse', number: '01', challenge: '14 + 15', kind: ['Webapplicatie', 'Web application'],
|
||||
title: ['Van aanvraag tot uitgifte.', 'From request to checkout.'], name: ['Magazijnbeheer', 'Warehouse management'],
|
||||
intro: ['Een schoolmagazijn met artikelen, reserveringen en aparte schermen voor studenten en beheerders. Van de eerste requirements naar een applicatie met een database.', 'A school warehouse with items, reservations, and separate interfaces for students and administrators. From initial requirements to a database-backed application.'],
|
||||
stack: ['JavaScript', 'Node.js', 'Express', 'MongoDB'], codes: ['B1-K1-W1', 'B1-K1-W2', 'B1-K1-W3'],
|
||||
path: warehouse,
|
||||
context: ['Challenges 14 en 15 vormen samen een traject van voorbereiding naar realisatie. De schoolrepository bevat klantgesprekken, requirements, een concept en de applicatie.', 'Challenges 14 and 15 connect preparation with implementation. The school repository contains client interviews, requirements, a concept, and the application.'],
|
||||
implementation: ['De Express-server koppelt routes voor accounts, artikelen, reserveringen en uploads aan MongoDB via Mongoose. De frontend bevat afzonderlijke pagina’s voor student- en beheertaken.', 'The Express server connects account, item, reservation, and upload routes to MongoDB through Mongoose. The frontend has separate pages for student and administrator tasks.'],
|
||||
decisions: ['De scheiding tussen artikelen en reserveringen is zichtbaar in zowel de datamodellen als de API-routes. Daarmee is de relatie tussen de gebruikershandeling en de opgeslagen gegevens te volgen in de broncode.', 'Items and reservations are separated in both data models and API routes. This makes it possible to trace a user action to its stored data in the source code.'],
|
||||
nodes: ['Browser', 'Express API', 'MongoDB'],
|
||||
evidence: [
|
||||
{ label: ['Requirements & voorbereiding', 'Requirements & preparation'], path: `${planning}/Documentatie/documenten`, directory: true, type: 'DOCX', codes: ['B1-K1-W1', 'B1-K1-W2'] },
|
||||
{ label: ['Interactief concept', 'Interactive concept'], path: `${planning}/concept`, directory: true, type: 'HTML', codes: ['B1-K1-W2'] },
|
||||
{ label: ['Server & API-routes', 'Server & API routes'], path: `${warehouse}/server.js`, type: 'JS', codes: ['B1-K1-W3'] },
|
||||
{ label: ['Artikelen en reserveringen', 'Items and reservations'], path: `${warehouse}/models`, directory: true, type: 'JS', codes: ['B1-K1-W3'] },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'narrowcasting', number: '02', challenge: '18', kind: ['Ged istribueerd systeem'.replace('Ged is', 'Gedis'), 'Distributed system'],
|
||||
title: ['Eén bron. Meerdere schermen.', 'One source. Multiple screens.'], name: ['SnowWorld narrowcasting', 'SnowWorld narrowcasting'],
|
||||
intro: ['Een narrowcastingproject voor content op verschillende schermen. Een beheeromgeving, een backend en een schermclient hebben ieder een eigen rol.', 'A narrowcasting project for content across multiple displays. An administration interface, backend, and display client each have a separate role.'],
|
||||
stack: ['JavaScript', 'Node.js', 'WebSocket', 'SQLite'], codes: ['B1-K1-W2', 'B1-K1-W3', 'B1-K1-W4'], path: screens,
|
||||
context: ['Een schoolchallenge rond schermcontent voor SnowWorld. De README beschrijft zonegebonden content en planning. Dit portfolio toont het schoolproject; ingebruikname bij het bedrijf is niet bevestigd.', 'A school challenge around display content for SnowWorld. The README describes zone-specific content and scheduling. This portfolio presents the school project; use by the company has not been confirmed.'],
|
||||
implementation: ['De repository verdeelt het systeem in backend, admin en client. De documentatie beschrijft WebSocket-updates en SQLite-opslag. Er zijn scripts voor systeem- en robuustheidstests aanwezig.', 'The repository separates backend, admin, and client. Its documentation describes WebSocket updates and SQLite storage. System and robustness test scripts are present.'],
|
||||
decisions: ['De aparte schermclient maakt het verschil tussen content beheren en content afspelen zichtbaar. De systeemindeling is terug te vinden in de mappenstructuur en de projectdocumentatie.', 'A separate display client makes the distinction between managing content and playing content explicit. The folder structure and project documentation reflect this separation.'],
|
||||
nodes: ['Admin', 'Backend', 'Display clients'],
|
||||
evidence: [
|
||||
{ label: ['Architectuur & projectbeschrijving', 'Architecture & project description'], path: `${screens}/README.md`, type: 'MD', codes: ['B1-K1-W2'] },
|
||||
{ label: ['Implementatie', 'Implementation'], path: screens, directory: true, type: 'JS', codes: ['B1-K1-W3'] },
|
||||
{ label: ['Systeemtestscript', 'System test script'], path: `${screens}/test_system.js`, type: 'JS', codes: ['B1-K1-W4'] },
|
||||
{ label: ['Robuustheidstestscript', 'Robustness test script'], path: `${screens}/test_robust.js`, type: 'JS', codes: ['B1-K1-W4'] },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'refactoring', number: '03', challenge: '13', kind: ['Onderhoud & kwaliteit', 'Maintenance & quality'],
|
||||
title: ['Bestaande code, opnieuw bekeken.', 'Existing code, reconsidered.'], name: ['Messy Coder', 'Messy Coder'],
|
||||
intro: ['Een bestaande PHP-portfoliosite als vertrekpunt voor refactoring. Met broncode, een opinieverslag en een testdocument in dezelfde projectmap.', 'An existing PHP portfolio as a starting point for refactoring. With source code, a review document, and a test document in the same project folder.'],
|
||||
stack: ['PHP', 'CSS', 'JavaScript', 'SQL'], codes: ['B1-K1-W3', 'B1-K1-W4', 'B1-K1-W5'], path: refactor,
|
||||
context: ['Challenge 13 richt zich op het analyseren en verbeteren van een bestaande codebase. De naam Lorenzo von Matterhorn hoort bij het aangeleverde oefenportfolio, niet bij mij.', 'Challenge 13 focuses on analysing and improving an existing codebase. Lorenzo von Matterhorn is the name in the exercise portfolio, not my identity.'],
|
||||
implementation: ['De projectmap bevat PHP-pagina’s, een databasebestand, CSS en JavaScript. De begeleidende documenten bieden aanknopingspunten om de analyse en testaanpak naast de code te beoordelen.', 'The project folder contains PHP pages, a database file, CSS, and JavaScript. Its accompanying documents provide starting points for reviewing the analysis and testing approach alongside the code.'],
|
||||
decisions: ['Bij dit project is het verschil tussen de uitgangssituatie en de verbeterde versie belangrijk. Concrete voor-en-na-voorbeelden en een onderbouwde persoonlijke reflectie moeten nog worden toegevoegd.', 'For this project, the difference between the starting point and the improved version matters. Specific before-and-after examples and a substantiated personal reflection still need to be added.'],
|
||||
nodes: ['Review', 'Refactor', 'Test'],
|
||||
evidence: [
|
||||
{ label: ['Opdrachtcontext', 'Assignment context'], path: 'projects/year_02/challenge_13/README.md', type: 'MD', codes: ['B1-K1-W5'] },
|
||||
{ label: ['PHP-implementatie', 'PHP implementation'], path: refactor, directory: true, type: 'PHP', codes: ['B1-K1-W3'] },
|
||||
{ label: ['Testdocument', 'Test document'], path: `${refactor}/documents/Testrapport Portfoliowebsite (1).docx`, type: 'DOCX', codes: ['B1-K1-W4'] },
|
||||
{ label: ['Opinieverslag', 'Review document'], path: `${refactor}/documents/Opinieverslag portfolio Lorenzo von Matterhorn.docx`, type: 'DOCX', codes: ['B1-K1-W5'] },
|
||||
],
|
||||
},
|
||||
];
|
||||
// These are navigation labels, not a replacement for the official assessment rubric.
|
||||
export const processes = [
|
||||
['B1-K1-W1', ['Afstemmen & plannen', 'Scope & planning'], ['Opdracht, afspraken, planning en voortgang aantonen.', 'Show the assignment, agreements, planning, and progress.']],
|
||||
['B1-K1-W2', ['Technisch ontwerpen', 'Technical design'], ['Ontwerpkeuzes verbinden aan requirements.', 'Connect design decisions to requirements.']],
|
||||
['B1-K1-W3', ['Software realiseren', 'Software implementation'], ['Eigen bijdrage onderbouwen met concrete code.', 'Substantiate your contribution with specific code.']],
|
||||
['B1-K1-W4', ['Software testen', 'Software testing'], ['Testaanpak, uitvoering en resultaten vastleggen.', 'Document the test approach, execution, and results.']],
|
||||
['B1-K1-W5', ['Verbeteringen voorstellen', 'Proposing improvements'], ['Bevindingen vertalen naar onderbouwde verbeteringen.', 'Turn findings into substantiated improvements.']],
|
||||
['B1-K2-W1', ['Samenwerken', 'Teamwork'], ['Rolverdeling, afstemming en eigen bijdrage vastleggen.', 'Document roles, coordination, and your contribution.']],
|
||||
['B1-K2-W2', ['Werk presenteren', 'Presenting work'], ['Presentatie en ontvangen feedback toevoegen.', 'Add a presentation and the feedback received.']],
|
||||
['B1-K2-W3', ['Samenwerking evalueren', 'Evaluating collaboration'], ['Reflecteren op samenwerking en vervolgstappen.', 'Reflect on collaboration and next steps.']],
|
||||
].map(([code, title, description]) => ({ code, title, description }));
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="12" fill="#161918"/><path d="M14 47 30 16h5l15 31h-8l-4-9H26l-4 9zm15-16h6l-3-7z" fill="#c6df9b"/></svg>
|
||||
|
After Width: | Height: | Size: 198 B |
+20
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html lang="nl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#111413">
|
||||
<meta name="description" content="Alvin Zilverstand — Software Developer student bij VISTA college Heerlen. Projecten, broncode en een bewijsindex voor mijn ontwikkeling.">
|
||||
<title>Alvin Zilverstand — Software Developer</title>
|
||||
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="./styles.css">
|
||||
<script type="module" src="./app.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip" href="#main">Skip to content / Naar inhoud</a>
|
||||
<header id="header"></header>
|
||||
<main id="main" tabindex="-1"></main>
|
||||
<footer id="footer"></footer>
|
||||
<noscript>JavaScript is nodig voor de project- en bewijsindex. Bekijk de bronprojecten op <a href="https://github.com/Alvin-Zilverstand/school">GitHub</a>.</noscript>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "alvin-portfolio",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "node scripts/serve.mjs",
|
||||
"build": "node scripts/build.mjs",
|
||||
"test": "node --test tests/*.test.mjs"
|
||||
},
|
||||
"engines": { "node": ">=22" }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { mkdir, copyFile } from 'node:fs/promises';
|
||||
await mkdir('dist', { recursive: true });
|
||||
for (const file of ['index.html', 'styles.css', 'app.js', 'content.js', 'favicon.svg']) {
|
||||
await copyFile(file, `dist/${file}`);
|
||||
}
|
||||
console.log('Built static site in dist/');
|
||||
@@ -0,0 +1,14 @@
|
||||
import { createServer } from 'node:http';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
const port = Number(process.env.PORT || 4173);
|
||||
const files = new Map([['/', 'index.html'], ['/index.html', 'index.html'], ['/styles.css', 'styles.css'], ['/app.js', 'app.js'], ['/content.js', 'content.js'], ['/favicon.svg', 'favicon.svg']]);
|
||||
const mime = { html: 'text/html', css: 'text/css', js: 'text/javascript', svg: 'image/svg+xml' };
|
||||
createServer(async (req, res) => {
|
||||
const file = files.get(new URL(req.url, 'http://localhost').pathname);
|
||||
if (!file) { res.writeHead(404); return res.end('Not found'); }
|
||||
try {
|
||||
const body = await readFile(new URL(`../${file}`, import.meta.url));
|
||||
res.writeHead(200, { 'Content-Type': `${mime[file.split('.').pop()]}; charset=utf-8`, 'Cache-Control': 'no-cache', 'X-Content-Type-Options': 'nosniff' });
|
||||
res.end(body);
|
||||
} catch { res.writeHead(500); res.end('Unable to read file'); }
|
||||
}).listen(port, '127.0.0.1', () => console.log(`Local: http://127.0.0.1:${port}`));
|
||||
@@ -0,0 +1,3 @@
|
||||
@import url('');
|
||||
:root{color-scheme:dark;--bg:#111413;--panel:#181c1a;--text:#e7e9e3;--muted:#a0aaa2;--line:#303831;--accent:#c4dda3;--mono:'Cascadia Code','SFMono-Regular',Consolas,monospace;font-family:Inter,'Segoe UI',Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:6px}button{color:inherit}a:hover{color:var(--accent)}main:focus{outline:none}header{border-bottom:1px solid var(--line)}.header-inner{max-width:1400px;margin:auto;min-height:96px;padding:0 64px;display:flex;align-items:center;justify-content:space-between;gap:32px}.brand{display:flex;align-items:center;gap:20px}.monogram{font-weight:750;font-size:35px;letter-spacing:-3px}.monogram span{color:var(--accent)}.brand-name{font-size:13px;font-weight:550}.header-inner nav{display:flex;gap:34px;font-size:14px;margin-left:auto;margin-right:50px}.header-inner nav a{color:var(--muted);position:relative;padding:10px 0}.header-inner nav a[aria-current]{color:var(--text)}.header-inner nav a[aria-current]:after{content:'';position:absolute;bottom:0;left:0;width:16px;height:2px;background:var(--accent)}.languages{display:flex;border:1px solid var(--line);padding:3px;border-radius:4px}.languages button{border:0;background:none;padding:5px 8px;font:11px var(--mono);color:var(--muted)}.languages button[aria-pressed=true]{background:#30392e;color:var(--accent)}main{max-width:1400px;margin:auto;padding:0 64px}.mono,.eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:1.3px}.eyebrow{color:var(--accent);margin:0 0 24px;display:flex;align-items:center;gap:10px}.eyebrow span:not(.dot){color:var(--muted)}.dot{display:inline-block;flex-shrink:0;width:6px;height:6px;background:var(--accent);border-radius:50%}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(48px,6.8vw,94px);line-height:1.06;letter-spacing:-5px;font-weight:500;margin-bottom:28px}h1 em{font-style:normal;color:var(--accent)}h2{font-size:34px;line-height:1.2;letter-spacing:-1.2px;font-weight:500;margin-bottom:24px}h3{font-size:29px;letter-spacing:-.8px;font-weight:500;line-height:1.25;margin:0 0 14px}p{color:var(--muted)}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding:86px 0 88px}.hero-intro{max-width:440px;font-size:16px;line-height:1.8;margin:28px 0 30px}.actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:32px;border:1px solid var(--line);padding:12px 18px;border-radius:3px;background:transparent;font-size:13px;font-weight:550}.button.primary{background:var(--accent);color:#1d2819;border-color:var(--accent)}.button:hover{background:#2a3427;color:var(--text)}.text-link{font-size:13px;border-bottom:1px solid #626f56;padding-bottom:5px;display:inline-block}.edition{display:flex;justify-content:space-between;color:var(--muted);padding-bottom:16px}.hero-aside{padding-top:35px}.system{background:var(--panel);border:1px solid var(--line);overflow:hidden;position:relative;min-height:230px;display:flex;flex-direction:column;background-image:radial-gradient(#3b443a 0.7px,transparent .7px);background-size:19px 19px}.system.large{min-height:340px}.system-top,.system-bottom{display:flex;justify-content:space-between;gap:15px;padding:18px 22px;font-size:9px;color:var(--muted)}.system-top{border-bottom:1px solid #30383170;align-items:center;background:#181c1ad9}.system-bottom{margin-top:auto;background:#181c1ad9}.diagram{display:flex;align-items:center;justify-content:center;flex:1;padding:38px 24px}.node{display:flex;flex-direction:column;align-items:center;gap:13px;position:relative;background:#1c241e;border:1px solid #56634e;padding:17px 12px;min-width:92px;font:11px var(--mono);color:var(--accent)}.node small{position:absolute;top:-8px;left:9px;background:#1c241e;padding:0 5px;font-size:8px}.node-icon{font-size:25px;line-height:1}.wire{width:35px;height:1px;background:#80966c;position:relative}.wire:after{content:'';border:3px solid transparent;border-left-color:#80966c;position:absolute;right:-2px;top:-3px}.narrowcasting .node{color:#b4cddd;border-color:#566773;background:#1d262b}.narrowcasting .wire{background:#758e9d}.refactoring .node{color:#d5c3a9;border-color:#70624e;background:#28241e}.refactoring .wire{background:#a49276}.aside-caption{display:flex;gap:19px;padding:24px 0;border-bottom:1px solid var(--line);align-items:center}.aside-caption>.mono{color:var(--accent)}.aside-caption strong{font-size:14px;font-weight:500}.aside-caption p{margin:5px 0 0;font-size:12px}.circle-link{border:1px solid var(--line);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;mLine truncated
|
||||
@media(min-width:1500px){.hero{padding-top:100px;padding-bottom:100px}}@media(max-width:1100px){.header-inner{padding:0 32px}.hero{gap:35px}main{padding:0 32px}footer{margin:0 32px}.node{min-width:75px;font-size:10px}.wire{width:22px}.diagram{padding:35px 18px}.hero h1{font-size:68px}.hero .actions{gap:17px}.brand-name{display:none}.exam-callout{gap:40px}.project-layout{gap:45px;grid-template-columns:200px 1fr}.study-stamp{gap:10px}}@media(max-width:760px){.header-inner{padding:0 22px;min-height:78px;gap:16px}.header-inner nav{gap:18px;margin:0 auto;font-size:12px}.monogram{font-size:28px}main{padding:0 22px}.hero{grid-template-columns:1fr;padding:48px 0;gap:20px}.hero h1{font-size:65px;letter-spacing:-3.5px}.hero-intro{max-width:530px}.hero-aside{padding-top:10px}.system.large{min-height:280px}.hero .node{min-width:95px}.hero .wire{width:35px}.section{padding:42px 0}.section-heading{align-items:end}.section-heading>.mono{display:none}h2{font-size:29px}.project-row{grid-template-columns:28px 1fr;gap:14px;padding:28px 0}.row-link{grid-column:2;justify-content:flex-start;gap:20px}.project-copy h3{font-size:25px}.project-copy .eyebrow{display:block;line-height:2}.exam-callout{padding:26px;grid-template-columns:1fr;gap:20px;margin-bottom:50px}.index-preview{display:none}footer{margin:0 22px;flex-wrap:wrap;gap:24px}.footer-links{gap:18px}footer>.mono{width:100%}.page-heading{padding:45px 0 35px}.page-heading h1{font-size:52px;letter-spacing:-2px}.page-heading>p:not(.eyebrow){font-size:15px}.work-list .node{min-width:90px}.work-list .wire{width:30px}.project-layout{grid-template-columns:1fr;gap:45px;padding-top:35px}.project-meta dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-meta dt{margin:0}.project-meta dd{margin:0}.project-story h2{font-size:26px}.evidence-toolbar{align-items:stretch;flex-wrap:wrap}.evidence-toolbar>div{width:100%}select{width:100%}.process summary{grid-template-columns:1fr 90px 15px;gap:8px;padding:20px 0}.process-code{grid-column:1/-1}.process-title{font-size:16px}.process-content{padding-left:0}.notice{padding:17px}.about-grid{grid-template-columns:1fr;gap:25px;padding:35px 0}.contact-section{padding-top:40px}.evidence-links small{min-width:42px}}@media(max-width:380px){.header-inner{padding:0 14px;gap:10px}.header-inner nav{gap:12px}.languages button{padding:5px}.hero h1{font-size:57px}.hero .node{min-width:75px}.hero .wire{width:20px}.system-top,.system-bottom{padding:14px;font-size:8px}.diagram{padding:35px 12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}@media print{:root{color-scheme:light;--bg:white;--text:#111;--muted:#444;--line:#bbb;--accent:#314826}body{background:white;color:#111;font-size:11pt}header,footer,.evidence-toolbar,.skip,.expand{display:none!important}main{padding:0;max-width:none}.page-heading{padding:0 0 20px}.page-heading h1{font-size:34pt;letter-spacing:-1px}.notice{background:none}.notice p{color:#333}.process summary{padding:15px 0;grid-template-columns:110px 1fr 100px}.process-content{padding-left:0}.process{break-inside:avoid}.evidence-status{color:#333}.process-title{font-size:14pt}.source-note{margin-bottom:0}.evidence-links a{overflow-wrap:anywhere}.evidence-links a[href^=http]:after{content:' (' attr(href) ')';font-size:8pt;display:block;max-width:75%;color:#444}.evidence-links>a,.evidence-entry>a:first-child{display:block}.system{background:none}.reflection{background:none}}
|
||||
Reference in new issue
Block a user