Skip to content

Commit

Permalink
Merge pull request #161 from chnm/feature/architecture
Browse files Browse the repository at this point in the history
Integrate content into pages
  • Loading branch information
hepplerj authored Dec 5, 2024
2 parents 201c637 + c8e9e29 commit 1b81951
Show file tree
Hide file tree
Showing 21 changed files with 10,245 additions and 897 deletions.
23 changes: 10 additions & 13 deletions bom-website/assets/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ document.addEventListener("DOMContentLoaded", function () {
document
.querySelectorAll("nav .relative ul")
.forEach((ul) => ul.classList.add("hidden"));
document
.querySelectorAll(".dropdown-toggle")
.forEach((btn) => {
btn.classList.remove("dropdown-open");
btn.querySelector("svg").classList.remove("rotate-180");
});
document.querySelectorAll(".dropdown-toggle").forEach((btn) => {
btn.classList.remove("dropdown-open");
btn.querySelector("svg").classList.remove("rotate-180");
});

if (!isOpen) {
dropdown.classList.remove("hidden");
Expand All @@ -26,12 +24,11 @@ document.addEventListener("DOMContentLoaded", function () {
document
.querySelectorAll("nav .relative ul")
.forEach((ul) => ul.classList.add("hidden"));
document
.querySelectorAll(".dropdown-toggle")
.forEach((btn) => {
btn.classList.remove("dropdown-open");
btn.querySelector("svg").classList.remove("rotate-180");
});
document.querySelectorAll(".dropdown-toggle").forEach((btn) => {
btn.classList.remove("dropdown-open");
btn.querySelector("svg").classList.remove("rotate-180");
});
}
});
});
});

11 changes: 1 addition & 10 deletions bom-website/assets/js/database.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import Alpine from "alpinejs";
import collapse from "@alpinejs/collapse";

// initialize Alpine
window.Alpine = Alpine;
Alpine.plugin(collapse);

