Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultGuillaumont committed Jun 12, 2024
1 parent 9d4b8e0 commit d46cbfd
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _assets/img/posts/2024_lascaux/lascaux.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion _css/_ecorpus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
position : relative;
width : 100%;
height: 100%;
min-height: 500px;
left: 50%;
transform: translateX(-50%);
}
}

.sticky {
position: fixed;
width: 1200px;
height:500px;
z-index: -1;
}

.sticky + .content {
padding-top: 102px;
}

49 changes: 49 additions & 0 deletions fr/_posts/2024-05-14-lascaux3D.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: front_page
title: eCorpus - Visite de Lascaux en 3D
image: img/posts/2024_lascaux/lascaux.jpg
abstract: Une visite en ligne de la plus célèbre grotte peinte de France
tags: Explanations Holograms cultural mediation
---

<main class="main-dark main-grid">

<section class="section section-center">
<h2 class="text-white my-5" style="font-size: 3rem">Un chef d'oeuvre de l'art pariétal</h2>
{% include components/medias/ecorpus.html server="https://man.ecorpus.holusion.com" scene="Lascaux" %}
</section>

<section class="section section-center">
<div class="content py-0 my-auto text-justify">
<h2>Visitez la grotte de Lascaux</h2>
</div>

</section>
<section class="section section-center" id="slider" style="height:1000vh">


</section>
</main>



<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

// Get the header
var header = document.getElementById("Lascaux").parentNode;
console.log(header);
// Get the offset position of the navbar
var sticky = header.offsetTop;


// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
function myFunction() {
if (window.pageYOffset > sticky) {
header.classList.add("sticky");
} else {
header.classList.remove("sticky");
}
}
</script>

0 comments on commit d46cbfd

Please sign in to comment.