Skip to content

Commit 0d373f4

Browse files
author
Oussama
committed
fix: remove fake quiz artwork image
1 parent eeb5460 commit 0d373f4

7 files changed

Lines changed: 107 additions & 139 deletions

File tree

data/build_aggregates.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ def main() -> None:
680680
"n_works": int(artist_counts.get(artist_id, 0)),
681681
"sample_work_title": sample.get("title"),
682682
"sample_work_year": json_ready(sample.get("year")),
683+
"sample_work_url": sample.get("url"),
683684
}
684685
artist_records.append(
685686
{

data/build_report.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DArts aggregate build report
2-
generated_at: 2026-05-08T22:24:24+00:00
2+
generated_at: 2026-05-08T23:00:58+00:00
33

44
raw_artworks: 160,248
55
cleaned_artworks: 144,149
@@ -40,7 +40,7 @@ top_unmapped_nationality_labels:
4040
Caribbean: 1
4141

4242
outputs:
43-
artist_index.json: 3,548,506 bytes
43+
artist_index.json: 4,179,271 bytes
4444
country_by_decade.json: 50,233 bytes
4545
country_summary.json: 162,166 bytes
4646
gender_by_decade.json: 3,753 bytes

website/public/data/artist_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

website/public/data/summary.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"n_artworks_total":144149,"n_artworks_dated":141884,"n_artist_credits":160035,"n_artists_total":11879,"year_min":1768,"year_max":2026,"generated_at":"2026-05-08T22:24:24+00:00","total_artworks":144149,"total_artists":11879,"unique_nationalities":129,"top_department":"Drawings & Prints"}
1+
{"n_artworks_total":144149,"n_artworks_dated":141884,"n_artist_credits":160035,"n_artists_total":11879,"year_min":1768,"year_max":2026,"generated_at":"2026-05-08T23:00:58+00:00","total_artworks":144149,"total_artists":11879,"unique_nationalities":129,"top_department":"Drawings & Prints"}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<script>
2+
let { artist } = $props();
3+
</script>
4+
5+
<figure class="artwork-record-card" aria-label={`Representative artwork record for ${artist.sample_work_title}`}>
6+
<figcaption>
7+
<span>Representative artwork record</span>
8+
<em>{artist.sample_work_title}</em>
9+
<dl>
10+
{#if artist.sample_work_year}
11+
<div>
12+
<dt>Year</dt>
13+
<dd>{artist.sample_work_year}</dd>
14+
</div>
15+
{/if}
16+
<div>
17+
<dt>Medium</dt>
18+
<dd>{artist.medium_primary}</dd>
19+
</div>
20+
</dl>
21+
{#if artist.sample_work_url}
22+
<a href={artist.sample_work_url} target="_blank" rel="noopener">Open artwork record on MoMA</a>
23+
{:else}
24+
<p>No artwork image is embedded; MoMA records are linked out where available.</p>
25+
{/if}
26+
</figcaption>
27+
</figure>
28+
29+
<style>
30+
.artwork-record-card {
31+
margin: var(--space-4) 0 var(--space-2);
32+
border: 1px solid color-mix(in srgb, var(--fg-on-dark-mute) 40%, transparent);
33+
border-top: 2px solid var(--accent-primary);
34+
background: color-mix(in srgb, var(--fg-on-dark-strong) 5%, transparent);
35+
}
36+
37+
figcaption {
38+
display: grid;
39+
gap: var(--space-1);
40+
padding: var(--space-3);
41+
font-family: var(--font-body);
42+
}
43+
44+
span,
45+
dt,
46+
p {
47+
margin: 0;
48+
color: var(--fg-on-dark-mute);
49+
font-family: var(--font-ui);
50+
font-size: var(--type-small-size);
51+
}
52+
53+
span,
54+
dt {
55+
text-transform: uppercase;
56+
}
57+
58+
em {
59+
color: var(--fg-on-dark-strong);
60+
font-size: clamp(1.4rem, 3vw, var(--type-h2-size));
61+
line-height: var(--type-h2-line);
62+
}
63+
64+
dl {
65+
display: grid;
66+
grid-template-columns: repeat(2, minmax(0, 1fr));
67+
gap: var(--space-2);
68+
margin: var(--space-1) 0 0;
69+
padding: var(--space-1) 0 0;
70+
border-top: 1px solid color-mix(in srgb, var(--fg-on-dark-mute) 28%, transparent);
71+
}
72+
73+
dd {
74+
margin: 0.125rem 0 0;
75+
color: var(--fg-on-dark-strong);
76+
font-family: var(--font-ui);
77+
font-size: var(--type-body-size);
78+
}
79+
80+
a {
81+
width: fit-content;
82+
margin-top: var(--space-1);
83+
border-bottom: 1px solid currentColor;
84+
color: var(--fg-on-dark-strong);
85+
font-family: var(--font-ui);
86+
font-size: var(--type-small-size);
87+
text-decoration: none;
88+
}
89+
90+
a:hover,
91+
a:focus-visible {
92+
color: var(--accent-primary);
93+
}
94+
95+
@media (max-width: 520px) {
96+
dl {
97+
grid-template-columns: 1fr;
98+
}
99+
}
100+
</style>

website/src/lib/charts/GeneratedWorkCard.svelte

Lines changed: 0 additions & 133 deletions
This file was deleted.

website/src/lib/scenes/Scene5Quiz.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
22
import AnchorBar from '../charts/AnchorBar.svelte';
3-
import GeneratedWorkCard from '../charts/GeneratedWorkCard.svelte';
3+
import ArtworkRecordCard from '../charts/ArtworkRecordCard.svelte';
44
import SceneTitle from '../components/SceneTitle.svelte';
55
import { matchArtist } from '../utils/match.js';
66
import './scene5Quiz.css';
@@ -194,7 +194,7 @@
194194
</p>
195195
</div>
196196
</div>
197-
<GeneratedWorkCard artist={result.artist} />
197+
<ArtworkRecordCard artist={result.artist} />
198198
<AnchorBar artistName={result.artist.name} artistCount={result.artist.n_works} />
199199
<div class="actions">
200200
<button type="button" onclick={reset}>Try again</button>

0 commit comments

Comments
 (0)