Skip to content

Commit

Permalink
Update the style of the template
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaykwardell committed Jun 11, 2024
1 parent 543b59d commit 6c0d2cd
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 12 deletions.
15 changes: 11 additions & 4 deletions src/HelloWorld.elm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module HelloWorld exposing (helloWorld)

import Html exposing (Html, a, button, code, div, h1, p, text)
import Html.Attributes exposing (href)
import Html.Attributes exposing (href, style)
import Html.Events exposing (onClick)
import Msg exposing (Msg(..))

Expand All @@ -15,9 +15,16 @@ helloWorld model =
, text " | "
, a [ href "https://guide.elm-lang.org/" ] [ text "Elm Documentation" ]
]
, button [ onClick Increment ] [ text "+" ]
, text <| "Count is: " ++ String.fromInt model
, button [ onClick Decrement ] [ text "-" ]
, div
[ style "display" "flex"
, style "justify-content" "center"
, style "align-items" "center"
, style "gap" "1rem"
]
[ button [ onClick Increment ] [ text "+" ]
, text <| "Count is: " ++ String.fromInt model
, button [ onClick Decrement ] [ text "-" ]
]
, p []
[ text "Edit "
, code [] [ text "src/Main.elm" ]
Expand Down
87 changes: 79 additions & 8 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,84 @@
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
position: fixed;
overflow: hidden;
height: 100svh;
width: 100vw;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin: 0 auto;
margin-top: 60px;
-webkit-text-size-adjust: 100%;
}

a {
color: #60b5cc;
}
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

.card {
padding: 2em;
}

#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

0 comments on commit 6c0d2cd

Please sign in to comment.