Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Akctarus committed Nov 14, 2023
1 parent 950747b commit 9c8f138
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 58 deletions.
15 changes: 6 additions & 9 deletions app.css
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,13 @@ html {
}
.footer img {
height: 2rem;
padding-left: 0.5rem;
padding-left: 2rem;
}

.footer.show {
opacity: 1;
}

/* svg {
height: 30vh;
} */

.logo-date {
height: 4rem;
}
Expand Down Expand Up @@ -259,14 +255,15 @@ time {
#arrow-down {
height: 5vh;
opacity: 1;
transition: opacity 0.4s ease-in-out;
transition: opacity 0.3s ease-in-out;
cursor: pointer;
}
#arrow-up {
height: 5vh;
opacity: 0;
transition: opacity 0.4s ease-in-out;
transition: opacity 0.3s ease-in-out;
cursor: pointer;
padding-right: 0.5rem;
}

.arrow-container {
Expand Down Expand Up @@ -388,14 +385,14 @@ time {
.hidden {
opacity: 0;
filter: blur(5px);
transform: translateX(-100%);
transform: translateY(100%);
transition: all 1s;
}

.show {
opacity: 1;
filter: blur(0);
transform: translateX(0);
transform: translateY(0);
}

@media screen and (max-width: 1024px) {
Expand Down
Binary file modified dist/background_site_kickoff.12e7538b.webp
Binary file not shown.
11 changes: 6 additions & 5 deletions dist/index.75a90472.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.75a90472.css.map

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions dist/index.975ef6c8.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.975ef6c8.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ <h2>Les conférences</h2>
</p>
<time>14:00 - 16:00</time>
</div>
<div class="part-two">
<p class="hidden">
<div class="part-two hidden">
<p>
<span>14:00</span> - Cérémonie d'ouverture et introduction au
programme OSRD <br>
<b>Loïc Hamelin</b> - Directeur du programme OSRD
</p>
<p class="hidden">
<p>
<span>14:05</span> - Conférence principale Short Term DCM <br>
<b>Loïc Hamelin</b> - Directeur du programme OSRD <br>
<b>Loïc Hamelin</b> - Directeur du programme OSRD <br>
Expand All @@ -155,7 +155,7 @@ <h2>Les conférences</h2>
<b>Loïc Hamelin</b> - Directeur du programme OSRD <br>
<b>Loïc Hamelin</b> - Directeur du programme OSRD
</p>
<p class="hidden">
<p>
<span>15:45</span> - Conclusion et avenir du projet au sein de SNCF
Réseau <br>
<b>Loïc Hamelin</b> - Directeur du programme OSRD
Expand Down
4 changes: 0 additions & 4 deletions index.css

This file was deleted.

8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ <h2>Les conférences</h2>
</p>
<time>14:00 - 16:00</time>
</div>
<div class="part-two">
<p class="hidden">
<div class="part-two hidden">
<p>
<span>14:00</span> - Cérémonie d'ouverture et introduction au
programme OSRD <br />
<b>Loïc Hamelin</b> - Directeur du programme OSRD
</p>
<p class="hidden">
<p>
<span>14:05</span> - Conférence principale Short Term DCM <br />
<b>Loïc Hamelin</b> - Directeur du programme OSRD <br />
<b>Loïc Hamelin</b> - Directeur du programme OSRD <br />
Expand All @@ -290,7 +290,7 @@ <h2>Les conférences</h2>
<b>Loïc Hamelin</b> - Directeur du programme OSRD <br />
<b>Loïc Hamelin</b> - Directeur du programme OSRD
</p>
<p class="hidden">
<p>
<span>15:45</span> - Conclusion et avenir du projet au sein de SNCF
Réseau <br />
<b>Loïc Hamelin</b> - Directeur du programme OSRD
Expand Down
Binary file modified public/assets/visuels/background_site_kickoff.webp
Binary file not shown.
17 changes: 0 additions & 17 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ function updateCurrentSection() {
((document.documentElement && document.documentElement.scrollTop) || 0);

currentSection = scrollPosition / viewportHeight + 1;

console.log("Current Section:", currentSection);
}

anime({
Expand Down Expand Up @@ -121,7 +119,6 @@ const sectionFour = document.getElementById("section-four");

window.addEventListener("scroll", function () {
if (window.scrollY === 0) {
console.log("at the top");
arrowUp.style.opacity = "0";
arrowUp.style.pointerEvents = "none";
} else {
Expand All @@ -130,7 +127,6 @@ window.addEventListener("scroll", function () {
}

if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
console.log("at the bottom");
arrowDown.style.opacity = "0";
arrowDown.style.pointerEvents = "none";
} else {
Expand All @@ -155,8 +151,6 @@ arrowDown.addEventListener("mouseleave", function () {

document.addEventListener("scroll", function () {
updateCurrentSection();

console.log("current section", currentSection);
});

arrowDown.addEventListener("click", function () {
Expand Down Expand Up @@ -221,17 +215,6 @@ let hours = Math.floor(
let minutes = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60));
let seconds = Math.floor((timeDifference % (1000 * 60)) / 1000);

console.log("days", days);
console.log("hours", hours);
console.log("minutes", minutes);
console.log("seconds", seconds);

console.log("today", today);
console.log("end date", endDate);
// console.log(`Days left: ${daysDifference}`);
console.log(`Time difference: ${timeDifference}`);
// console.log(`Hours left: ${hours}`);

// Set up flaps ////////////////////////////////////////////
speed = 0.1; // seconds
beginStr = `${hours}H${minutes}M${seconds}s`.toUpperCase().split("");
Expand Down

0 comments on commit 9c8f138

Please sign in to comment.