Initial commit with design and layout files

This commit is contained in:
2026-09-27 11:56:06 +02:00
commit 68db0d450a
46 changed files with 3640 additions and 0 deletions
@@ -0,0 +1,77 @@
# Als PowerShell het script blokkeert
Windows weigert standaard `.ps1`-bestanden uit te voeren. Je krijgt dan:
```
... is not digitally signed. You cannot run this script on the current system.
```
Dit ligt niet aan het script. Hieronder drie oplossingen, van makkelijk naar
hardnekkig.
---
## 1. Dubbelklik `download-images.cmd`
Die wrapper start PowerShell met `-ExecutionPolicy Bypass` voor dat ene proces.
Verder verandert er niets aan je systeem.
## 2. Zet de policy om voor alleen dit venster
```powershell
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\download-images.ps1
```
`-Scope Process` geldt tot je het venster sluit. Je hebt hier geen
administratorrechten voor nodig.
Komt het bestand uit een zip die je van internet hebt gehaald, dan kan ook de
"Mark of the Web" meespelen. Die haal je er zo af:
```powershell
Get-ChildItem -Recurse ..\ | Unblock-File
```
## 3. Inline, zonder scriptbestand
De execution policy geldt voor scriptbestanden, niet voor commando's die je
zelf intypt of plakt. Deze variant werkt dus ook als je policy via Group Policy
is vastgezet en je hem niet mag wijzigen.
Plak dit in PowerShell, vanuit de `scripts`-map:
```powershell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$ProgressPreference = 'SilentlyContinue'
$imgDir = Join-Path (Split-Path $PWD -Parent) 'assets\img'
Get-Content (Join-Path $imgDir 'manifest.txt') | ForEach-Object {
$line = $_.Trim()
if ($line -and -not $line.StartsWith('#')) {
$parts = $line -split '\s+', 2
$target = Join-Path $imgDir $parts[0]
if (Test-Path $target) {
Write-Host " overslaan $($parts[0])"
} else {
Write-Host " ophalen $($parts[0])"
try { Invoke-WebRequest -Uri $parts[1] -OutFile $target -UseBasicParsing -TimeoutSec 30 }
catch { Write-Host " MISLUKT $($parts[0])" -ForegroundColor Red }
}
}
}
```
---
## Helemaal geen PowerShell?
Heb je Git for Windows of WSL, gebruik dan gewoon de bash-versie:
```bash
bash scripts/download-images.sh
```
En als laatste redmiddel: `assets/img/manifest.txt` is leesbaar met het blote
oog. Elke regel is `<bestandsnaam> <URL>`. Je kunt de dertig afbeeldingen ook
met de hand opslaan in `assets/img/` onder de naam die links staat.
@@ -0,0 +1,15 @@
@echo off
REM Dubbelklik dit bestand om de afbeeldingen op te halen.
REM
REM Waarom deze wrapper bestaat: Windows blokkeert standaard het direct
REM uitvoeren van .ps1-bestanden. Met -ExecutionPolicy Bypass geldt de
REM uitzondering alleen voor dit ene PowerShell-proces; je systeeminstelling
REM verandert niet.
setlocal
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0download-images.ps1" %*
echo.
pause
@@ -0,0 +1,63 @@
<#
Downloadt alle afbeeldingen uit assets/img/manifest.txt naar assets/img/.
Gebruik: powershell -ExecutionPolicy Bypass -File scripts\download-images.ps1
Opnieuw draaien is veilig; gebruik -Force om bestaande bestanden te overschrijven.
#>
[CmdletBinding()]
param(
[switch]$Force
)
$ErrorActionPreference = 'Stop'
# Windows PowerShell 5.1 onderhandelt standaard nog TLS 1.0/1.1; veel servers
# weigeren dat inmiddels. En de voortgangsbalk van Invoke-WebRequest maakt
# downloads in 5.1 tot tientallen keren trager, dus die zetten we uit.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$ProgressPreference = 'SilentlyContinue'
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$rootDir = Split-Path -Parent $scriptDir
$imgDir = Join-Path $rootDir 'assets\img'
$manifest = Join-Path $imgDir 'manifest.txt'
if (-not (Test-Path $manifest)) {
Write-Error "Manifest niet gevonden: $manifest"
}
$ok = 0; $skipped = 0; $failed = 0
foreach ($line in Get-Content $manifest) {
$trimmed = $line.Trim()
if ($trimmed -eq '' -or $trimmed.StartsWith('#')) { continue }
$parts = $trimmed -split '\s+', 2
if ($parts.Count -lt 2) { continue }
$name = $parts[0]
$url = $parts[1]
$target = Join-Path $imgDir $name
if ((Test-Path $target) -and (-not $Force)) {
Write-Host " overslaan $name"
$skipped++
continue
}
Write-Host " ophalen $name ... " -NoNewline
try {
Invoke-WebRequest -Uri $url -OutFile $target -UseBasicParsing -TimeoutSec 30
Write-Host 'ok'
$ok++
}
catch {
Write-Host "MISLUKT ($url)"
if (Test-Path $target) { Remove-Item $target -Force }
$failed++
}
}
Write-Host ''
Write-Host "Klaar: $ok gedownload, $skipped overgeslagen, $failed mislukt."
if ($failed -gt 0) { exit 1 }
@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# Downloadt alle afbeeldingen uit assets/img/manifest.txt naar assets/img/.
# Gebruik: bash scripts/download-images.sh
# Opnieuw draaien is veilig: bestaande bestanden worden overgeslagen (--force om te overschrijven).
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
IMG_DIR="$ROOT_DIR/assets/img"
MANIFEST="$IMG_DIR/manifest.txt"
FORCE=0
[[ "${1:-}" == "--force" ]] && FORCE=1
if [[ ! -f "$MANIFEST" ]]; then
echo "Manifest niet gevonden: $MANIFEST" >&2
exit 1
fi
if ! command -v curl >/dev/null 2>&1; then
echo "curl is niet geinstalleerd. Installeer curl of gebruik de PowerShell-versie." >&2
exit 1
fi
ok=0; skipped=0; failed=0
while read -r name url; do
[[ -z "${name:-}" || "$name" == \#* ]] && continue
[[ -z "${url:-}" ]] && continue
target="$IMG_DIR/$name"
if [[ -f "$target" && $FORCE -eq 0 ]]; then
echo " overslaan $name"
skipped=$((skipped+1))
continue
fi
printf ' ophalen %s ... ' "$name"
if curl -fsSL --retry 2 --connect-timeout 15 -o "$target.part" "$url"; then
mv "$target.part" "$target"
echo "ok"
ok=$((ok+1))
else
rm -f "$target.part"
echo "MISLUKT ($url)"
failed=$((failed+1))
fi
done < "$MANIFEST"
echo
echo "Klaar: $ok gedownload, $skipped overgeslagen, $failed mislukt."
[[ $failed -gt 0 ]] && exit 1
exit 0