diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-15 00:32:10 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-15 00:32:10 -0400 |
| commit | e48aa709b2e4c37b062512c1d5a55b344952c08e (patch) | |
| tree | c21a602f9993df6ed0a7b1536391d1130f577f41 /lume/src | |
| parent | 189fe2918ba2e54f68d75698168cc41036586240 (diff) | |
| download | xesite-e48aa709b2e4c37b062512c1d5a55b344952c08e.tar.xz xesite-e48aa709b2e4c37b062512c1d5a55b344952c08e.zip | |
use files.xeiaso.net for some things as a test
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/src')
| -rw-r--r-- | lume/src/_components/Disclaimer.jsx | 2 | ||||
| -rw-r--r-- | lume/src/_components/Figure.tsx | 19 | ||||
| -rw-r--r-- | lume/src/_components/MastodonShare.tsx | 29 | ||||
| -rw-r--r-- | lume/src/_components/XeblogHero.tsx | 6 | ||||
| -rw-r--r-- | lume/src/_components/XeblogPicture.tsx | 8 | ||||
| -rw-r--r-- | lume/src/_components/XeblogSlide.tsx | 16 | ||||
| -rw-r--r-- | lume/src/_components/XeblogVideo.tsx | 4 | ||||
| -rw-r--r-- | lume/src/_includes/bare.njk | 11 | ||||
| -rw-r--r-- | lume/src/_includes/base.njk | 14 | ||||
| -rw-r--r-- | lume/src/_includes/talk.njk | 2 | ||||
| -rw-r--r-- | lume/src/styles.css | 11 | ||||
| -rw-r--r-- | lume/src/xecast/001.mdx | 2 | ||||
| -rw-r--r-- | lume/src/xecast/002.mdx | 2 | ||||
| -rw-r--r-- | lume/src/xecast/003.mdx | 2 | ||||
| -rw-r--r-- | lume/src/xecast/004.mdx | 2 | ||||
| -rw-r--r-- | lume/src/xecast/005.mdx | 2 |
16 files changed, 70 insertions, 62 deletions
diff --git a/lume/src/_components/Disclaimer.jsx b/lume/src/_components/Disclaimer.jsx index 6d1bd21..d27e16e 100644 --- a/lume/src/_components/Disclaimer.jsx +++ b/lume/src/_components/Disclaimer.jsx @@ -3,7 +3,7 @@ export default function TecharoDisclaimer({ children }) { <> <link rel="stylesheet" - href="https://cdn.xeiaso.net/file/christine-static/static/font/inter/inter.css" + href="https://files.xeiaso.net/static/font/inter/inter.css" /> <div className="font-['Inter'] text-lg mx-auto mt-4 mb-2 rounded-lg bg-bg-2 p-4 dark:bg-bgDark-2 md:max-w-3xl font-extrabold xe-dont-newline"> {children} diff --git a/lume/src/_components/Figure.tsx b/lume/src/_components/Figure.tsx index ad8d802..dd15ba0 100644 --- a/lume/src/_components/Figure.tsx +++ b/lume/src/_components/Figure.tsx @@ -5,19 +5,16 @@ export interface FigureProps { alt?: string; } -export default function Figure( - { className, path, alt, desc = alt }: FigureProps, -) { +export default function Figure({ + className, + path, + alt, + desc = alt, +}: FigureProps) { return ( <figure className={`max-w-3xl mx-auto ${className}`}> - <a - href={`https://cdn.xeiaso.net/file/christine-static/${path}`} - target="_blank" - > - <img - src={`https://cdn.xeiaso.net/file/christine-static/${path}`} - alt={desc} - /> + <a href={`https://files.xeiaso.net/${path}`} target="_blank"> + <img src={`https://files.xeiaso.net/${path}`} alt={desc} /> </a> {desc && <figcaption>{desc}</figcaption>} </figure> diff --git a/lume/src/_components/MastodonShare.tsx b/lume/src/_components/MastodonShare.tsx index be91a78..57e84b3 100644 --- a/lume/src/_components/MastodonShare.tsx +++ b/lume/src/_components/MastodonShare.tsx @@ -1,13 +1,13 @@ import { useState } from "npm:preact/hooks"; const u = (url = "", params = {}) => { - let result = new URL(url, window.location.href); - Object.entries(params).forEach((kv) => { - let [k, v] = kv; - result.searchParams.set(k, v as string); - }); - return result.toString(); - }; + let result = new URL(url, window.location.href); + Object.entries(params).forEach((kv) => { + let [k, v] = kv; + result.searchParams.set(k, v as string); + }); + return result.toString(); +}; export interface MastodonShareButtonProps { title: string; @@ -16,9 +16,12 @@ export interface MastodonShareButtonProps { tags: string; } -export default function MastodonShareButton( - { title, url, series, tags }: MastodonShareButtonProps, -) { +export default function MastodonShareButton({ + title, + url, + series, + tags, +}: MastodonShareButtonProps) { let defaultURL = localStorage["mastodon_instance"]; if (defaultURL == undefined) { @@ -49,11 +52,7 @@ ${series ? "#" + series + " " : ""}${ oninput={(e) => setURL(e.target.value)} /> <br /> - <textarea - rows={6} - cols={40} - oninput={(e) => setToot(e.target.value)} - > + <textarea rows={6} cols={40} oninput={(e) => setToot(e.target.value)}> {getToot()} </textarea> <br /> diff --git a/lume/src/_components/XeblogHero.tsx b/lume/src/_components/XeblogHero.tsx index fadb4eb..7b038af 100644 --- a/lume/src/_components/XeblogHero.tsx +++ b/lume/src/_components/XeblogHero.tsx @@ -11,17 +11,17 @@ export default function XeblogHero({ ai, file, prompt }: XeblogHeroProps) { <picture> <source type="image/avif" - srcset={`https://cdn.xeiaso.net/file/christine-static/hero/${file}.avif`} + srcset={`https://files.xeiaso.net/hero/${file}.avif`} /> <source type="image/webp" - srcset={`https://cdn.xeiaso.net/file/christine-static/hero/${file}.webp`} + srcset={`https://files.xeiaso.net/hero/${file}.webp`} /> <img alt={`An image of ${prompt}`} className="hero-image" loading="lazy" - src={`https://cdn.xeiaso.net/file/christine-static/hero/${file}.jpg`} + src={`https://files.xeiaso.net/hero/${file}.jpg`} /> </picture> {ai !== undefined ? ( diff --git a/lume/src/_components/XeblogPicture.tsx b/lume/src/_components/XeblogPicture.tsx index b8c7170..e7a95d4 100644 --- a/lume/src/_components/XeblogPicture.tsx +++ b/lume/src/_components/XeblogPicture.tsx @@ -11,21 +11,21 @@ export default function XeblogPicture({ }: XeblogPicture) { return ( <figure className={`max-w-3xl mx-auto not-prose w-full ${className}`}> - <a href={`https://cdn.xeiaso.net/file/christine-static/${path}.jpg`}> + <a href={`https://files.xeiaso.net/${path}.jpg`}> <picture> <source type="image/avif" - srcset={`https://cdn.xeiaso.net/file/christine-static/${path}.avif`} + srcset={`https://files.xeiaso.net/${path}.avif`} /> <source type="image/webp" - srcset={`https://cdn.xeiaso.net/file/christine-static/${path}.webp`} + srcset={`https://files.xeiaso.net/${path}.webp`} /> <img alt={desc} className={className} loading="lazy" - src={`https://cdn.xeiaso.net/file/christine-static/${path}.jpg`} + src={`https://files.xeiaso.net/${path}.jpg`} /> </picture> </a> diff --git a/lume/src/_components/XeblogSlide.tsx b/lume/src/_components/XeblogSlide.tsx index 09c75bc..91f9ff4 100644 --- a/lume/src/_components/XeblogSlide.tsx +++ b/lume/src/_components/XeblogSlide.tsx @@ -4,22 +4,28 @@ export interface XeblogSlideProps { desc?: string; } -export default function XeblogSlide({ name, essential, desc }: XeblogSlideProps) { +export default function XeblogSlide({ + name, + essential, + desc, +}: XeblogSlideProps) { return ( - <figure class={essential ? "xeblog-sides-essential" : "xeblog-slides-fluff"}> + <figure + class={essential ? "xeblog-sides-essential" : "xeblog-slides-fluff"} + > <picture> <source type="image/avif" - srcset={`https://cdn.xeiaso.net/file/christine-static/talks/${name}.avif`} + srcset={`https://files.xeiaso.net/talks/${name}.avif`} /> <source type="image/webp" - srcset={`https://cdn.xeiaso.net/file/christine-static/talks/${name}.webp`} + srcset={`https://files.xeiaso.net/talks/${name}.webp`} /> <img alt={desc || `Slide ${name}`} loading="lazy" - src={`https://cdn.xeiaso.net/file/christine-static/talks/${name}.jpg`} + src={`hhttps://files.xeiaso.net/talks/${name}.jpg`} /> </picture> {desc && <figcaption>{desc}</figcaption>} diff --git a/lume/src/_components/XeblogVideo.tsx b/lume/src/_components/XeblogVideo.tsx index 6cb4aa3..65f9972 100644 --- a/lume/src/_components/XeblogVideo.tsx +++ b/lume/src/_components/XeblogVideo.tsx @@ -7,13 +7,13 @@ export interface VideoProps { } export default function Video({ path, vertical }: VideoProps) { - const streamURL = `https://cdn.xeiaso.net/file/christine-static/${path}/index.m3u8`; + const streamURL = `https://files.xeiaso.net/${path}/index.m3u8`; const id = sha256(streamURL); const video = ( <video id={id} className="not-prose sm:max-h-[50vh] mx-auto" controls> <source src={streamURL} type="application/vnd.apple.mpegurl" /> <source - src="https://cdn.xeiaso.net/file/christine-static/blog/HLSBROKE.mp4" + src="https://files.xeiaso.net/blog/HLSBROKE.mp4" type="video/mp4" /> </video> diff --git a/lume/src/_includes/bare.njk b/lume/src/_includes/bare.njk index 0d441ec..90c6fa4 100644 --- a/lume/src/_includes/bare.njk +++ b/lume/src/_includes/bare.njk @@ -50,7 +50,6 @@ la budza pu cusku lu <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="go-import" content="xeiaso.net/v4 git https://github.com/Xe/site"/> - <link rel="stylesheet" href="https://cdn.xeiaso.net/static/pkg/iosevka/family.css"/> <link rel="stylesheet" href="/styles.css"/> <link rel="alternate" type="application/rss+xml" href="https://xeiaso.net/blog.rss"/> <link rel="alternate" type="application/json" href="https://xeiaso.net/blog.json"/> @@ -73,7 +72,7 @@ la budza pu cusku lu <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/static/favicon/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> - <link rel="canonical" href="https://xeiaso.net{{ url }}" /> + <link rel="canonical" href="https://xeiaso.net{{ url }}"/> {% if title %} <title>{{ title }} - Xeserv</title> @@ -86,13 +85,13 @@ la budza pu cusku lu {% endif %} {% if hero %} - <meta property="og:image" content="https://cdn.xeiaso.net/file/christine-static/hero/{{ hero.file }}.jpg"/> - <meta property="twitter:image" content="https://cdn.xeiaso.net/file/christine-static/hero/{{ hero.file }}.jpg"/> + <meta property="og:image" content="https://files.xeiaso.net/hero/{{ hero.file }}.jpg"/> + <meta property="twitter:image" content="https://files.xeiaso.net/hero/{{ hero.file }}.jpg"/> {% endif %} </head> - + {{ comp.ads() | safe }} {{ content | safe }} <script data-goatcounter="https://plexeachsitairsunodd.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> -</html> +</html>
\ No newline at end of file diff --git a/lume/src/_includes/base.njk b/lume/src/_includes/base.njk index 4b430f5..820f201 100644 --- a/lume/src/_includes/base.njk +++ b/lume/src/_includes/base.njk @@ -5,7 +5,6 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="go-import" content="xeiaso.net/v4 git https://github.com/Xe/site"/> - <link rel="stylesheet" href="https://cdn.xeiaso.net/static/pkg/iosevka/family.css"/> <link rel="stylesheet" href="/styles.css"/> <link rel="alternate" type="application/rss+xml" href="https://xeiaso.net/blog.rss"/> @@ -48,19 +47,19 @@ {% endif %} {% if image %} - <meta property="og:image" content="https://cdn.xeiaso.net/file/christine-static/{{ image }}.jpg"/> - <meta property="twitter:image" content="https://cdn.xeiaso.net/file/christine-static/{{ image }}.jpg"/> + <meta property="og:image" content="https://files.xeiaso.net/{{ image }}.jpg"/> + <meta property="twitter:image" content="https://files.xeiaso.net/{{ image }}.jpg"/> <meta name="twitter:card" content="summary_image_large"/> {% endif %} {% if hero %} {% if hero.social %} - <meta property="og:image" content="https://cdn.xeiaso.net/file/christine-static/social/{{ hero.file }}.jpg"/> - <meta property="twitter:image" content="https://cdn.xeiaso.net/file/christine-static/social/{{ hero.file }}.jpg"/> + <meta property="og:image" content="https://files.xeiaso.net/social/{{ hero.file }}.jpg"/> + <meta property="twitter:image" content="https://files.xeiaso.net/social/{{ hero.file }}.jpg"/> <meta name="twitter:card" content="summary_large_image"/> {% else %} - <meta property="og:image" content="https://cdn.xeiaso.net/file/christine-static/hero/{{ hero.file }}.jpg"/> - <meta property="twitter:image" content="https://cdn.xeiaso.net/file/christine-static/hero/{{ hero.file }}.jpg"/> + <meta property="og:image" content="https://files.xeiaso.net/hero/{{ hero.file }}.jpg"/> + <meta property="twitter:image" content="https://files.xeiaso.net/hero/{{ hero.file }}.jpg"/> <meta name="twitter:card" content="summary_large_image"/> {% endif %} {% endif %} @@ -71,6 +70,7 @@ <link rel="preconnect" href="https://stickers.xeiaso.net"/> <link rel="preconnect" href="https://cdn.xeiaso.net"/> + <link rel="preconnect" href="https://files.xeiaso.net"/> <link rel="preconnect" href="https://fly.storage.tigris.dev"/> </head> diff --git a/lume/src/_includes/talk.njk b/lume/src/_includes/talk.njk index a65c774..f76e3f5 100644 --- a/lume/src/_includes/talk.njk +++ b/lume/src/_includes/talk.njk @@ -20,7 +20,7 @@ layout: base.njk </p> {% if hero %} - <meta property="og:image" content={`https://cdn.xeiaso.net/file/christine-static/hero/${hero.file}.jpg`}/> + <meta property="og:image" content={`https://files.xeiaso.net/hero/${hero.file}.jpg`}/> {{ comp.XeblogHero(hero) | safe }} {% endif %} diff --git a/lume/src/styles.css b/lume/src/styles.css index 51d6613..34ed0e2 100644 --- a/lume/src/styles.css +++ b/lume/src/styles.css @@ -1,9 +1,16 @@ @tailwind base; @tailwind components; @tailwind utilities; -@import url("https://cdn.xeiaso.net/file/christine-static/static/font/inter/inter.css"); +@import url(https://files.xeiaso.net/static/font/inter/inter.css); @import url(https://cdn.xeiaso.net/static/css/iosevka/family.css); -@import url(https://cdn.xeiaso.net/static/css/podkova/family.css); + +@font-face { + font-family: "Podkova"; + font-style: normal; + font-weight: 400 800; + font-display: swap; + src: url("static/font/Podkova.woff2") format("woff2"); +} /* latin-ext */ @font-face { diff --git a/lume/src/xecast/001.mdx b/lume/src/xecast/001.mdx index d2c056d..aa69930 100644 --- a/lume/src/xecast/001.mdx +++ b/lume/src/xecast/001.mdx @@ -4,7 +4,7 @@ date: 2024-07-28 image: "xecast/episodes/001" desc: "Xe Iaso talks about their background in tech, the Techaro series, and AI." podcast: - link: "https://cdn.xeiaso.net/file/christine-static/xecast/episodes/001.mp3" + link: "https://files.xeiaso.net/xecast/episodes/001.mp3" length: "46339200" --- diff --git a/lume/src/xecast/002.mdx b/lume/src/xecast/002.mdx index 5ebd5b9..a804a4f 100644 --- a/lume/src/xecast/002.mdx +++ b/lume/src/xecast/002.mdx @@ -4,7 +4,7 @@ date: 2024-08-11 image: "xecast/episodes/002" desc: "Xe Iaso shares their DevOpsDays MSP experience, home studio upgrades, and AI musings." podcast: - link: "https://cdn.xeiaso.net/file/christine-static/xecast/episodes/002.mp3" + link: "https://files.xeiaso.net/xecast/episodes/002.mp3" length: "49996935" --- diff --git a/lume/src/xecast/003.mdx b/lume/src/xecast/003.mdx index ef8fa6f..5c21921 100644 --- a/lume/src/xecast/003.mdx +++ b/lume/src/xecast/003.mdx @@ -3,7 +3,7 @@ title: "Xecast Episode 3: The curse of the artist" date: 2024-08-25 desc: "Xe returns while on vacation where they built a new PC, made a SaaS to check web server headers, and re-evaluated how they think about complexity." podcast: - link: "https://cdn.xeiaso.net/file/christine-static/xecast/episodes/003.mp3" + link: "https://files.xeiaso.net/xecast/episodes/003.mp3" length: "80793600" --- diff --git a/lume/src/xecast/004.mdx b/lume/src/xecast/004.mdx index 80a399d..6c093a7 100644 --- a/lume/src/xecast/004.mdx +++ b/lume/src/xecast/004.mdx @@ -3,7 +3,7 @@ title: "Xecast Episode 4: A Psychic Whiplash Week" date: 2024-09-10 desc: "Xe reflects on a week of intense ups and downs, navigating a whirlwind of job offers, contract work, and personal projects." podcast: - link: "https://cdn.xeiaso.net/file/christine-static/xecast/episodes/004.mp3" + link: "https://files.xeiaso.net/xecast/episodes/004.mp3" length: "49592640" --- diff --git a/lume/src/xecast/005.mdx b/lume/src/xecast/005.mdx index 4e252e9..31b02e0 100644 --- a/lume/src/xecast/005.mdx +++ b/lume/src/xecast/005.mdx @@ -3,7 +3,7 @@ title: "Xecast Episode 5: Simracing and Vtubing with Lithium Fox" date: 2024-09-21 desc: "This episode of Xecast, Xe Iaso is joined by special guest Lithium Fox. They nerd out about simracing, vtubing, and passion projects." podcast: - link: "https://cdn.xeiaso.net/file/christine-static/xecast/episodes/005.mp3" + link: "https://files.xeiaso.net/xecast/episodes/005.mp3" length: "84123815" --- |