document.addEventListener("alpine:init", () => {
const params = new URLSearchParams(window.location.search);
Alpine.data("billsData", () => ({
bills: [],
christenings: [],
Expand Down Expand Up @@ -118,7 +112,6 @@ document.addEventListener("alpine:init", () => {
// billType defaults to filters.selectedBillType unless one is provided by the app
billType = billType || this.filters.selectedBillType;


// Bills data
let response = await fetch(
`https://data.chnm.org/bom/bills?start-year=${this.filters.selectedStartYear}&end-year=${this.filters.selectedEndYear}&bill-type=${billType}&count-type=${this.filters.selectedCountType}&parish=${this.filters.selectedParishes}&limit=${this.server.limit}&offset=${this.server.offset}`,
Expand Down Expand Up @@ -373,5 +366,3 @@ document.addEventListener("alpine:init", () => {
},
}));
});

Alpine.start();
2 changes: 1 addition & 1 deletion bom-website/content/analysis/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: "Analysis"
slug: /analysis/
---

Analysis page. *Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.*
The London Bills of Mortality lend themselves to both qualitative and quantitative analyses. The following team member essays analyze the bills using a variety of historical and statistical methods.
35 changes: 34 additions & 1 deletion bom-website/content/context/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,37 @@ title: Context
slug: /context/
---

Context intro. *Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.*
The London Bills of Mortality were complex documents whose format changed significantly over the hundreds of years they were produced by the Worshipful Company of Parish Clerks. These essays by project team members help explain and situate the bills in their historical context.

### General Introduction

- [London Bills of Mortality](https://dev.deathbynumbers.org/context/the-london-bills-of-mortality/)
- [Confusion of Calendars](https://dev.deathbynumbers.org/context/confusion-of-calendars/)
- [Why is There Bread in the Bills?](https://dev.deathbynumbers.org/context/why-bread/)

### Space and Places

- [Parishes and Extra-Parochial Places](https://dev.deathbynumbers.org/context/parishes-and-extra-parochial-places/)
- ["Within the Bills": EEBO and the Early Modern London Metropolis](https://dev.deathbynumbers.org/context/within-the-bills-eebo-and-the-early-modern-london-metropolis/)
- [A Parish By Any Other Name](https://dev.deathbynumbers.org/context/a-parish-by-any-other-name/)

### Production of the Bills

- [A Woman's Touch on the Bills of Mortality](https://dev.deathbynumbers.org/context/2024-06-10-womans-touch/)
- [The Parish Clerks' Memento Mori: Iconography of Death and Trademark in the London Bills of Mortality, 1727-1752](https://dev.deathbynumbers.org/context/parish-clerks-memento-mori/)

### Reading the Bills

- [God's Terrible Voice in the City: New England Connections to the London Bills of Mortality](https://dev.deathbynumbers.org/context/2022-08-29-gods-terrible-voice-in-the-city-new-england-connections-to-the-bills-of-mortality/)
- [London in Tears: Grief and Collective Mourning in the Bills of Mortality](https://dev.deathbynumbers.org/context/2022-11-07-london-in-tears-grief-and-collective-mourning-in-the-bills-of-mortality/)
- [The Facts of Mortality: the Use of the London Bills in Daniel Defoe's _A Journal of the Plague Year_](https://dev.deathbynumbers.org/context/2022-09-26-the-facts-of-mortality-the-use-of-the-london-bills-in-daniel-dafoes-a-journal-of-the-plague-year/)

### Specific Causes of Death

- [A Starvation Death During the Great Plague of 1665](https://dev.deathbynumbers.org/analysis/starvation/)
- [Chimneys and the Great Storm of 1703](https://dev.deathbynumbers.org/analysis/chimneys-and-the-great-storm-of-1703/)
- [Found Dead? Unknown Causes of Death in the Bills of Mortality](https://dev.deathbynumbers.org/context/2022-10-31-found-dead-unknown-causes-of-death-in-the-bills-of-mortality/)
- [Infant Mortality in the Monarchical Bills of Mortality, 1665-1669](https://dev.deathbynumbers.org/analysis/2023-10-25-infant-mortality-in-the-monarchical-bills-of-mortality-1665-1669/)
- [Of Fires Great and Small](https://dev.deathbynumbers.org/analysis/2023-03-14-fires/)
- [Old Age and Aged Deaths](https://dev.deathbynumbers.org/analysis/old-age-and-aged-deaths/)
- [Strangled himself (being distracted): Messy Data and Suicides in the Bills of Mortality](https://dev.deathbynumbers.org/context/strangled-himself-being-distracted-messy-data-and-suicides-in-the-bills-of-mortality/)
8 changes: 7 additions & 1 deletion bom-website/content/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ title: Data
slug: /data/
---

Data page overview.
The data for the Death by Numbers project has been manually transcribed out of photographs and digitized microfiche images of the original bills of mortality. To ensure that scholars are able to trace our transcriptions back to the original, archival sources, we have divided our transcribed bills into multiple datasets that are named and described according to the archive and call numbers where we found collections of bills. This is most apparent in the downloadable CSV files and can also be traced in the unique IDs for each transcription. For more on our project workflow, see our [methodologies essays](https://deathbynumbers.org/methodologies/).

Data can be access through
- [our online database](https://deathbynumbers.org/database/)
- [images of the bills](https://bom.chnm.org/s/bills-of-mortality/page/welcome)
- [downloadable CSV files](https://deathbynumbers.org/downloads/)
- [our API, which is documented here](https://deathbynumbers.org/api/)
7 changes: 3 additions & 4 deletions bom-website/content/pedagogy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ title: Pedagogy
slug: /pedagogy/
---

Pedagogy page.
The London Bills of Mortality make an excellent resource to use in a classroom environment and are appropriate for students grades 8-12, undergraduates, and graduates. You may find below a poster presentation on using the bills in the classroom and a link to the prototype of a text-based adventure game to survive the Great Plague of 1665. More pedagogical resources will be forthcoming.

## Games

- Plague game
- [Early Modern Death in the 21st Century Classroom](https://dev.deathbynumbers.org/context/teaching-early-modern-death/)
- [Gaming the Great Plague of London](https://1665plague.rrchnm.org)

4 changes: 3 additions & 1 deletion bom-website/content/people.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ slug: /team/
- [Hernán Adasme](/authors/hernan-adasme/), Graduate Research Assistant, 2022-present
- Donna Baker, Grants Manager, 2023-present
- Jerusha French, Digital History Research Assistant, 2024-present
- Mikayla Hart, Digital History Research Assistant, 2024-present
- [Jason Heppler](/authors/jason-heppler/), Senior Web Developer, 2021-present
- JD Hubbard, Digital History Research Assistant, 2024-present
- Kristin Jacobsen, Omeka Designer, 2024-present
- [Katie Kania](/authors/katie-kania/), Digital History Research Assistant, 2021-present
- Alison Langford, Office Manager, 2022-present
- Ha Le, Digital History Research Assistant, 2024-present
- Francisco Perez, Digital History Research Assistant, 2024-present
- [Laszlo Taba](/authors/laszlo-taba/), Digital History Research Assistant, 2024-present
- Tony Trinh, Systems Administrator, 2022-present
Expand All @@ -37,6 +38,7 @@ slug: /team/
- Julia Hoffer, Grants Administrator, 2020-2022
- [Dan Howlett](/authors/dan-howlett/), Graduate Research Assistant, 2021-2022
- Jennie Jiang, RRCHNM Summer Intern, 2022
- [Katie Kania](/authors/katie-kania/), Digital History Research Assistant, 2021-2024
- God's Will Katchoua, Systems Administrator, 2020-2022
- Paige Kuester, Graduate Student Assistant, 2018
- [Emily Meyers](/authors/emily-meyers/), Digital History Research Assistant, 2021-2023
Expand Down
12 changes: 10 additions & 2 deletions bom-website/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"bg-orange-100",
"bg-slate-100",
"bg-slate-200",
"bg-slate-500",
"bg-slate-400",
"bg-white",
"bi",
"bi-folder",
Expand All @@ -90,6 +90,7 @@
"border-gray-300",
"border-l-4",
"border-none",
"border-r",
"border-slate-200",
"border-solid",
"border-t",
Expand Down Expand Up @@ -229,6 +230,7 @@
"max-w-2xl",
"max-w-3xl",
"max-w-lg",
"max-w-none",
"max-w-xl",
"mb-0",
"mb-10",
Expand Down Expand Up @@ -306,6 +308,7 @@
"pb-5",
"pb-6",
"posts",
"pr-4",
"pr-5",
"prose",
"prose-2xl",
Expand Down Expand Up @@ -356,6 +359,7 @@
"sm:mr-3",
"sm:order-last",
"sm:p-0",
"sm:pl-8",
"sm:pr-16",
"sm:px-5",
"sm:scale-100",
Expand Down Expand Up @@ -491,7 +495,7 @@
"fnref:7",
"fnref:8",
"fnref:9",
"games",
"general-introduction",
"got-feedback",
"instructions-title",
"mapping-killings-suicides-and-drownings",
Expand All @@ -508,7 +512,9 @@
"problem-number-5-tech-happens",
"problem-number-6-know-when-to-check",
"problem-number-7-not-saving",
"production-of-the-bills",
"project-alumni",
"reading-the-bills",
"regulating-the-price-of-bread",
"reset-button",
"row",
Expand All @@ -521,6 +527,8 @@
"solution-please-remember-to-save",
"solution-see-above",
"solution-you-shouldnt-be-surprised-small-level-of-math-knowledge-required",
"space-and-places",
"specific-causes-of-death",
"start-year",
"step-1-putting-your-data-ducks-in-a-row",
"step-2-joining-your-csv-to-your-shp",
Expand Down
Loading

0 comments on commit 1b81951

Please sign in to comment.