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
f5f14332
Commit
f5f14332
authored
Jun 19, 2024
by
Fabien Maniere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix deploy and updates
parent
4cdb2c4c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
38 deletions
+58
-38
default.css
gargantext-org-website/css/default.css
+16
-0
garg-animations.css
gargantext-org-website/css/garg-animations.css
+10
-0
main.js
gargantext-org-website/js/main.js
+30
-24
site.hs
gargantext-org-website/site.hs
+1
-1
default.html
gargantext-org-website/templates/default.html
+1
-13
No files found.
gargantext-org-website/css/default.css
View file @
f5f14332
...
...
@@ -248,6 +248,22 @@ background-color: var(--bs-primary) !important;
animation-direction
:
alternate
;
}
.bg-petit-prince-zoom
{
background-image
:
url(../images/graph-petit-prince_v3_customized.png)
,
linear-gradient
(
132deg
,
#003153
0.00%
,
#001829
70.00%
);
background-repeat
:
no-repeat
,
repeat
;
-webkit-animation
:
bgzoom
10s
;
animation
:
bgzoom
10s
;
-webkit-animation-fill-mode
:
forwards
;
animation-fill-mode
:
forwards
;
-webkit-animation-iteration-count
:
infinite
;
animation-iteration-count
:
infinite
;
-webkit-animation-direction
:
alternate
;
animation-direction
:
alternate
;
}
.text-garg-secondary
{
color
:
var
(
--garg-secondary
);
...
...
gargantext-org-website/css/garg-animations.css
View file @
f5f14332
...
...
@@ -134,6 +134,16 @@
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
{
...
...
gargantext-org-website/js/main.js
View file @
f5f14332
document
.
addEventListener
(
"DOMContentLoaded"
,
function
()
{
var
elements
=
document
.
querySelectorAll
(
".circles li"
);
// Supposons que fitText soit une fonction disponible globalement ou définie dans votre script
elements
.
forEach
(
function
(
element
)
{
fitText
(
element
,
0.08
);
fitText
(
element
,
0.08
);
});
var
homeItems
=
document
.
querySelectorAll
(
'.hero-logo-wrapper, h1, .logos-small, h2, h4, .hero-links li'
);
gsap
.
fromTo
(
homeItems
,
{
opacity
:
0
},
// État initial : invisible et légèrement plus petit
{
opacity
:
1
,
stagger
:
0.3
}
// État final : visible et à taille normale
);
var
excerptElement
=
document
.
querySelector
(
'.excerpt-petit-prince'
);
gsap
.
from
(
excerptElement
,
{
opacity
:
0
,
duration
:
3
,
stagger
:
0.3
}
);
// gsap.to(".excerpt-petit-prince", {
// duration: 10,
// yPercent: -50,
// ease: "none",
// repeat: -1,
// });
});
...
...
@@ -33,12 +39,12 @@ document.addEventListener("DOMContentLoaded", function() {
* Date: Tue Aug 09 2011 10:45:54 GMT+0200 (CEST)
*/
(
function
(){
var
addEvent
=
function
(
el
,
type
,
fn
)
{
if
(
el
.
addEventListener
)
el
.
addEventListener
(
type
,
fn
,
false
);
else
el
.
attachEvent
(
'on'
+
type
,
fn
);
else
el
.
attachEvent
(
'on'
+
type
,
fn
);
};
var
extend
=
function
(
obj
,
ext
){
...
...
@@ -47,37 +53,37 @@ document.addEventListener("DOMContentLoaded", function() {
obj
[
key
]
=
ext
[
key
];
return
obj
;
};
window
.
fitText
=
function
(
el
,
kompressor
,
options
)
{
var
settings
=
extend
({
'minFontSize'
:
-
1
/
0
,
'maxFontSize'
:
1
/
0
},
options
);
var
fit
=
function
(
el
)
{
var
compressor
=
kompressor
||
1
;
var
resizer
=
function
()
{
el
.
style
.
fontSize
=
Math
.
max
(
Math
.
min
(
el
.
clientWidth
/
(
compressor
*
10
),
parseFloat
(
settings
.
maxFontSize
)),
parseFloat
(
settings
.
minFontSize
))
+
'px'
;
};
// Call once to set.
resizer
();
// Bind events
// If you have any js library which support Events, replace this part
// and remove addEvent function (or use original jQuery version)
addEvent
(
window
,
'resize'
,
resizer
);
addEvent
(
window
,
'orientationchange'
,
resizer
);
};
if
(
el
.
length
)
for
(
var
i
=
0
;
i
<
el
.
length
;
i
++
)
fit
(
el
[
i
]);
else
fit
(
el
);
fit
(
el
);
// return set of elements
return
el
;
};
...
...
gargantext-org-website/site.hs
View file @
f5f14332
...
...
@@ -68,7 +68,7 @@ postCtx =
config
::
Configuration
config
=
defaultConfiguration
{
previewPort
=
7000
,
deployCommand
=
"
rsync --checksum -ave 'ssh -p 2222'
\
,
deployCommand
=
"
sudo rsync --checksum -chavzPpr
\
\
_site/*
\
\
/var/www/html/gargantext-org
\
\
&& sudo chown -R www-data: /var/www/html/gargantext-org"
...
...
gargantext-org-website/templates/default.html
View file @
f5f14332
...
...
@@ -28,7 +28,7 @@
<div
class=
"container"
>
<a
href=
"#top"
class=
"navbar-brand logo m-1 d-flex align-items-center py-0 my-0"
>
<picture
class=
"py-1"
>
<source
srcset=
"
img
/logo.svg"
media=
"(max-width: 992px)"
class=
"img-fluid"
/>
<source
srcset=
"
/images
/logo.svg"
media=
"(max-width: 992px)"
class=
"img-fluid"
/>
<img
src=
"/images/logo.svg"
alt=
""
class=
"img-fluid"
>
</picture>
<img
src=
"/images/logo.svg"
alt=
""
class=
"logo-scrolling img-fluid d-none"
>
...
...
@@ -56,18 +56,6 @@
</div>
</div>
</nav>
<!-- <div class="container d-flex align-items-center">
<a href="#top" class="logo m-1 d-flex align-items-center">
<picture>
<source srcset="img/logo.svg" media="(max-width: 992px)" class="img-fluid" />
<img src="/images/logo.svg" alt="" class="img-fluid">
</picture>
<img src="/images/logo.svg" alt="" class="logo-scrolling img-fluid d-none">
<span class="bold text-primary">Gargan<span class="text-courier">text</span></span>
</a>
</div> -->
<div
class=
"bg-garg-gradient-mix pt-1"
></div>
</header>
...
...
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