Skip to content

Commit

Permalink
Add the logotype so that we demonstrate the use of the ViteHelper.
Browse files Browse the repository at this point in the history
  • Loading branch information
perty committed Nov 21, 2023
1 parent 4319b52 commit 3b5ffb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Main.elm
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
port module Main exposing (main)

import Browser
import Html exposing (Html, button, div, h1, p, text, textarea)
import Html.Attributes exposing (class, style, value)
import Html exposing (Html, button, div, h1, img, p, text, textarea)
import Html.Attributes exposing (class, height, src, style, value)
import Html.Events exposing (onClick, onInput)
import Markdown
import Time
import VitePluginHelper exposing (asset)


type alias Model =
Expand Down Expand Up @@ -53,7 +54,8 @@ update msg model =
view : Model -> Html Msg
view model =
div []
[ h1 [] [ text "Markdown Editor" ]
[ img [ src <| asset "/src/assets/logotype.png", height 50 ] []
, h1 [] [ text "Markdown Editor" ]
, p [] [ text "This is a simple markdown editor. It will save your markdown every 30 seconds locally in your browser. You can download the markdown by pressing the download button." ]
, div []
[ textarea
Expand Down

0 comments on commit 3b5ffb9

Please sign in to comment.