Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ yarn-error.log*
/personal-website-bruno
/website-api-bruno
/.github/.idea
dist-ssr
17 changes: 4 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,8 @@
<link rel="preload" href="/node_modules/@fontsource/kay-pho-du/files/kay-pho-du-latin-700-normal.woff2" as="font" type="font/woff2" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!-- data-react-helmet: react-helmet replaces this tag with a page's own description
instead of adding a second one; crawlers that skip JS still get this fallback. -->
<meta data-react-helmet="true" name="description" content="Portfolio of Svit Spindler, a web developer specializing in full-stack and frontend development, React and mobile app development. See my projects and experience." />
<meta name="keywords" content="Svit Spindler, web developer, software engineer, portfolio, front-end development, React, JavaScript, full-stack development" />
<meta name="author" content="Svit Spindler" />
<meta property="og:title" content="Svit Spindler - Full-Stack Developer" />
<meta property="og:description" content="Welcome to the portfolio of Svit Spindler, showcasing projects and skills in web development and software engineering." />
<meta property="og:url" content="https://svitspindler.com" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/assets/favicon.ico" />
<meta name="twitter:title" content="Svit Spindler - Full-Stack Developer" />
<meta name="twitter:description" content="Portfolio of Svit Spindler, showcasing projects and expertise in front-end development and UI/UX design." />
<meta name="impact-site-verification" value="9dc3a161-7b5f-443c-ba3a-1503d2ccb858" />


Expand All @@ -40,10 +30,11 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Svit Spindler</title>
<!--prerender-head-->
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<body class="light-mode">
<!-- Before first paint: dark-mode visitors get their theme without a light flash -->
<script>try{if(JSON.parse(localStorage.getItem("darkMode"))===true)document.body.className="dark-mode"}catch(e){}</script>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
Expand Down
46 changes: 31 additions & 15 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,58 +1,74 @@
# Routes of the single-page app, served by index.html. Keep this list in sync with the
# <Route>s in src/index.tsx: `npm run check-netlify-routes` (run in CI) compares them.
# Real files in build/ always win over these rules, and "/" is index.html itself.
# Every page is prerendered at build time (scripts/prerender.mjs, run by `npm run build`) into
# build/<route>/index.html, and "/" is build/index.html. Each route gets one rewrite to its own
# file, so /contact is served as-is (status 200): no redirect to /contact/, no .html in the URL.
# force = true makes the rewrite win over Netlify's directory handling for build/contact/.
# Keep this list in sync with the <Route>s in src/AppRoutes.tsx: `npm run check-netlify-routes`
# (run in CI) compares them.
[build]
command = "npm run build"
publish = "build"

[[redirects]]
from = "/contact"
to = "/index.html"
to = "/contact/index.html"
status = 200
force = true

[[redirects]]
from = "/donate"
to = "/index.html"
to = "/donate/index.html"
status = 200
force = true

[[redirects]]
from = "/uninstall"
to = "/index.html"
to = "/uninstall/index.html"
status = 200
force = true

[[redirects]]
from = "/microsoft-automatic-rewards"
to = "/index.html"
to = "/microsoft-automatic-rewards/index.html"
status = 200
force = true

[[redirects]]
from = "/microsoft-automatic-rewards/mobile/privacy"
to = "/index.html"
to = "/microsoft-automatic-rewards/mobile/privacy/index.html"
status = 200
force = true

[[redirects]]
from = "/microsoft-automatic-rewards/mobile/website"
to = "/index.html"
to = "/microsoft-automatic-rewards/mobile/website/index.html"
status = 200
force = true

[[redirects]]
from = "/microsoft-automatic-rewards/mobile/test-app"
to = "/index.html"
to = "/microsoft-automatic-rewards/mobile/test-app/index.html"
status = 200
force = true

[[redirects]]
from = "/prolific-studies-notifier"
to = "/index.html"
to = "/prolific-studies-notifier/index.html"
status = 200
force = true

[[redirects]]
from = "/free-game-claimer"
to = "/index.html"
to = "/free-game-claimer/index.html"
status = 200
force = true

