m
This commit is contained in:
1 parent
783c95b797
commit
2d6378c1ed
6 files changed
+71
-15
No files matched your search
@@ -24,26 +24,28 @@ function header() {
|
||||
}));
|
||||
}
|
||||
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>`;
|
||||
document.querySelector('footer').innerHTML = `<p>Alvin Zilverstand · VISTA college, Heerlen</p><div class="footer-links">${ext(profile.github,'GitHub')}${ext(profile.gitea,'Gitea')}${go('evidence',tx(['Bewijsindex','Evidence index']))}</div>`;
|
||||
}
|
||||
function system(p, large = false) {
|
||||
return `<div class="system ${esc(p.id)} ${large ? 'large' : ''}" role="img" aria-label="${esc(t(['Schematische weergave: ','Schematic view: ']) + p.nodes.join(' → '))}"><div class="system-top mono"><span>SYS.${esc(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>${esc(p.stack.slice(0,2).join(' / '))}</span><span>${p.challenge === '—' ? tx(['EXPERIMENT','EXPERIMENT']) : `CH.${esc(p.challenge)}`}</span></div></div>`;
|
||||
}
|
||||
function projectRow(p) {
|
||||
return `<article class="project-row"><span class="project-number mono">/${esc(p.number)}</span><div class="project-copy"><p class="eyebrow">${p.challenge === '—' ? tx(['PERSOONLIJK PROJECT','PERSONAL PROJECT']) : `CHALLENGE ${esc(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>`;
|
||||
return `<article class="project-row"><div class="project-copy"><p class="project-kicker">${tx(p.setting || ['Schoolproject · leerjaar 2','School project · year 2'])} · ${tx(p.kind)}</p><h3>${go(`project/${p.id}`,tx(p.name))}</h3><p>${tx(p.intro)}</p></div><div class="project-side"><span>${esc(p.stack.slice(0,2).join(' · '))}</span>${go(`project/${p.id}`,`${tx(['Lees het project','Read the project'])} <span aria-hidden="true">↗</span>`,'row-link')}</div></article>`;
|
||||
}
|
||||
function home() {
|
||||
const p = projects[0];
|
||||
return `<section class="hero"><div class="hero-copy"><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>${p ? system(p,true) : ''}${p ? `<div class="aside-caption"><span class="mono">${esc(p.number)} /</span><div><strong>${tx(p.name)}</strong><p>${tx(p.kind)}</p></div>${go(`project/${p.id}`, '<span class="sr-only">' + tx(p.name) + '</span>↗','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">${String(projects.length).padStart(2, '0')} ${tx(['PROJECTEN','PROJECTS'])}</span></div>${projects.length ? projects.map(projectRow).join('') : emptyProjects()}</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>`;
|
||||
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 `<section class="hero"><p class="eyebrow">Alvin Zilverstand · Software Developer</p><h1>${tx(['Ik bouw software die een concreet probleem oplost.','I build software around real problems.'])}</h1><div class="hero-bottom"><p>${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.'])}</p>${go('work',`${tx(['Bekijk alle projecten','Browse all projects'])} <span aria-hidden="true">↗</span>`,'text-link')}</div></section>
|
||||
${featured ? `<section class="feature"><div class="feature-intro"><p class="eyebrow">${tx(['Uitgelicht project','Featured project'])}</p><h2>${go(`project/${featured.id}`,tx(featured.name))}</h2><p>${tx(featured.intro)}</p>${go(`project/${featured.id}`,`${tx(['Lees het dossier','Read the project file'])} <span aria-hidden="true">↗</span>`,'text-link')}</div><div class="feature-note"><span>${tx(['Waarom dit project','Why this project'])}</span><p>${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.'])}</p></div></section>` : ''}
|
||||
<section class="section"><div class="section-heading"><h2>${tx(['Nog twee kanten van mijn werk','Two other sides of my work'])}</h2></div>${selected.length ? selected.map(projectRow).join('') : emptyProjects()}<p class="all-work">${go('work',`${tx(['Volledig archief: alle projecten','Complete archive: all projects'])} <span aria-hidden="true">↗</span>`,'text-link')}</p></section>
|
||||
<section class="exam-callout"><div><h2>${tx(['Bronnen voor mijn examen','Sources for my exam'])}</h2><p>${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.'])}</p></div>${go('evidence',`${tx(['Bekijk de bewijsindex','View the evidence index'])} <span aria-hidden="true">↗</span>`,'text-link')}</section>`;
|
||||
}
|
||||
function emptyProjects() { return `<p class="empty-state">${tx(['Nog geen projecten toegevoegd.','No projects added yet.'])}</p>`; }
|
||||
function work() {
|
||||
return `<section class="page-heading"><p class="eyebrow">01 / ${tx(['PROJECTARCHIEF','PROJECT ARCHIVE'])}</p><h1>${tx(['Gebouwd. Onderzocht.','Built. Explored.'])}<br><em>${tx(['Verder geleerd.','Still learning.'])}</em></h1><p>${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.'])}</p></section><section class="section work-list">${projects.length ? projects.map(p=>`<div>${system(p)}${projectRow(p)}</div>`).join('') : emptyProjects()}</section><div class="archive-link">${ext(profile.school,tx(['Bekijk het volledige schoolarchief','Browse the full school archive']),'text-link')}</div>`;
|
||||
return `<section class="page-heading"><p class="eyebrow">${tx(['Alle projecten','All projects'])}</p><h1>${tx(['Projectarchief','Project archive'])}</h1><p>${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.'])}</p></section><section class="work-list">${projects.length ? projects.map(projectRow).join('') : emptyProjects()}</section>`;
|
||||
}
|
||||
function detail(p) {
|
||||
return `<section class="page-heading project-heading">${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}<p class="eyebrow">PROJECT ${esc(p.number)} / ${p.challenge === '—' ? tx(['PERSOONLIJK PROJECT','PERSONAL PROJECT']) : `CHALLENGE ${esc(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(p.setting || ['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,p),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,p),`<span><small class="mono">${esc(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}`,esc(c),'tag')).join('')}</div></div></div>`;
|
||||
return `<section class="page-heading project-heading">${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}<p class="eyebrow">${tx(p.setting || ['Schoolproject · leerjaar 2','School project · year 2'])} · ${tx(p.kind)}</p><h1>${tx(p.name)}</h1><p>${tx(p.intro)}</p><div class="project-actions">${ext(source(p.path,true,p),tx(['Open repository','Open repository']),'text-link')}<span>${esc(p.stack.join(' · '))}</span></div></section><div class="project-layout"><div class="project-story"><section><h2>${tx(['De opdracht','The assignment'])}</h2><p>${tx(p.context)}</p></section><section><h2>${tx(['Hoe het is opgebouwd','How it is built'])}</h2><p>${tx(p.implementation)}</p>${p.nodes.length === 3 ? `<div class="architecture"><p>${tx(['Schematische opbouw','Schematic structure'])}</p><ol>${p.nodes.map(node=>`<li>${esc(node)}</li>`).join('')}</ol></div>` : ''}</section><section><h2>${tx(['Bronbestanden','Source files'])}</h2><p class="muted">${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.'])}</p><div class="evidence-links">${p.evidence.map(e=>ext(source(e.path,e.directory,p),`<span><small class="mono">${esc(e.type)}</small>${tx(e.label)}</span>`)).join('')}</div></section><section><h2>${tx(['Keuzes en aandachtspunten','Decisions and considerations'])}</h2><p>${tx(p.decisions)}</p></section><section class="reflection"><h2>${tx(['Eigen bijdrage en reflectie','My contribution and reflection'])}</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><aside class="project-meta"><h2>${tx(['Projectcontext','Project context'])}</h2><dl><dt>${tx(['Opleiding','Course'])}</dt><dd>Software Developer</dd><dt>${tx(['Context','Context'])}</dt><dd>${tx(p.setting || ['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(['Beoordeling','Assessment'])}</dt><dd>${tx(['Niet vastgesteld','Not established'])}</dd></dl>${p.codes.length ? `<p>${tx(['Voorlopig gekoppelde werkprocessen','Provisionally mapped work processes'])}</p><div class="tags">${p.codes.map(c=>go(`evidence/${c}`,esc(c),'tag')).join('')}</div>` : ''}</aside></div>`;
|
||||
}
|
||||
function evidence(filter = '') {
|
||||
const selected = processes.some(p=>p.code === filter) ? filter : '';
|
||||
|
||||
Reference in new issue
Block a user