maj title
This commit is contained in:
@@ -13,6 +13,8 @@ body::before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
position: absolute;
|
||||||
|
top: 28vh;
|
||||||
max-width: 1140px;
|
max-width: 1140px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
@@ -361,14 +363,15 @@ footer {
|
|||||||
|
|
||||||
.container-title {
|
.container-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
position: absolute;
|
||||||
|
top:5vh
|
||||||
}
|
}
|
||||||
.container-title #xyz {
|
.container-title #xyz {
|
||||||
left: 25vw;
|
left: 25vw;
|
||||||
font-family: 'Cabin Condensed', sans-serif;
|
font-family: 'Cabin Condensed', sans-serif;
|
||||||
position: relative;
|
position: relative;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: 10vh;
|
font-size: 4.5vw;
|
||||||
max-width: 40vw;
|
max-width: 40vw;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -376,9 +379,9 @@ footer {
|
|||||||
animation: textreveal 4s infinite alternate;
|
animation: textreveal 4s infinite alternate;
|
||||||
}
|
}
|
||||||
.container-title #ball {
|
.container-title #ball {
|
||||||
top: 14vh;
|
top: 4vh;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 20vh;
|
height: 10vw;
|
||||||
width: 10vw;
|
width: 10vw;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.global_title {
|
.global_title {
|
||||||
|
position: absolute;
|
||||||
|
width: 99vw;
|
||||||
animation: glitch 3s steps(100) infinite;
|
animation: glitch 3s steps(100) infinite;
|
||||||
color: #151515;
|
color: #151515;
|
||||||
font-size: 10vh;
|
font-size: 10vh;
|
||||||
@@ -20,8 +22,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#carousel-dots {
|
#carousel-dots {
|
||||||
position: sticky;
|
width: 99vw;
|
||||||
bottom: 0;
|
position: absolute;
|
||||||
|
bottom: 12vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -30,7 +33,7 @@
|
|||||||
.dot {
|
.dot {
|
||||||
z-index: 30;
|
z-index: 30;
|
||||||
width: 0.8vw;
|
width: 0.8vw;
|
||||||
height: 1.8vh;
|
height: 0.8vw;
|
||||||
margin: 0 0.3vw;
|
margin: 0 0.3vw;
|
||||||
background-color: #bbb;
|
background-color: #bbb;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
@@ -47,7 +50,7 @@
|
|||||||
width: 25vw;
|
width: 25vw;
|
||||||
height: 47vh;
|
height: 47vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
perspective: 100vw;
|
perspective: 99vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel {
|
.carousel {
|
||||||
|
|||||||
@@ -126,10 +126,10 @@
|
|||||||
transform: rotate(70deg);
|
transform: rotate(70deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#name_project {
|
.name_project {
|
||||||
animation: glitch 3s steps(100) infinite;
|
animation: glitch 3s steps(100) infinite;
|
||||||
color: #151515;
|
color: #ffffff;
|
||||||
font-size: 6em;
|
font-size: 10vh;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
@@ -139,3 +139,16 @@
|
|||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container-title #xyzv {
|
||||||
|
left: 25vw;
|
||||||
|
font-family: 'Cabin Condensed', sans-serif;
|
||||||
|
position: relative;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 10vh;
|
||||||
|
max-width: 40vw;
|
||||||
|
font-weight: bold;
|
||||||
|
overflow: hidden;
|
||||||
|
color: #f6f6f6;
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|||||||
@@ -115,8 +115,9 @@
|
|||||||
<div id="delete-placeholder"></div>
|
<div id="delete-placeholder"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div id="title-global">
|
||||||
<h3 id="name_project"></h3>
|
<h3 id="h3-title" class="name_project"></h3>
|
||||||
|
<p class="name_project" id="xyzv" style="display: none;"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="nexter">
|
<div class="nexter">
|
||||||
<div id="metric_viewer_placeholder" >
|
<div id="metric_viewer_placeholder" >
|
||||||
@@ -145,7 +146,7 @@
|
|||||||
<script src="../js/utilities/tools.js"></script>
|
<script src="../js/utilities/tools.js"></script>
|
||||||
<script src="../js/projet_detail.js"></script>
|
<script src="../js/projet_detail.js"></script>
|
||||||
</body>
|
</body>
|
||||||
<footer>
|
<footer onclick="change_title_style()">
|
||||||
<p>© 2025 Timelapse. All rights reserved.</p>
|
<p>© 2025 Timelapse. All rights reserved.</p>
|
||||||
</footer>
|
</footer>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||||||
|
|
||||||
const project = data.find(project => project.id == projectId);
|
const project = data.find(project => project.id == projectId);
|
||||||
if (project) {
|
if (project) {
|
||||||
document.getElementById("name_project").innerHTML = project.name;
|
for(obj of document.getElementsByClassName("name_project"))
|
||||||
|
obj.innerHTML = project.name;
|
||||||
} else {
|
} else {
|
||||||
console.error("Project not found");
|
console.error("Project not found");
|
||||||
}
|
}
|
||||||
@@ -452,3 +453,25 @@ function updateFrequencyText() {
|
|||||||
$( ".arrow-icon" ).click(function() {
|
$( ".arrow-icon" ).click(function() {
|
||||||
$(this).toggleClass("open");
|
$(this).toggleClass("open");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let titleIsReadable = true;
|
||||||
|
|
||||||
|
function change_title_style(){
|
||||||
|
const titlePlaceHolder = document.getElementById('title-global');
|
||||||
|
const xyz = document.getElementById('xyzv');
|
||||||
|
const h3_title = document.getElementById('h3-title');
|
||||||
|
if(titleIsReadable){
|
||||||
|
titleIsReadable = false;
|
||||||
|
titlePlaceHolder.classList.add('container-title');
|
||||||
|
xyz.style.display = 'block';
|
||||||
|
h3_title.style.display = 'none';
|
||||||
|
} else {
|
||||||
|
titleIsReadable = true;
|
||||||
|
titlePlaceHolder.classList.remove('container-title');
|
||||||
|
xyz.style.display = 'none';
|
||||||
|
h3_title.style.display = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
change_title_style();
|
||||||
Reference in New Issue
Block a user