File tree Expand file tree Collapse file tree
assets/projects/rl-quadruped-training Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
8686const allProjectTags : ProjectTag [ ] = Array . from (
You can’t perform that action at this time.
0 commit comments