Skip to content

Commit eb88c44

Browse files
committed
fix build fail on github pages
1 parent dc25f62 commit eb88c44

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
<link rel="icon" type="image/png" href="/logo.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>SimplePlain</title>
8+
<link rel="preconnect" href="https://player.vimeo.com" crossorigin />
9+
<link rel="preconnect" href="https://i.vimeocdn.com" crossorigin />
10+
<link rel="preconnect" href="https://f.vimeocdn.com" crossorigin />
11+
<link rel="dns-prefetch" href="//player.vimeo.com" />
12+
<link rel="dns-prefetch" href="//i.vimeocdn.com" />
13+
<link rel="dns-prefetch" href="//f.vimeocdn.com" />
814
<!-- Google tag (gtag.js) -->
915
<script async src="https://www.googletagmanager.com/gtag/js?id=G-K4L29KFR9M"></script>
1016
<script>

src/assets/projects/rl-quadruped-training/content.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<iframe
66
src="https://player.vimeo.com/video/1148904156?autoplay=1&muted=1&loop=1&autopause=0&background=1&controls=0&title=0&byline=0&portrait=0&badge=0&dnt=1&playsinline=1"
77
title="Dog Robot Cover"
8-
loading="lazy"
98
tabindex="-1"
109
allow="autoplay; fullscreen; picture-in-picture"
1110
referrerpolicy="strict-origin-when-cross-origin"

src/components/video-embed.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export function VideoEmbed({
120120
onLoad={handleLoad}
121121
onReload={() => setLoaded(!poster)}
122122
ref={iframeRef}
123+
loading={props.loading ?? "eager"}
123124
className={cn(
124125
"absolute inset-0 h-full w-full border-0 transition-opacity duration-500",
125126
mediaClassName,

src/lib/project-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function getProjectAssets(slug: string) {
269269
};
270270
}
271271

272-
export function getProjectHero(slug: string) {
272+
export function getProjectHero(slug: string): ProjectHero | undefined {
273273
if (heroOverrides[slug]) {
274274
return heroOverrides[slug];
275275
}

src/pages/projects/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ function normalizeInlineStyle(style?: CSSProperties | string): CSSProperties | u
6969
if (!style) return undefined;
7070
if (typeof style !== "string") return style;
7171

72-
const output: CSSProperties = {};
72+
const output: Record<string, string> = {};
7373
style.split(";").forEach((rule) => {
7474
const [rawKey, ...rawValueParts] = rule.split(":");
7575
if (!rawKey || rawValueParts.length === 0) return;
7676
const key = rawKey.trim();
7777
const value = rawValueParts.join(":").trim();
7878
if (!key || !value) return;
7979
const camelKey = key.replace(/-([a-z])/g, (_, char: string) => char.toUpperCase());
80-
output[camelKey as keyof CSSProperties] = value;
80+
output[camelKey] = value;
8181
});
8282

83-
return output;
83+
return output as CSSProperties;
8484
}
8585

8686
const allProjectTags: ProjectTag[] = Array.from(

0 commit comments

Comments
 (0)