aboutsummaryrefslogtreecommitdiff
path: root/css/Style.hs
blob: f53ca1eb2fd93886e1031af6dd9e8ef54e483212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{-# LANGUAGE OverloadedStrings #-}

import           Clay
import qualified Data.Text.Lazy.IO as T

import qualified Body
import qualified Color
import qualified Header
import qualified IconLink
import qualified Media
import qualified Project
import qualified Resume
import qualified Section
import qualified Skills

main :: IO ()
main = T.putStrLn . renderWith compact [] $ do

  appearKeyframes

  body ? do
    overflowX hidden
    color Color.black
    margin (px 0) (px 0) (px 40) (px 0)
    Media.mobile $ fontSize (px 16)
    Media.tabletDesktop $ fontSize (px 18)

  ".Main__Container" ? do
    animationName "appear"
    animationDuration (sec 0.2)
    animationTimingFunction easeIn
    animationIterationCount (iterationCount 1.0)

  svg ? do
    width inherit
    height inherit

  ul ? do
    listStyleType none
    paddingLeft (px 0)

  Body.style
  Header.style
  IconLink.style
  Project.style
  Resume.style
  Section.style
  Skills.style

appearKeyframes :: Css
appearKeyframes = keyframes
  "appear"
  [ (0, do
      "transform" -: "translateX(10px)"
      opacity 0
    )
  , (100, "transform" -: "translateX(0px)")
  ]