Skip to content

Commit

Permalink
Better looking
Browse files Browse the repository at this point in the history
  • Loading branch information
perty committed Nov 20, 2023
1 parent 7ba6d84 commit 2c43666
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
7 changes: 1 addition & 6 deletions src/HelloWorld.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module HelloWorld exposing (helloWorld)

import Html exposing (Html, a, button, code, div, h1, p, text)
import Html exposing (Html, a, button, div, h1, p, text)
import Html.Attributes exposing (href)
import Html.Events exposing (onClick)
import Msg exposing (Msg(..))
Expand All @@ -18,9 +18,4 @@ helloWorld model =
, button [ onClick Increment ] [ text "+" ]
, text <| "Count is: " ++ String.fromInt model
, button [ onClick Decrement ] [ text "-" ]
, p []
[ text "Edit "
, code [] [ text "src/Main.elm" ]
, text " to test auto refresh"
]
]
2 changes: 1 addition & 1 deletion src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ update msg model =
view : Int -> Html Msg
view model =
div []
[ img [ src <| VitePluginHelper.asset "/src/assets/logo.png", style "width" "300px" ] []
[ img [ src <| VitePluginHelper.asset "/src/assets/logotype.png", style "width" "300px" ] []
, helloWorld model
]
Binary file removed src/assets/logo.png
Binary file not shown.
30 changes: 21 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin: 0 auto;
margin-top: 60px;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin: 0 auto;
margin-top: 60px;
}

a {
color: #60b5cc;
}
color: #60b5cc;
}

button {
background-color: #60b5cc; /* Blå bakgrundsfärg */
color: white; /* Vit text */
padding: 10px 20px; /* Vertikal och horisontell padding */
border: none; /* Tar bort standardkanten */
border-radius: 5px; /* Rundade hörn */
font-size: 1em; /* Lämplig teckensnittsstorlek */
cursor: pointer; /* Ändrar muspekaren till en hand när den hovrar över knappen */
transition: background-color 0.3s; /* Gör en mjuk övergång för hover-effekten */
margin: 5px;
}

0 comments on commit 2c43666

Please sign in to comment.