#import "../PageTemplate.typ": page-theme
#import "@preview/i-figured:0.2.4"
#set enum(numbering: "1)")
#set heading(numbering: "บทที่ 1")

#[
  #show heading: it => {
    if it.level > 2 {
      block(
        it,
        inset: (left: 1.7em * (it.level - 2) + (0.9em * (it.level - 3))),
      )
    } else {
      it
    }
  }

  #include "Intro.typ"

  #set heading(numbering: "1.1", offset: 1)
  #include "Microcontroller.typ"
  #include "Sensors.typ"
  #include "Buzzer.typ"
  #include "HTTP.typ"
  #include "HTTPS.typ"
  #include "TLS.typ"
  #include "NFC.typ"
  #include "Flutter.typ"
  #include "Git.typ"
]

#show heading.where(level: 3): it => {
  block(
    it,
    inset: (left: 2.1em * (it.level - 2)),
  )
}
#show heading.where(level: 4): it => {
  block(
    it,
    inset: (left: 5.1em),
  )
}

#set heading(numbering: "1.1", offset: 1)
#include "CLanguage.typ"
