update examples on readme so they compile

This commit is contained in:
Matthew Griffith 2019-12-29 10:10:10 -05:00
parent 53a2732d95
commit 82b36545f3

View File

@ -20,9 +20,11 @@ This means:
* **Layout and style are explicit and easy to modify.** CSS and HTML as tools for a layout language are hard to modify because there's no central place that represents your layout. You're generally forced to bounce back and forth between multiple definitions in multiple files in order to adjust layout, even though it's probably the most common thing you'll do.
[Try this live example on Ellie!](https://ellie-app.com/3f2n4J5RnT3a1)
[Try this live example on Ellie!](https://ellie-app.com/7Cw4VCyr3RGa1)
```elm
module Main exposing (..)
import Element exposing (Element, el, text, row, alignRight, fill, width, rgb255, spacing, centerY, padding)
import Element.Background as Background
import Element.Border as Border