Commit f5f14332 authored by Fabien Maniere's avatar Fabien Maniere

fix deploy and updates

parent 4cdb2c4c
......@@ -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);
......
......@@ -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 {
......
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;
};
......
......@@ -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"
......
......@@ -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>
......
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