Skip to content

Commit

Permalink
Dynamic page titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Dec 12, 2023
1 parent 0e43389 commit c1d364a
Show file tree
Hide file tree
Showing 19 changed files with 61 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/components/Title.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script lang="ts">
export let text: string;
</script>

<svelte:head>
<title>Amy J. Ko - {text}</title>
</svelte:head>
3 changes: 3 additions & 0 deletions src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
import Block from '$lib/components/Block.svelte';
import getPersonImagePath from '$lib/components/getPersonImage';
import Emoji from '$lib/components/Emoji.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Research" />

<h1>
I study our individual and collective struggle to understand computing and
harness it for play, power, equity, and justice.
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/bio/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import Link from '$lib/components/Link.svelte';
import { profile } from '$lib/models/stores';
import Title from '$lib/components/Title.svelte';
$: pubCount =
Math.round(
Expand All @@ -24,6 +25,8 @@
).length;
</script>

<Title text="Biography" />

<h1>Professional and personal takes on my professorly life.</h1>

<Linkable id="tiny">Tiny Bio</Linkable>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/cer/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
import advisors from '$lib/models/advisors';
import SectionList from '$lib/components/SectionList.svelte';
import Table from '../../../lib/components/Table.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="CER FAQ" />

<h1> This is my computing education research FAQ. </h1>

<p>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/classes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import External from '$lib/components/External.svelte';
import { profile } from '$lib/models/stores';
import Image from '$lib/components/Thumbnail.svelte';
import Title from '$lib/components/Title.svelte';
const offerings = $profile
.getClasses(
Expand Down Expand Up @@ -30,6 +31,8 @@
});
</script>

<Title text="Classes" />

<h1> These are classes I teach. </h1>

{#each offerings as offering}
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/commitments/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import Bar from './Bar.svelte';
import DateRange from './DateRange.svelte';
import months from './months';
import Title from '$lib/components/Title.svelte';
let commits = $profile.getCommits();
let weeks = $profile.getWeeklyCommits();
Expand Down Expand Up @@ -73,6 +74,8 @@
);
</script>

<Title text="Commitments" />

<h1> This is my commitment calendar. </h1>

<p>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/communities/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<script lang="ts">
import Block from '$lib/components/Block.svelte';
import Image from '$lib/components/Thumbnail.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Communities" />

<h1>
These are communities I work with to do research, advocate, and have impact.
</h1>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/contact/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import Block from '$lib/components/Block.svelte';
import External from '$lib/components/External.svelte';
import Image from '$lib/components/Thumbnail.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Contacting Me" />

<h1> There are many ways to reach me: </h1>

<Block link="https://goo.gl/maps/7c3irRBubGvXYEtZ8" header="Office hours">
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/essays/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { profile } from '$lib/models/stores';
import Image from '$lib/components/Thumbnail.svelte';
import type { PostTagType } from '../../../lib/models/Post';
import Title from '$lib/components/Title.svelte';
let filter: Record<string, PostTagType> = {};
Expand All @@ -13,6 +14,8 @@
}
</script>

<Title text="Essays" />

<h1>
I <External to="https://amyjko.medium.com">blog</External> on my lab's Medium
publication, <External to="https://medium.com/bits-and-behavior"
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/faq/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
import Paper from '$lib/components/Paper.svelte';
import { profile } from '$lib/models/stores';
import SectionList from '../../../lib/components/SectionList.svelte';
import Title from '$lib/components/Title.svelte';
$: guide = $profile.getPublication('practicalguide');
</script>

<Title text="FAQ" />

<h1> These are questions I'm frequently asked. </h1>

<SectionList path="/faq" />
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/funding/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
import { parseDate } from '$lib/models/Profile';
import Image from '$lib/components/Thumbnail.svelte';
import Link from '$lib/components/Link.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Funding" />

<h1> My students and I receive funding from many sources. </h1>

<Block link="https://ischool.uw.edu" header="The Information School">
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/impact/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
import External from '$lib/components/External.svelte';
import { profile } from '$lib/models/stores';
import Image from '$lib/components/Thumbnail.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Impact" />

<h1> I actively share my research and expertise with the world. </h1>

{#each $profile.getPopulations() as population}
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/lab/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import External from '$lib/components/External.svelte';
import { onMount } from 'svelte';
import { scrollToHash } from '$lib/models/utilities';
import Title from '$lib/components/Title.svelte';
onMount(() => {
scrollToHash();
Expand All @@ -18,6 +19,8 @@
}
</script>

<Title text="Lab" />

<h1>
I direct the <em>Code & Cognition Lab</em>.
</h1>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/lablets/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Linkable from '$lib/components/Linkable.svelte';
import Alert from '$lib/components/Alert.svelte';
import Link from '$lib/components/Link.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Alert>
Expand All @@ -18,6 +19,8 @@
>.
</Alert>

<Title text="Lablets" />

<h1>
<strike
>Are you an undergraduate or masters student at UW that wants to join
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/publications/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { profile } from '$lib/models/stores';
import { scrollToHash } from '$lib/models/utilities';
import Alert from '../../../lib/components/Alert.svelte';
import Title from '$lib/components/Title.svelte';
let selection: Record<string, string> = {};
Expand Down Expand Up @@ -52,6 +53,8 @@
);
</script>

<Title text="Publications" />

<h1> These are my academic publications. </h1>

<p>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/talks/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { parseDate } from '$lib/models/Profile';
import Image from '$lib/components/Thumbnail.svelte';
import Link from '$lib/components/Link.svelte';
import Title from '$lib/components/Title.svelte';
const months = [
'Jan',
Expand All @@ -22,6 +23,8 @@
];
</script>

<Title text="Talks" />

<h1> These are my upcoming and past keynotes and invited talks. </h1>

{#each $profile.getTalks(undefined, (talk) => -parseDate(talk.date).getTime()) as talk}
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/travel/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import Trip from '$lib/models/Trip.svelte';
import { profile } from '$lib/models/stores';
import { parseDate } from '$lib/models/Profile';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Travel" />

<h1> Below are upcoming and past trips. </h1>

<p> I frequently travel to share my research, ideas, and experiences. </p>
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/wordplaypen/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
import Alert from '$lib/components/Alert.svelte';
import Link from '../../../lib/components/Link.svelte';
import Emoji from '$lib/components/Emoji.svelte';
import Title from '$lib/components/Title.svelte';
</script>

<Title text="Wordplaypen" />

<h1>
Are you a University of Washington undergraduate interested in making
programming languages more playful, global, and accessible?
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(cv)/cv/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import Image from '$lib/components/Thumbnail.svelte';
import Wrap from './Wrap.svelte';
import Table from '$lib/components/Table.svelte';
import Title from '$lib/components/Title.svelte';
let refereed = $profile.getPublications(
(pub) =>
Expand All @@ -18,6 +19,8 @@

<Image url={'/images/headshots/ajko.jpg'} alt="Headshot of Amy J. Ko" />

<Title text="Curriculum Vita" />

<h1>Amy J. Ko, Ph.D.</h1>
Professor
<br />The Information School
Expand Down

0 comments on commit c1d364a

Please sign in to comment.