Commit 8297e94b authored by Fabien Maniere's avatar Fabien Maniere

import the hakyll-sass package + configuration + new sass files

parent 87eaa0ea
This diff is collapsed.
This diff is collapsed.
/* .area{
background: #4e54c8;
background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);
width: 100%;
height:100vh;
} */
.circles{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.circles li{
position: absolute;
display: block;
list-style: none;
width: 20px;
height: 20px;
/* background: rgba(255, 255, 255, 0.2); */
animation: animate 25s linear infinite;
bottom: -150px;
line-height: 0.5em;
color: rgba(255, 255, 255, 0.2);
}
.circles li:nth-child(1){
left: 25%;
width: 80px;
height: 80px;
animation-delay: 0s;
}
.circles li:nth-child(2){
left: 10%;
width: 20px;
height: 20px;
animation-delay: 2s;
animation-duration: 12s;
}
.circles li:nth-child(3){
left: 70%;
width: 20px;
height: 20px;
animation-delay: 4s;
}
.circles li:nth-child(4){
left: 40%;
width: 60px;
height: 60px;
animation-delay: 0s;
animation-duration: 18s;
}
.circles li:nth-child(5){
left: 65%;
width: 20px;
height: 20px;
animation-delay: 0s;
}
.circles li:nth-child(6){
left: 75%;
width: 110px;
height: 110px;
animation-delay: 3s;
}
.circles li:nth-child(7){
left: 35%;
width: 150px;
height: 150px;
animation-delay: 7s;
}
.circles li:nth-child(8){
left: 50%;
width: 25px;
height: 25px;
animation-delay: 15s;
animation-duration: 45s;
}
.circles li:nth-child(9){
left: 20%;
width: 15px;
height: 15px;
animation-delay: 2s;
animation-duration: 35s;
}
.circles li:nth-child(10){
left: 85%;
width: 150px;
height: 150px;
animation-delay: 0s;
animation-duration: 11s;
}
@keyframes animate {
0%{
transform: translateY(0) rotate(0deg);
opacity: 1;
border-radius: 0;
}
100%{
transform: translateY(-1000px) rotate(720deg);
opacity: 0;
border-radius: 50%;
}
}
@-webkit-keyframes slidein {
from {background-position: right 70%; background-size:250%; }
to {background-position: -100px 0px;background-size:cover;}
}
@keyframes slidein {
from {background-position: right 70%;background-size:250%; }
to {background-position: -100px 0px;background-size:cover;}
}
@-webkit-keyframes bgzoom {
from {background-position: 60vw 49%, center; background-size: 100%, auto; }
to {background-position: 54vw 55%, center;background-size:130%, auto;}
}
@keyframes bgzoom {
from {background-position: 60vw 49%, center; background-size: 100%, auto; }
to {background-position: 54vw 55%, center;background-size:130%, auto;}
}
/* text slide up */
.slide-up {
animation-name: slideUp;
animation-duration: 800s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-play-state: running;
}
@keyframes slideUp {
from {
transform: translateY(0%);
}
to {
transform: translateY(-50%);
}
}
\ No newline at end of file
// .area
// background: #4e54c8
// background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8)
// width: 100%
// height: 100vh
.circles
position: absolute
top: 0
left: 0
width: 100%
height: 100%
overflow: hidden
li
position: absolute
display: block
list-style: none
width: 20px
height: 20px
animation: animate 25s linear infinite
bottom: -150px
line-height: 0.5em
color: rgba(255, 255, 255, 0.2)
&:nth-child(1)
left: 25%
width: 80px
height: 80px
animation-delay: 0s
&:nth-child(2)
left: 10%
width: 20px
height: 20px
animation-delay: 2s
animation-duration: 12s
&:nth-child(3)
left: 70%
width: 20px
height: 20px
animation-delay: 4s
&:nth-child(4)
left: 40%
width: 60px
height: 60px
animation-delay: 0s
animation-duration: 18s
&:nth-child(5)
left: 65%
width: 20px
height: 20px
animation-delay: 0s
&:nth-child(6)
left: 75%
width: 110px
height: 110px
animation-delay: 3s
&:nth-child(7)
left: 35%
width: 150px
height: 150px
animation-delay: 7s
&:nth-child(8)
left: 50%
width: 25px
height: 25px
animation-delay: 15s
animation-duration: 45s
&:nth-child(9)
left: 20%
width: 15px
height: 15px
animation-delay: 2s
animation-duration: 35s
&:nth-child(10)
left: 85%
width: 150px
height: 150px
animation-delay: 0s
animation-duration: 11s
@keyframes animate
0%
transform: translateY(0) rotate(0deg)
opacity: 1
border-radius: 0
100%
transform: translateY(-1000px) rotate(720deg)
opacity: 0
border-radius: 50%
@-webkit-keyframes slidein
from
background-position: right 70%
background-size: 250%
to
background-position: -100px 0px
background-size: cover
@keyframes slidein
from
background-position: right 70%
background-size: 250%
to
background-position: -100px 0px
background-size: cover
@-webkit-keyframes bgzoom
from
background-position: 60vw 49%, center
background-size: 100%, auto
to
background-position: 54vw 55%, center
background-size: 130%, auto
@keyframes bgzoom
from
background-position: 60vw 49%, center
background-size: 100%, auto
to
background-position: 54vw 55%, center
background-size: 130%, auto
.slide-up
animation-name: slideUp
animation-duration: 800s
animation-timing-function: linear
animation-iteration-count: infinite
animation-play-state: running
@keyframes slideUp
from
transform: translateY(0%)
to
transform: translateY(-50%)
@font-face {
font-family: 'garg-icons';
src: url('fonts/garg-icons.eot?9cya6v');
src: url('fonts/garg-icons.eot?9cya6v#iefix') format('embedded-opentype'),
url('fonts/garg-icons.ttf?9cya6v') format('truetype'),
url('fonts/garg-icons.woff?9cya6v') format('woff'),
url('fonts/garg-icons.svg?9cya6v#garg-icons') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'garg-icons' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-ecosystem:before {
content: "\e900";
}
.icon-ecosystem-2:before {
content: "\e902";
}
@font-face
font-family: 'garg-icons'
src: url('fonts/garg-icons.eot?9cya6v')
src: url('fonts/garg-icons.eot?9cya6v#iefix') format('embedded-opentype')
src: url('fonts/garg-icons.ttf?9cya6v') format('truetype')
src: url('fonts/garg-icons.woff?9cya6v') format('woff')
src: url('fonts/garg-icons.svg?9cya6v#garg-icons') format('svg')
font-weight: normal
font-style: normal
font-display: block
[class^="icon-"], [class*=" icon-"]
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'garg-icons' !important
speak: never
font-style: normal
font-weight: normal
font-variant: normal
text-transform: none
line-height: 1
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
.icon-ecosystem:before
content: "\e900"
.icon-ecosystem-2:before
content: "\e902"
......@@ -8,6 +8,7 @@ executable site
build-depends: base == 4.*
, hakyll == 4.16.*
, hakyll-contrib-i18n ^>= 0.1.1.1
, hakyll-sass
, filepath
, network-uri
, split
......
......@@ -10,7 +10,7 @@ import Hakyll.Contrib.I18n
, translationCompiler
, translationContext
)
-- import Hakyll.Web.Sass (sassCompiler)
import Hakyll.Web.Sass (sassCompiler)
import Data.List (sortBy)
import Data.List.Split (splitOn)
import Data.Monoid (mappend)
......@@ -30,52 +30,19 @@ main = hakyllWith config $ do
route idRoute
compile copyFileCompiler
match "css/*" $ do
match "css/*.sass" $ do
route $ setExtension "css"
let compressCssItem = fmap compressCss
compile (compressCssItem <$> sassCompiler)
match "css/bootstrap*" $ do
route idRoute
compile compressCssCompiler
-- match "css/*.sass" $ do
-- route $ setExtension "css"
-- let compressCssItem = fmap compressCss
-- compile (compressCssItem <$> sassCompiler)
-- Translations
match "*/translation.yml" $
compile translationCompiler
-- Translations
match "*/translation.yml" $
compile translationCompiler
-- match (fromList ["about.rst", "contact.markdown"]) $ do
-- route $ setExtension "html"
-- compile $ pandocCompiler
-- >>= loadAndApplyTemplate "templates/default.html" defaultContext
-- >>= relativizeUrls
-- match "posts/*" $ do
-- route $ setExtension "html"
-- compile $ pandocCompiler
-- >>= loadAndApplyTemplate "templates/post.html" postCtx
-- >>= loadAndApplyTemplate "templates/default.html" postCtx
-- >>= relativizeUrls
-- create ["archive.html"] $ do
-- route idRoute
-- compile $ do
-- posts <- recentFirst =<< loadAll "posts/*"
-- currentYear <- unsafeCompiler getCurrentYear
-- let archiveCtx =
-- listField "posts" postCtx (return posts) `mappend`
-- constField "title" "Archives" `mappend`
-- constField "year" currentYear `mappend`
-- defaultContext
-- makeItem ""
-- >>= loadAndApplyTemplate "templates/archive.html" archiveCtx
-- >>= loadAndApplyTemplate "templates/default.html" archiveCtx
-- >>= relativizeUrls
-- Content
match "*/tiles/**" $ do
compile pandocCompiler
......@@ -121,6 +88,35 @@ main = hakyllWith config $ do
>>= loadAndApplyTemplate "templates/default.html" indexCtx
>>= relativizeUrls
-- match (fromList ["about.rst", "contact.markdown"]) $ do
-- route $ setExtension "html"
-- compile $ pandocCompiler
-- >>= loadAndApplyTemplate "templates/default.html" defaultContext
-- >>= relativizeUrls
-- match "posts/*" $ do
-- route $ setExtension "html"
-- compile $ pandocCompiler
-- >>= loadAndApplyTemplate "templates/post.html" postCtx
-- >>= loadAndApplyTemplate "templates/default.html" postCtx
-- >>= relativizeUrls
-- create ["archive.html"] $ do
-- route idRoute
-- compile $ do
-- posts <- recentFirst =<< loadAll "posts/*"
-- currentYear <- unsafeCompiler getCurrentYear
-- let archiveCtx =
-- listField "posts" postCtx (return posts) `mappend`
-- constField "title" "Archives" `mappend`
-- constField "year" currentYear `mappend`
-- defaultContext
-- makeItem ""
-- >>= loadAndApplyTemplate "templates/archive.html" archiveCtx
-- >>= loadAndApplyTemplate "templates/default.html" archiveCtx
-- >>= relativizeUrls
-- Redirections
create ["index.html"] $ do
route idRoute
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment