aboutsummaryrefslogtreecommitdiff
path: root/src/Design/Projects.hs
diff options
context:
space:
mode:
authorJoris Guyonvarch2014-04-06 22:55:16 +0200
committerJoris2019-05-01 15:34:22 +0200
commit0fe906ae7453aa684e998bbcc7a78b62d84f0206 (patch)
treed3968af830b964193349187fb6fc583780cd0ce3 /src/Design/Projects.hs
parent8b11c4be2b3ac354fa14534662dbd92374617a3e (diff)
Show resume and projects from a configuration file
Diffstat (limited to 'src/Design/Projects.hs')
-rw-r--r--src/Design/Projects.hs51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/Design/Projects.hs b/src/Design/Projects.hs
new file mode 100644
index 0000000..311b7f8
--- /dev/null
+++ b/src/Design/Projects.hs
@@ -0,0 +1,51 @@
+{-# LANGUAGE OverloadedStrings #-}
+
+module Design.Projects
+ ( projectsCss
+ ) where
+
+import Prelude hiding ((**))
+
+import Data.Monoid ((<>))
+
+import Clay
+import qualified Clay.Flexbox as CF
+
+import qualified Design.Color as Color
+import qualified Design.Media as Media
+import qualified Design.Size as Size
+
+projectsCss :: Css
+projectsCss =
+ ".project" ? do
+ margin (pct 0) (pct 10) (pct 0) (pct 10)
+
+ h1 ? ".separator" ? color Color.black
+
+ ".body" ? do
+ Size.indentation
+
+ ".technologies" <> ".pageLink" ? do
+ i ? marginRight (em 0.5)
+ Size.lineHeight
+ marginBottom (px 10)
+
+ ".technologies" ? do
+ Media.mobile $ fontSize (pct 90)
+ ul ? do
+ display flex
+ flexWrap CF.wrap
+ li ? do
+ backgroundColor Color.orange
+ color Color.white
+ borderRadius (px 2) (px 2) (px 2) (px 2)
+ margin (px 0) (px 10) (px 5) (px 0)
+ ":last-child:after" & marginRight (px 0)
+
+ Media.desktop $ padding (px 0) (px 10) (px 0) (px 10)
+ Media.mobileTablet $ padding (px 0) (px 5) (px 0) (px 5)
+
+ ".description" ? do
+ Size.lineHeight
+ marginTop (px 10)
+ Media.desktop $ width (pct 50)