# Everything else doesn't exist: the app still renders its "Page not found" page, but with
# a real 404 status. Crawlers and agents (e.g. /.well-known/ard.json) then see a missing
# Everything else doesn't exist: the prerendered "Page not found" page, with a real 404
# status. Crawlers and agents (e.g. /.well-known/ard.json) then see a missing
# page instead of a 200, and a tab from an older deploy that asks for a removed /static/
# chunk gets a clean failure, after which src/index.tsx reloads it.
[[redirects]]
from = "/*"
to = "/index.html"
to = "/404.html"
status = 404

# Vite emits its JS, CSS and fonts into /static/ with a content hash in each file name,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build && vite build --ssr src/entry-server.tsx && node scripts/sitemap-generator.js build/sitemap.xml && node scripts/prerender.mjs",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
Expand Down
Binary file added public/assets/og/free-game-claimer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/og/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/og/prolific-studies-notifier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/llms.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Svit Spindler

> Portfolio of Svit Spindler, a computer science graduate and software developer with hands-on experience in mobile, web, backend and database development. The site lists work experience, hobby projects (Chrome extensions, mobile apps, websites and a video game) and ways to get in touch.
> Svit Spindler is a full-stack software engineer in Ljubljana (Java, Spring Boot, Kotlin, TypeScript, React, Next.js) with a computer science degree from the University of Ljubljana. This portfolio lists his work experience, Digitalna Košarica, three free browser extensions with 40,000+ users in total, and hobby projects (mobile apps, websites and a video game), and tells you how to get in touch.

The site is available in English and Slovenian (add `?lang=sl` to a URL for Slovenian).

