Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext.org
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext.org
Commits
8297e94b
Commit
8297e94b
authored
Aug 30, 2024
by
Fabien Maniere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import the hakyll-sass package + configuration + new sass files
parent
87eaa0ea
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
688 additions
and
749 deletions
+688
-749
default.css
gargantext-org-website/css/default.css
+0
-510
default.sass
gargantext-org-website/css/default.sass
+475
-0
garg-animations.css
gargantext-org-website/css/garg-animations.css
+0
-166
garg-animations.sass
gargantext-org-website/css/garg-animations.sass
+146
-0
style-garg-icons.css
gargantext-org-website/css/style-garg-icons.css
+0
-33
style-garg-icons.sass
gargantext-org-website/css/style-garg-icons.sass
+30
-0
gargantext-org-website.cabal
gargantext-org-website/gargantext-org-website.cabal
+1
-0
site.hs
gargantext-org-website/site.hs
+36
-40
No files found.
gargantext-org-website/css/default.css
deleted
100644 → 0
View file @
87eaa0ea
This diff is collapsed.
Click to expand it.
gargantext-org-website/css/default.sass
0 → 100644
View file @
8297e94b
This diff is collapsed.
Click to expand it.
gargantext-org-website/css/garg-animations.css
deleted
100644 → 0
View file @
87eaa0ea
/* .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
gargantext-org-website/css/garg-animations.sass
0 → 100644
View file @
8297e94b
// .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%
)
gargantext-org-website/css/style-garg-icons.css
deleted
100644 → 0
View file @
87eaa0ea
@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"
;
}
gargantext-org-website/css/style-garg-icons.sass
0 → 100644
View file @
8297e94b
@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"
gargantext-org-website/gargantext-org-website.cabal
View file @
8297e94b
...
...
@@ -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
...
...
gargantext-org-website/site.hs
View file @
8297e94b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment