Compare commits

..

No commits in common. "main" and "develop" have entirely different histories.

14 changed files with 367 additions and 738 deletions

View File

@ -12,9 +12,9 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/mdx": "^3.1.5", "@astrojs/mdx": "^3.1.2",
"@astrojs/node": "^8.3.3", "@astrojs/node": "^8.3.2",
"@astrojs/react": "^3.6.2", "@astrojs/react": "^3.6.0",
"@astrojs/rss": "^4.0.7", "@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6", "@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0", "@astrojs/tailwind": "^5.1.0",
@ -28,7 +28,7 @@
"@tailwindcss/typography": "^0.5.13", "@tailwindcss/typography": "^0.5.13",
"@types/react": "^18.2.74", "@types/react": "^18.2.74",
"@types/react-dom": "^18.2.24", "@types/react-dom": "^18.2.24",
"astro": "^4.15.1", "astro": "^4.11.5",
"astro-seo": "^0.8.4", "astro-seo": "^0.8.4",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"clsx": "^2.1.0", "clsx": "^2.1.0",

File diff suppressed because it is too large Load Diff

View File

@ -5,12 +5,11 @@ import { ContactButton } from "./ContactButton";
<!-- Contacts list --> <!-- Contacts list -->
<div> <div>
<div class="relative top-[97vh] left-[21vw] z-[1000] sm:fixed sm:left-2 sm:top-[38%] flex sm:flex-col text-lg text-content" > <div class="relative top-[97vh] left-[26vw] z-[1000] sm:fixed sm:left-2 sm:top-[38%] flex sm:flex-col text-lg text-content" >
<ContactButton variant={"mail"} link={"mailto:cyril@cyrilsebek.cz"} tooltip={"Mail"} client:load/> <ContactButton variant={"mail"} link={"mailto:cyril@cyrilsebek.cz"} tooltip={"Mail"} client:load/>
<ContactButton variant={"telegram"} link={"https://t.me/blboun3"} tooltip={"Telegram Chat"} client:load/> <ContactButton variant={"telegram"} link={"https://t.me/blboun3"} tooltip={"Telegram Chat"} client:load/>
<ContactButton variant={"matrix"} link={"https://matrix.to/#/@cyril:cyrilsebek.cz"} tooltip={"Matrix Chat"} client:load/> <ContactButton variant={"matrix"} link={"https://matrix.to/#/@cyril:cyrilsebek.cz"} tooltip={"Matrix Chat"} client:load/>
<ContactButton variant={"github"} link={"https://github.com/Blboun3"} tooltip={"Github"} client:load/> <ContactButton variant={"github"} link={"https://github.com/Blboun3"} tooltip={"Github"} client:load/>
<ContactButton variant={"git"} link={"https://git.cyrilsebek.cz/blboun3"} tooltip={"Selfhosted gitea"} client:load/> <ContactButton variant={"git"} link={"https://git.cyrilsebek.cz/blboun3"} tooltip={"Selfhosted gitea"} client:load/>
<ContactButton variant={"mastodon"} link={"https://mastodon.cyrilsebek.cz/@blboun3"} tooltip={"Mastodon"} client:load/>
</div> </div>
</div> </div>

View File

@ -2,7 +2,7 @@
title: "Cesta k webovkám" title: "Cesta k webovkám"
description: "Příběh vzniku těchto úžasných stránek" description: "Příběh vzniku těchto úžasných stránek"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-06T9:34:25Z publishDate: 2024-06-07T9:34:25Z
image: image:
url: "/blog/post-1.png" url: "/blog/post-1.png"
alt: "Snímek mojí osobní webové stránky" alt: "Snímek mojí osobní webové stránky"

View File

@ -2,7 +2,7 @@
title: "Pushing site to production" title: "Pushing site to production"
description: "My journey of creating this amazing personal website" description: "My journey of creating this amazing personal website"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-06T9:34:25Z publishDate: 2024-06-07T9:34:25Z
image: image:
url: "/blog/post-1.png" url: "/blog/post-1.png"
alt: "Screenshot of my personal website" alt: "Screenshot of my personal website"

View File

@ -2,7 +2,7 @@
title: "Pushing site to production" title: "Pushing site to production"
description: "My journey of creating this amazing personal website" description: "My journey of creating this amazing personal website"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-06T9:34:25Z publishDate: 2024-06-07T9:34:25Z
image: image:
url: "/blog/post-1.png" url: "/blog/post-1.png"
alt: "Screenshot of my personal website" alt: "Screenshot of my personal website"

View File

@ -2,7 +2,7 @@
title: "Pushing site to production" title: "Pushing site to production"
description: "My journey of creating this amazing personal website" description: "My journey of creating this amazing personal website"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-06T9:34:25Z publishDate: 2024-06-07T9:34:25Z
image: image:
url: "/blog/post-1.png" url: "/blog/post-1.png"
alt: "Screenshot of my personal website" alt: "Screenshot of my personal website"

View File

@ -2,7 +2,7 @@
title: "Clearing matrix synapse database" title: "Clearing matrix synapse database"
description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data" description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-09T12:11:32Z publishDate: 2024-09-07T12:11:32Z
image: image:
url: "/blog/post-2.png" url: "/blog/post-2.png"
alt: "Screenshot of matrix-synapse diskspace janitor" alt: "Screenshot of matrix-synapse diskspace janitor"
@ -70,7 +70,7 @@ It seems straightforward, right? You install the app - sure, there aren't detail
The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console. The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console.
```go ```golang
http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0 http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0
goroutine 54 [running]: goroutine 54 [running]:
net/http.(*conn).serve.func1() net/http.(*conn).serve.func1()

View File

@ -2,7 +2,7 @@
title: "Clearing matrix synapse database" title: "Clearing matrix synapse database"
description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data" description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-09T12:11:32Z publishDate: 2024-09-07T12:11:32Z
image: image:
url: "/blog/post-2.png" url: "/blog/post-2.png"
alt: "Screenshot of matrix-synapse diskspace janitor" alt: "Screenshot of matrix-synapse diskspace janitor"
@ -70,7 +70,7 @@ It seems straightforward, right? You install the app - sure, there aren't detail
The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console. The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console.
```go ```golang
http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0 http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0
goroutine 54 [running]: goroutine 54 [running]:
net/http.(*conn).serve.func1() net/http.(*conn).serve.func1()

View File

@ -2,7 +2,7 @@
title: "Clearing matrix synapse database" title: "Clearing matrix synapse database"
description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data" description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-09T12:11:32Z publishDate: 2024-09-07T12:11:32Z
image: image:
url: "/blog/post-2.png" url: "/blog/post-2.png"
alt: "Screenshot of matrix-synapse diskspace janitor" alt: "Screenshot of matrix-synapse diskspace janitor"
@ -70,7 +70,7 @@ It seems straightforward, right? You install the app - sure, there aren't detail
The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console. The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console.
```go ```golang
http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0 http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0
goroutine 54 [running]: goroutine 54 [running]:
net/http.(*conn).serve.func1() net/http.(*conn).serve.func1()

View File

@ -2,7 +2,7 @@
title: "Clearing matrix synapse database" title: "Clearing matrix synapse database"
description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data" description: "Synapse is matrix homeserver implementation. Unfortunately it sometimes manages to accumulate GBs of unimportant data"
author: "Cyril Šebek" author: "Cyril Šebek"
publishDate: 2024-07-09T12:11:32Z publishDate: 2024-09-07T12:11:32Z
image: image:
url: "/blog/post-2.png" url: "/blog/post-2.png"
alt: "Screenshot of matrix-synapse diskspace janitor" alt: "Screenshot of matrix-synapse diskspace janitor"
@ -70,7 +70,7 @@ It seems straightforward, right? You install the app - sure, there aren't detail
The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console. The first issue I encountered, which has since been resolved, was logging into the app. Every time I tried to log in, the app would crash with an error in the console.
```go ```golang
http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0 http: panic serving 10.69.13.200:43140: runtime error: slice bounds out of range [:10] with capacity 0
goroutine 54 [running]: goroutine 54 [running]:
net/http.(*conn).serve.func1() net/http.(*conn).serve.func1()

View File

