aboutsummaryrefslogtreecommitdiff
path: root/test/apps/static.gleam
blob: d41964aac28278a9474ffacc5c19265d8f830c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// IMPORTS ---------------------------------------------------------------------

import lustre/attribute.{src}
import lustre/element.{text}
import lustre/element/html.{body, h1, head, html, img, title}

// VIEW ------------------------------------------------------------------------

pub fn view() {
  html([], [
    head([], [title([], "Hello, World!")]),
    body([], [
      h1([], [text("Hello, World!")]),
      img([src("https://source.unsplash.com/random")]),
    ]),
  ])
}