// SPDX-FileCopyrightText: 2023 <NAME>
//
// SPDX-License-Identifier: Apache-2.0

#let title(
  title,
  subtitle,
  author, 
  department,
  first_supervisor,
  second_supervisor,
  assistant_supervisor,
  submission_date, 
  copyright_year, 
  thesis_type,
  degree,
  programme_type,
  programme,
) = {

 v(0.15fr)
  
  //render title, and slighty smaller the subtitle
  align(center)[
    #text(2em, weight: 700, title) 

    #text(1.7em, weight: 400, subtitle)
  ]

  v(1cm)
  align(center)[by]
  v(1cm)

  align(center)[
    //now the author
    #text(size: 16pt)[#author] \

    #v(1.5cm)

    //thesis details
    #text(size: 15pt)[#thesis_type] \
    to confer the academic degree of \
    #text(size: 15pt)[#degree] \
    in the #programme_type \
    #text(size: 15pt)[#programme] \
    #v(1cm)
    #department \
    Johannes Kepler University Linz\

    //supervisors
    #v(1.5cm)
    Supervisor: #first_supervisor \
    #{
      if(second_supervisor != none){
         [Second Supervisor: #second_supervisor \ ]
      }
    }
    #{
      if(assistant_supervisor != none){
        [Assistant Supervisor: #assistant_supervisor \ ]
      }
    }

    //submission date
    #v(1.5cm)
    #submission_date

    //copyright notice
    #v(1cm)
    #{
      if(copyright_year != none){
         [#sym.copyright #author #copyright_year]
      }
    }

  ]
}