@ -21,7 +21,6 @@ const t = useTranslations(lang)
<link rel="shortcut icon" href={t("favicon")}> <link rel="shortcut icon" href={t("favicon")}>
<link rel="shortcut icon" href={t("favicon")} type="image/x-icon"> <link rel="shortcut icon" href={t("favicon")} type="image/x-icon">
<title>{title}</title> <title>{title}</title>
<link rel="me" href="https://mastodon.cyrilsebek.cz/@blboun3">
<SEO <SEO
title={title} title={title}
description={description} description={description}

View File

@ -51,6 +51,5 @@ const telegram = `<svg role="img" viewBox="-1 -1 26 26" xmlns="http://www.w3.org
const github = `<svg role="img" viewBox="-1 -1 26 26" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" stroke="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>` const github = `<svg role="img" viewBox="-1 -1 26 26" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" stroke="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>`
const git = `<svg role="img" viewBox="-1 -1 26 26" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" stroke="currentColor" d="M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"/></svg>` const git = `<svg role="img" viewBox="-1 -1 26 26" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" stroke="currentColor" d="M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"/></svg>`
const mail = `<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 1 23 23" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" style="--darkreader-inline-stroke: currentColor;" data-darkreader-inline-stroke=""><path stroke="none" d="M0 0h24v24H0z" fill="none" style="--darkreader-inline-stroke: none;" data-darkreader-inline-stroke=""></path><path d="M22 7.535v9.465a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-9.465l9.445 6.297l.116 .066a1 1 0 0 0 .878 0l.116 -.066l9.445 -6.297z" stroke-width="0" fill="currentColor" style="--darkreader-inline-fill: currentColor;" data-darkreader-inline-fill=""></path><path d="M19 4c1.08 0 2.027 .57 2.555 1.427l-9.555 6.37l-9.555 -6.37a2.999 2.999 0 0 1 2.354 -1.42l.201 -.007h14z" stroke-width="0" fill="currentColor" style="--darkreader-inline-fill: currentColor;" data-darkreader-inline-fill=""></path></svg>` const mail = `<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 1 23 23" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" style="--darkreader-inline-stroke: currentColor;" data-darkreader-inline-stroke=""><path stroke="none" d="M0 0h24v24H0z" fill="none" style="--darkreader-inline-stroke: none;" data-darkreader-inline-stroke=""></path><path d="M22 7.535v9.465a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-9.465l9.445 6.297l.116 .066a1 1 0 0 0 .878 0l.116 -.066l9.445 -6.297z" stroke-width="0" fill="currentColor" style="--darkreader-inline-fill: currentColor;" data-darkreader-inline-fill=""></path><path d="M19 4c1.08 0 2.027 .57 2.555 1.427l-9.555 6.37l-9.555 -6.37a2.999 2.999 0 0 1 2.354 -1.42l.201 -.007h14z" stroke-width="0" fill="currentColor" style="--darkreader-inline-fill: currentColor;" data-darkreader-inline-fill=""></path></svg>`
const mastodon = `<svg role="img" viewBox="-1 -1 26 26" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" stroke="currentColor" d="M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z"/></svg>`
export const icons = { home: home, blog: blog, theme_dark: theme_dark, theme_light: theme_light, lang: lang, theme_auto: theme_auto, music: music, matrix: matrix, telegram: telegram, github: github, git: git, mail: mail, mastodon: mastodon}; export const icons = { home: home, blog: blog, theme_dark: theme_dark, theme_light: theme_light, lang: lang, theme_auto: theme_auto, music: music, matrix: matrix, telegram: telegram, github: github, git: git, mail: mail};

View File

@ -6,7 +6,9 @@ import Hero from "../components/Hero.astro";
import About from "../components/About.astro"; import About from "../components/About.astro";
import Showcase from "../components/Showcase.astro"; import Showcase from "../components/Showcase.astro";
import FloatingLinks from "../components/FloatingLinks.astro"; import FloatingLinks from "../components/FloatingLinks.astro";
import { getLangFromUrl, useTranslations } from "../i18n/utils";
//@ts-ignore
import { getLangFromUrl, useTranslations } from "../../i18n/utils";
const t = useTranslations(getLangFromUrl(Astro.url)); const t = useTranslations(getLangFromUrl(Astro.url));