Expand All @@ -25,7 +25,7 @@ The site is available in English and Slovenian (add `?lang=sl` to a URL for Slov
- [Digitalna Košarica](https://digitalna-kosarica.si/): price comparison website for Slovenian grocery stores, built with Spring Boot, PostgreSQL/TimescaleDB and Next.js
- [Search Automatic Rewards](https://svitspindler.com/microsoft-automatic-rewards): Chrome and Firefox extension that automates daily Microsoft Rewards points, with Google's Featured badge ([source](https://github.com/spin311/MicrosoftRewardsWebsite))
- [Prolific Studies Notifier](https://svitspindler.com/prolific-studies-notifier): Chrome and Firefox extension that alerts users to new Prolific studies ([source](https://github.com/spin311/ProlificAutomaticStudies))
- [Free Game Claimer](https://svitspindler.com/free-game-claimer): Chrome and Firefox extension that automatically claims free games from Epic, Steam, GOG, IndieGala and Prime Gaming ([source](https://github.com/spin311/epic-free-games-claim))
- [Free Game Claimer](https://svitspindler.com/free-game-claimer): Chrome and Firefox extension that automatically claims free games from Epic, Steam, GOG, IndieGala and Prime Gaming; available in 7 languages ([source](https://github.com/spin311/epic-free-games-claim))
- [Gobar](https://juicevodka.github.io/Gobar/): mobile app that identifies mushrooms with an AI model; won "Best Carbon footprint reduction app" at DragonHack 2023 ([source](https://github.com/JuiceVodka/Gobar))
- [KeSi](https://juicevodka.github.io/KeSi/): Android location-guessing game similar to GeoGuessr, built at DragonHack 2024 with Kotlin ([source](https://github.com/JuiceVodka/KeSi))
- [ChatGPT prompt engineering](https://spin311.github.io/diploma/): website for a thesis experiment that compiles Python code alongside a ChatGPT chat; Java and HSQLDB backend on AWS ([source](https://github.com/spin311/hiter-inzeniring-diploma))
Expand Down
18 changes: 18 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# https://www.robotstxt.org/robotstxt.html
# Search engines, link previews and AI crawlers are all welcome. /uninstall stays out
# of search through its noindex tag, not here: a crawler blocked by robots.txt never
# fetches the page, so it would never see the tag.
User-agent: *
Disallow:

# AI crawlers and agents, named explicitly so the permission is unambiguous.
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-User
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow:

Sitemap: https://svitspindler.com/sitemap.xml
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://svitspindler.com/</loc><changefreq>daily</changefreq><priority>1.0</priority></url><url><loc>https://svitspindler.com/contact</loc><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://svitspindler.com/donate</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/uninstall</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards/mobile/privacy</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards/mobile/website</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards/mobile/test-app</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/prolific-studies-notifier</loc><changefreq>monthly</changefreq></url><url><loc>https://svitspindler.com/free-game-claimer</loc><changefreq>monthly</changefreq></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://svitspindler.com/</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/contact</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/donate</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards/mobile/privacy</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards/mobile/website</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/microsoft-automatic-rewards/mobile/test-app</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/prolific-studies-notifier</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url><url><loc>https://svitspindler.com/free-game-claimer</loc><lastmod>2026-11-26T00:00:00.000Z</lastmod></url></urlset>
42 changes: 35 additions & 7 deletions scripts/check-netlify-routes.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const fs = require('fs');
const path = require('path');

// --- Load route paths from index.tsx ---
const indexPath = path.resolve(__dirname, '../src/index.tsx');
// --- Load route paths from AppRoutes.tsx ---
const indexPath = path.resolve(__dirname, '../src/AppRoutes.tsx');
const indexContent = fs.readFileSync(indexPath, 'utf-8');

const routeRegex = /<Route\s+path="([^"]+)"/g;
Expand All @@ -15,30 +15,58 @@ while ((match = routeRegex.exec(indexContent)) !== null) {
}
}

// --- Load the SPA rewrites (status 200 to /index.html) from netlify.toml ---
// --- Load the rewrites (status 200 to the route's own prerendered file) from netlify.toml ---
const netlifyPath = path.resolve(__dirname, '../netlify.toml');
const netlifyContent = fs.readFileSync(netlifyPath, 'utf-8');

const rewriteRegex = /from\s*=\s*"([^"]+)"\s+to\s*=\s*"\/index\.html"\s+status\s*=\s*200\b/g;
const rewriteRegex = /from\s*=\s*"([^"]+)"\s+to\s*=\s*"([^"]+)"\s+status\s*=\s*200\b/g;
const rewrites = new Set();
const wrongTarget = [];
while ((match = rewriteRegex.exec(netlifyContent)) !== null) {
rewrites.add(match[1]);
if (match[2] !== `${match[1]}/index.html`) {
wrongTarget.push(`${match[1]} -> ${match[2]}`);
}
}

// Every route needs page metadata in src/seo/routes.ts, or the prerender would give it
// the not-found page's head
const seoPath = path.resolve(__dirname, '../src/seo/routes.ts');
const seoContent = fs.readFileSync(seoPath, 'utf-8');
const seoPaths = new Set();
const seoRegex = /\bpath:\s*"([^"]+)"/g;
while ((match = seoRegex.exec(seoContent)) !== null) {
seoPaths.add(match[1]);
}
const missingFromSeo = [...routes].filter(r => !seoPaths.has(r));

// --- Compare sets ---
const missingFromNetlify = [...routes].filter(r => !rewrites.has(r));
const unknownInNetlify = [...rewrites].filter(r => !routes.has(r));

if (missingFromNetlify.length > 0 || unknownInNetlify.length > 0) {
if (
missingFromNetlify.length > 0 ||
unknownInNetlify.length > 0 ||
wrongTarget.length > 0 ||
missingFromSeo.length > 0
) {
if (missingFromNetlify.length > 0) {
console.error('❌ These routes have no rewrite in netlify.toml, so Netlify would answer them with a 404:');
missingFromNetlify.forEach(route => console.error(` - ${route}`));
}
if (unknownInNetlify.length > 0) {
console.error('❌ These netlify.toml rewrites match no route in src/index.tsx:');
console.error('❌ These netlify.toml rewrites match no route in src/AppRoutes.tsx:');
unknownInNetlify.forEach(route => console.error(` - ${route}`));
}
if (wrongTarget.length > 0) {
console.error('❌ These rewrites must point at their own prerendered file (<route>/index.html):');
wrongTarget.forEach(route => console.error(` - ${route}`));
}
if (missingFromSeo.length > 0) {
console.error('❌ These routes have no entry in src/seo/routes.ts, so they would be prerendered without their own head tags:');
missingFromSeo.forEach(route => console.error(` - ${route}`));
}
process.exit(1);
} else {
console.log('✅ All routes have a rewrite in netlify.toml.');
console.log('✅ All routes have a rewrite in netlify.toml and an entry in src/seo/routes.ts.');
}
26 changes: 20 additions & 6 deletions scripts/check-sitemap.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const fs = require('fs');
const path = require('path');

// --- Load route paths from index.js ---
const indexPath = path.resolve(__dirname, '../src/index.tsx');
// --- Load route paths from AppRoutes.tsx ---
const indexPath = path.resolve(__dirname, '../src/AppRoutes.tsx');
const indexContent = fs.readFileSync(indexPath, 'utf-8');

const routeRegex = /<Route\s+path="([^"]+)"/g;
Expand All @@ -22,12 +22,26 @@ while ((match = sitemapRegex.exec(sitemapContent)) !== null) {
sitemapUrls.add(match[1]);
}

// --- Pages that must stay out of the sitemap (noindex) ---
const seoContent = fs.readFileSync(path.resolve(__dirname, '../src/seo/routes.ts'), 'utf-8');
const noindexMatch = /NOINDEX_PATHS\s*=\s*\[([^\]]*)\]/.exec(seoContent);
const noindexPaths = new Set(
noindexMatch ? [...noindexMatch[1].matchAll(/"([^"]+)"/g)].map(m => m[1]) : []
);

