#import "globals.typ": *


#let logo = "assets/uzh-logo.svg"
#let original = read(logo)
#let changed = original.replace(
  "#FFFFFF",
  black.to-hex(),
)

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


#let ratio = 4/3
#let layout_size = "medium"
#let authors = ("Rémy Moll",)
#let date = "18 September 2024"
#let title = "Simulating the EOR with self-consistent growth of galaxies"
#let subtitle = "Master's thesis presentation"
#let footer-title = "Self-consistent simulations of the EOR"
#let title-color = color.blue.darken(50%);
#let bg-color = color.white;

#let padded_logos = logos.map(logo => box(height: 1.5em, inset: (x:0.3cm), logo))


///// Front page /////
#let notebook = json("../workdir/11_visualization/very_high_res_snapshot.ipynb")
#let front_image = image_cell(notebook, cell_id: "very_high_res_slice")
// #title-slide[

//   #let space = 2cm
//   #place[
//     #front_image,
//   ]
//   #place[
//     #box(
//       width: 100%,
//       height: 100%,
//       fill: color.black.transparentize(65%)
//     )
//   ]

//   #block(
//     inset: (x:0.5*space, y:1em),
//     width: 100%,
//     height: 60%,
//     align(bottom)[#text(2.0em, weight: "bold", fill: bg-color, title)],
//     above: 0cm,
//     below: 0cm,
//   )




//   #block(
//     height: 40%,
//     width: 100%,
//     fill: bg-color,
//     inset: (x:0.5*space,top:1cm, bottom: 1em),
//     above: 0cm,
//     below: 0cm,
//     if subtitle != none {[
//       #text(1.4em, fill: title-color, weight: "bold", subtitle)
//     ]} +
//     if subtitle != none and date != none { text(1.4em)[ \ ] } +
//     if date != none {text(1.1em, date)} +
//     align(
//       bottom,
//       stack(
//         dir: ltr,
//           authors.join(", ", last: " & "),
//           h(1fr),
//           ..padded_logos,
//       )
//     )
//   )
// ]
// #slide[

//   // #set page(
//   //   footer: none,
//   //   header: none,
//   //   margin: 0cm
//   // )


// ]

///// Main content /////





#show: lineal-theme.with(
  aspect-ratio: "16-9",
  // config-common(handout: true),
  config-info(
    title: [#title],
    subtitle: [#subtitle],
    author: [Author],
    date: datetime.today(),
    institution: [ETH Zürich, University of Zürich],
    // logo: brand.logo,
  ),
  // config-common(handout: true)
  // footer-left: self => [..#padded_logos],
)

#title-slide()

#include "introduction.typ"

= #beorn
#include "halo_model.typ"
#include "beorn.typ"


#include "refinements.typ"

#include "implementation.typ"

#include "results.typ"
#include "conclusion.typ"


= End
== Thank you for your attention

#bibliography("references.bib", title: "References")
#show: appendix
#include("backup.typ")

