Compare commits

...

4 Commits

Author SHA1 Message Date
Vladimír Duša
bbc21734bb Add Czech bio content
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-11 14:15:00 +01:00
Vladimír Duša
0412d031be Add English bio content
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-11 14:12:22 +01:00
Vladimír Duša
9644229a40 Disable Astro's default locale redirect to allow custom language detection
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-11 13:20:38 +01:00
Vladimír Duša
0cc447c113 Detect browser language on root and redirect to /cs/ or /en/
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-11 13:03:48 +01:00
4 changed files with 22 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ export default defineConfig({
locales: ['cs', 'en'],
routing: {
prefixDefaultLocale: true,
redirectToDefaultLocale: false,
},
},
});

View File

@@ -9,14 +9,13 @@ const lang = 'cs';
<h1 class="site-name text-lg mb-12">Vladimír&nbsp;Duša</h1>
<div class="text-gray-700 leading-relaxed space-y-5 text-sm">
<p>
Jsem [váš popis — např. vývojář, designér, pedagog...] se zájmem o [témata, kterým se věnujete].
Na tomto webu sdílím své myšlenky, zkušenosti a postřehy z oblastí, které mě baví a zajímají.
Vývojář ve dne, táta tří zvídavých dětí muž mé nejlepší ženy celý den. Jmenuji se Vladimír a žiju v příjemném chaosu, kde se mezi debugováním kódu řeší, proč je obloha modrá, jak fungují černé díry a jestli se dá matematika naučit hrou. Protože věříme, že zvídavost je lepší základ než osnovy, vzděláváme naše děti doma a upřímně, ony učí nás stejně tolik, jako my je.
</p>
<p>
[Druhý odstavec — co vás formovalo, co děláte profesně nebo osobně, co vás žene dopředu.]
Jako vývojář mě odjakživa bavilo samotné psaní kódu ten moment, kdy stroj začne poslouchat. Dnes mi tuhle radost stále víc bere z ruky AI. Je to fascinující posun, nicméně mi to přijde trochu líto. AI mě zajímá stejně jako věda a matematika. Rád poznávám nová území - jak ta virtuální, mentální tak i svět jako takový.
</p>
<p>
[Třetí odstavec — jak vás mohou čtenáři kontaktovat, co zde najdou, nebo co je na tomto blogu jinak.]
Na tomhle webu ukládám své myšlenky. Kontaktovat mne můžete na <span style="unicode-bidi:bidi-override; direction:rtl">zc.asud@rimidalv</span>
</p>
</div>
</div>

View File

@@ -9,14 +9,13 @@ const lang = 'en';
<h1 class="site-name text-lg mb-12">Vladimír&nbsp;Duša</h1>
<div class="text-gray-700 leading-relaxed space-y-5 text-sm">
<p>
I am [your description — e.g. developer, designer, educator...] with an interest in [topics you focus on].
On this website I share my thoughts, experiences and observations from areas that interest and excite me.
Developer by day, father of three curious kids, and my wonderful wife's husban all day long. My name is Vladimír and I live in a pleasant chaos where, between debugging code, we tackle questions like why the sky is blue, how black holes work, and whether math can be learned through play. Because we believe curiosity is a better foundation than a curriculum, we homeschool our children — and honestly, they teach us just as much as we teach them.
</p>
<p>
[Second paragraph — what shaped you, what you do professionally or personally, what drives you forward.]
As a developer, I've always loved the act of writing code itself — that moment when the machine starts to listen. These days, AI is increasingly taking that joy out of my hands. It's a fascinating shift, though I find it a little bittersweet. AI interests me just as much as science and mathematics. I enjoy exploring new territories — virtual ones, mental ones, and the world at large.
</p>
<p>
[Third paragraph — how readers can contact you, what they will find here, or what makes this blog different.]
On this site I store my thoughts. You can reach me at <span style="unicode-bidi:bidi-override; direction:rtl">zc.asud@rimidalv</span>
</p>
</div>
</div>

View File

@@ -1,3 +1,16 @@
---
return Astro.redirect('/cs/');
---
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<script is:inline>
var lang = (navigator.language || navigator.languages && navigator.languages[0] || '').toLowerCase();
window.location.replace(lang.startsWith('cs') ? '/cs/' : '/en/');
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=/en/" />
</noscript>
</head>
<body></body>
</html>