large thumbnails are optional

This commit is contained in:
Aditya Thakral 2021-08-25 14:58:25 -04:00
parent f116afebd2
commit 01f5639055
24 changed files with 9 additions and 26 deletions

View File

@ -245,12 +245,13 @@ export function OrganizedContentDemo() {
} }
export function TechTalkDemo() { export function TechTalkDemo() {
const poster =
tempTechTalkMetadata.thumbnails.large ??
tempTechTalkMetadata.thumbnails.small;
return ( return (
<div> <div>
<TechTalkCard <TechTalkCard {...tempTechTalkMetadata} poster={poster}>
{...tempTechTalkMetadata}
poster={tempTechTalkMetadata.thumbnails.large}
>
<TempTechTalk /> <TempTechTalk />
</TechTalkCard> </TechTalkCard>
</div> </div>

View File

@ -1,4 +1,5 @@
export const metadata = { export const metadata = {
slug: 'not-a-valid-slug'
title: "1989 Bill Gates Talk on Microsoft", title: "1989 Bill Gates Talk on Microsoft",
presentors: ["Bill Gates"], presentors: ["Bill Gates"],
thumbnails: { thumbnails: {

View File

@ -5,7 +5,6 @@ presentors:
- 'Anna Lubiw' - 'Anna Lubiw'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/alubiw-shortest-paths-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/alubiw-shortest-paths-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/alubiw-shortest-paths-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/alubiw-shortest-paths.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/alubiw-shortest-paths.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Fatema Boxwala' - 'Fatema Boxwala'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/fatema-manic-pxe-dream-servers-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/fatema-manic-pxe-dream-servers-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/fatema-manic-pxe-dream-servers-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/fatema-manic-pxe-dream-servers.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/fatema-manic-pxe-dream-servers.mp4'
type: 'Manic PXE Dream Servers (mp4)' type: 'Manic PXE Dream Servers (mp4)'

View File

@ -6,7 +6,6 @@ presentors:
- Francisco Dominguez' - Francisco Dominguez'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/fibernetics-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/fibernetics-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/fibernetics-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/fibernetics.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/fibernetics.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Elana Hashman' - 'Elana Hashman'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/ehashman-oop-best-practices-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/ehashman-oop-best-practices-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/ehashman-oop-best-practices-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/ehashman-oop-best-practices.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/ehashman-oop-best-practices.mp4'
type: 'OOP Best Practices (mp4)' type: 'OOP Best Practices (mp4)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Wesley Tarle' - 'Wesley Tarle'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/wtarle_mobile_platform_google-thumb-small.png' small: 'http://mirror.csclub.uwaterloo.ca/csclub/wtarle_mobile_platform_google-thumb-small.png'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/wtarle_mobile_platform_google-thumb-large.png'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/wtarle_mobile_platform_google.pdf' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/wtarle_mobile_platform_google.pdf'
type: 'Talk (PDF)' type: 'Talk (PDF)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Cory Doctorow' - 'Cory Doctorow'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/cory-doctorow-f2015-thumb-small.png' small: 'http://mirror.csclub.uwaterloo.ca/csclub/cory-doctorow-f2015-thumb-small.png'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/cory-doctorow-f2015-thumb-large.png'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/cory-doctorow-f2015.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/cory-doctorow-f2015.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -8,7 +8,6 @@ presentors:
- Dan Collens' - Dan Collens'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/csc-wics-f15-panel-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/csc-wics-f15-panel-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/csc-wics-f15-panel-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/csc-wics-f15-panel.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/csc-wics-f15-panel.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Alex Tsay' - 'Alex Tsay'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/alex_tsay_aerofs-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/alex_tsay_aerofs-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/alex_tsay_aerofs-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/alex_tsay_aerofs.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/alex_tsay_aerofs.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -8,7 +8,6 @@ presentors:
- Swetha' - Swetha'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/fem101-questions-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/fem101-questions-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/fem101-questions-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/fem101-panel-discussion.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/fem101-panel-discussion.mp4'
type: 'Panel questions and discussion (mp4)' type: 'Panel questions and discussion (mp4)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Bill Cook' - 'Bill Cook'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/bico_2014_travelling_salesman-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/bico_2014_travelling_salesman-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/bico_2014_travelling_salesman-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/bico_2014_travelling_salesman.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/bico_2014_travelling_salesman.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Richard Mann' - 'Richard Mann'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/mannr-infrared-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/mannr-infrared-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/mannr-infrared-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/mannr-infrared.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/mannr-infrared.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Steve Bourque and Mike Patterson' - 'Steve Bourque and Mike Patterson'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/uw-infrastructure-sbourque-half-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/uw-infrastructure-sbourque-half-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/uw-infrastructure-sbourque-half-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/uw-infrastructure-sbourque-half.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/uw-infrastructure-sbourque-half.mp4'
type: 'Steven Bourque Talk (x264)' type: 'Steven Bourque Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Richard Mann' - 'Richard Mann'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/rmann-oss-sound-measurement-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/rmann-oss-sound-measurement-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/rmann-oss-sound-measurement-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/rmann-oss-sound-measurement.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/rmann-oss-sound-measurement.mp4'
type: 'OSS Sound Measurement (mp4)' type: 'OSS Sound Measurement (mp4)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Theo Belaire' - 'Theo Belaire'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/tbelaire_racket-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/tbelaire_racket-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/tbelaire_racket-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/tbelaire_racket.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/tbelaire_racket.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Kannan Vijayan' - 'Kannan Vijayan'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/vijayan-type-inference-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/vijayan-type-inference-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/vijayan-type-inference-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/vijayan-type-inference.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/vijayan-type-inference.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Murphy Berzish' - 'Murphy Berzish'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/mtrberzi-sat-smt-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/mtrberzi-sat-smt-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/mtrberzi-sat-smt-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/mtrberzi-sat-smt.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/mtrberzi-sat-smt.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Alfe Clemencio' - 'Alfe Clemencio'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/indie-game-dev-clemencio-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/indie-game-dev-clemencio-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/indie-game-dev-clemencio-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/indie-game-dev-clemencio.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/indie-game-dev-clemencio.mp4'
type: 'Talk (x264)' type: 'Talk (x264)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Gerald Jay Sussman' - 'Gerald Jay Sussman'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-propagator-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-propagator-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-propagator-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-propagator.mkv' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-propagator.mkv'
type: 'Talk (MKV)' type: 'Talk (MKV)'

View File

@ -6,7 +6,6 @@ presentors:
- Charlie' - Charlie'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/unix102-s17-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/unix102-s17-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/unix102-s17-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/unix102-s17.mp4' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/unix102-s17.mp4'
type: 'Unix 102 Spring 2017 (mp4)' type: 'Unix 102 Spring 2017 (mp4)'

View File

@ -5,7 +5,6 @@ presentors:
- 'Gerald Jay Sussman' - 'Gerald Jay Sussman'
thumbnails: thumbnails:
small: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-why-programming-thumb-small.jpg' small: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-why-programming-thumb-small.jpg'
large: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-why-programming-thumb-large.jpg'
links: links:
- file: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-why-programming.mkv' - file: 'http://mirror.csclub.uwaterloo.ca/csclub/sussman-why-programming.mkv'
type: 'Talk (MKV)' type: 'Talk (MKV)'

View File

@ -9,7 +9,7 @@ export interface Metadata {
index: number; index: number;
title: string; title: string;
presentors: string[]; presentors: string[];
thumbnails: { small: string; large: string }; thumbnails: { small: string; large?: string };
links: { file: string; type: string; size?: string }[]; links: { file: string; type: string; size?: string }[];
} }

3
types.d.ts vendored
View File

@ -66,9 +66,10 @@ declare module "*.talk.mdx" {
import { ComponentType } from "react"; import { ComponentType } from "react";
interface TalkMetadata { interface TalkMetadata {
slug: string;
title: string; title: string;
presentors: string[]; presentors: string[];
thumbnails: { small: string; large: string }; thumbnails: { small: string; large?: string };
links: { file: string; type: string; size?: string }[]; links: { file: string; type: string; size?: string }[];
} }