// --- Compare sets ---
const missingFromSitemap = [...routes].filter(r => !sitemapUrls.has(r) && r !== '*');
const missingFromSitemap = [...routes].filter(r => !sitemapUrls.has(r) && r !== '*' && !noindexPaths.has(r));
const noindexInSitemap = [...noindexPaths].filter(r => sitemapUrls.has(r));

if (missingFromSitemap.length > 0) {
console.error('❌ The following routes are missing from the sitemap:');
missingFromSitemap.forEach(route => console.error(` - ${route}`));
if (missingFromSitemap.length > 0 || noindexInSitemap.length > 0) {
if (missingFromSitemap.length > 0) {
console.error('❌ The following routes are missing from the sitemap:');
missingFromSitemap.forEach(route => console.error(` - ${route}`));
}
if (noindexInSitemap.length > 0) {
console.error('❌ The following noindex pages must not be in the sitemap:');
noindexInSitemap.forEach(route => console.error(` - ${route}`));
}
process.exit(1);
} else {
console.log('✅ All routes are present in the sitemap.');
Expand Down
17 changes: 17 additions & 0 deletions scripts/og/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Share images (Open Graph / Twitter cards) for the site, 1200x630 PNG in public/assets/og/.
src/seo/routes.ts picks one per page: home.png for most pages, the extension's own image
for /free-game-claimer and /prolific-studies-notifier.

They are generated from template.html and committed; this is not part of `npm run build`.
To change one, edit template.html (the three variants are the .card blocks) and run, from the
repository root, with any Playwright installation and its Chromium:

PLAYWRIGHT_CORE_PATH="$(npm root -g)/@playwright/cli/node_modules/playwright-core" \
CHROME_PATH="$HOME/Library/Caches/ms-playwright/chromium-1248/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing" \
node scripts/og/generate.mjs

(PLAYWRIGHT_CORE_PATH can be left out when playwright-core resolves from the repository.)
Then shrink them if one is over ~150 KB, for example with pngquant or
`python3 -c "from PIL import Image; im = Image.open(f).convert('RGB').quantize(256); im.save(f, optimize=True)"`.
Never put Microsoft's logo, its four-colour squares or its name in an image: see
the Microsoft Rewards notes in the marketing plan.
23 changes: 23 additions & 0 deletions scripts/og/generate.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Renders the share images in public/assets/og/ from scripts/og/template.html.
// Not part of the Netlify build: run it by hand when a page's share image should change
// and commit the PNGs. See scripts/og/README.txt.
import { createRequire } from "node:module";
import path from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";

const here = path.dirname(fileURLToPath(import.meta.url));
const outDir = path.resolve(here, "../../public/assets/og");
const variants = ["home", "free-game-claimer", "prolific-studies-notifier"];

const require = createRequire(import.meta.url);
const { chromium } = require(process.env.PLAYWRIGHT_CORE_PATH ?? "playwright-core");

const browser = await chromium.launch({ executablePath: process.env.CHROME_PATH });
const page = await browser.newPage({ viewport: { width: 1200, height: 630 } });
for (const variant of variants) {
await page.goto(`${pathToFileURL(path.join(here, "template.html")).href}?v=${variant}`);
await page.evaluate(() => document.fonts.ready);
await page.screenshot({ path: path.join(outDir, `${variant}.png`) });
console.log(`wrote public/assets/og/${variant}.png`);
}
await browser.close();
Loading
Loading