#import "template/template.typ": *
#import "@preview/muchpdf:0.1.1": muchpdf

// Patch the ETH logo to actually be white:
#let logo = "assets/eth-logo.svg"
#let original = read(logo)
#let changed = original.replace(
  "#00000f",
  white.to-hex(),
)

#let logos = (
  image(bytes(changed)),
  image("assets/uzh-logo.svg")
)

#import "importer/main.typ": *
#let notebook = json("../workdir/11_visualization/very_high_res_snapshot.ipynb")

#let front_image = image_cell(notebook, cell_id: "very_high_res_slice")
// #let front_image = image("assets/bg-desat.jpg")



#show: tasteful-thesis.with(
  // title: "BEoRN version 2",
  title: "Simulating the EOR with self-consistent growth of galaxies",
  authors: ("Rémy Moll",),
  supervisors: ("Prof. Aurel Schneider",),
  affiliation: "ETH Zürich, Universität Zürich",
  abstract: include("abstract.typ"),
  background-color: color.rgb(32, 64, 123),
  logos: logos,
  background-image: front_image,
  date: datetime.today().display("[day]. [month repr:long] [year]"),
  font: "FreeSans",
  pre_content: muchpdf(read("assets/declaration-originality.pdf", encoding: none)),
)



//
// Content
//

#include "introduction.typ"
#include "procedure.typ"
#include "halo_mass_history.typ"
#include "implementation.typ"
#include "validation.typ"
#include "results.typ"
#include "conclusion.typ"

#include "acknowledgements.typ"

#bibliography("references.bib", style: "assets/the-astrophysical-journal.csl")

#include "appendix.typ"
