Skip to content

A collection of simple examples of layouts using elm-ui

License

Notifications You must be signed in to change notification settings

objarni/elm-ui-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-ui-examples

Screenshot

A collection of simple examples of layouts using elm-ui.

Running the examples

In a terminal type

elm reactor

Then browse the src folder from localhost:8000.

Assuming Elm 0.19.1.

CenteredBox

A horisontally and vertically centered fixed-size box with centered text in it.

GoldenRatioColumns

Two full-height columns layed out in the 5:2 golden ratio, scaling with viewport. This demoes the use of alignment to position an element. Inspired by [1].

InteractiveButtons

A re-make of the +1, -1 buttons [2] from elm Html examples; click the buttons to increase or decrease the value displayed.

ResponsiveRowOfBoxes

An horisontal row of fixed size boxes with a mix of images and text, all same size. The row is centered in viewport. This example also demonstrates the use of padding between boxes.

[1] https://korban.net/posts/elm/2019-11-17-elm-ui-introduction/ [2] https://guide.elm-lang.org/architecture/buttons.html

About

A collection of simple examples of layouts using elm-ui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages