diff --git a/.gitignore b/.gitignore index d4fccfb..9794e96 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ dist # actually ship; no need to bloat the repo with the 1.7MB originals. /intro.png /gameover.png +/win.png +/win2.png diff --git a/public/win.webp b/public/win.webp new file mode 100644 index 0000000..47ae196 Binary files /dev/null and b/public/win.webp differ diff --git a/src/main.ts b/src/main.ts index 742ab2f..597eeec 100644 --- a/src/main.ts +++ b/src/main.ts @@ -176,7 +176,7 @@ function renderEnding(): void { ? 'Misstanken nådde taket innan avvikelserna gjorde det. Ingen kartong står vid din plats — bara ett formulär om att du aldrig anställdes. Det är redan ifyllt.' : 'För många avvikelser. En kartong står redan vid din plats. Den är adresserad till din efterträdare, med ditt namn överstruket en gång.'; - shell(`
+ shell(`
SLUTLIG PERSONALAKT
${stamp}

${title}

diff --git a/src/style.css b/src/style.css index 0781acc..0f70e91 100644 --- a/src/style.css +++ b/src/style.css @@ -81,7 +81,12 @@ button { font: inherit; } linear-gradient(rgba(13, 13, 26, 0.6), rgba(13, 13, 26, 0.88)), url('/intro.webp') center / cover no-repeat; } -.end-screen { +.end-screen.victory { + background: + linear-gradient(rgba(13, 13, 26, 0.55), rgba(13, 13, 26, 0.85)), + url('/win.webp') center / cover no-repeat; +} +.end-screen.failure { background: linear-gradient(rgba(13, 13, 26, 0.55), rgba(13, 13, 26, 0.85)), url('/gameover.webp') center / cover no-repeat;