+"html { font-family: 'Recursive Sans Linear Static', Roboto, serif; }"
+"section.new-movies > .label { font-family: Impact, sans-serif; background-color: black; padding: 0.5ex; font-size: 200%; color: #ffffee; font-weight: bold; }"
+"section.new-movies ul { padding: 0; margin: 0; }"
- +"section.new-movies li.movie { list-style: none; width: 250px; height: 353px; display: inline-block; position: relative; margin: 1ex 1ex 1ex 0ex; }"
- +"section.new-movies li.movie img { width: 100%; height: 100%; display: block; position: absolute; z-index: -1; }"
- +"section.new-movies li.movie .text { color: white; text-shadow: 2px 2px black; font-weight: bold; font-size: 150%; display: flex; flex-direction: column; justify-content: end; width: 100%; height: 100%; }"
+ +"section.new-movies li.movie { list-style: none; display: grid; margin: 1ex 1ex 1ex 0ex; grid-template-rows: 353px; grid-template-columns: 250px auto; }"
+ +"section.new-movies li.movie img { grid-area: 1/1/2/2; width: 100%; height: 100%; }"
+ +"section.new-movies li.movie .text { color: white; text-shadow: 2px 2px black; font-weight: bold; font-size: 150%; display: flex; flex-direction: column; justify-content: end; grid-area: 1/1/2/2; }"
+"section.new-movies li.movie .text .name { padding: 1ex; font-size: 120%; }"
+ +"section.new-movies li.movie .description { padding: 1ex; }"
+"section.daily-programmes ol { padding: 0; }"
+"section.daily-programmes li { list-style: none; }"
+(movie.name)
}
}
+ div("description") {
+ +movie.description
+ }
}
}
}
section("daily-programmes") {
ol("days") {
- movies.flatMap { it.performances.map(Performance::getTime).map(LocalDateTime::toLocalDate) }.distinct().sorted().forEach { date ->
+ movies.flatMap { it.performances.map(Performance::time).map(LocalDateTime::toLocalDate) }.distinct().sorted().forEach { date ->
li("day") {
attributes += "data-date" to "%tY-%<tm-%<td".format(date)
div("label") {
override fun triggered() = newMovies.isNotEmpty() || triggered
private val earliestMovie = movies.minByOrNull { it.earliestPerformance ?: LocalDateTime.MAX }
- private val Movie.earliestPerformance: LocalDateTime? get() = performances.minOfOrNull(Performance::getTime)
+ private val Movie.earliestPerformance: LocalDateTime? get() = performances.minOfOrNull(Performance::time)
}