Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30f447d932
|
No files matched your search
+55
-35
@@ -10,7 +10,7 @@
|
|||||||
<link rel="icon" href="./public/images/Star_Citizen_logo.png">
|
<link rel="icon" href="./public/images/Star_Citizen_logo.png">
|
||||||
<title>Star Present ─ Home</title>
|
<title>Star Present ─ Home</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="scroll-slider">
|
||||||
<nav>
|
<nav>
|
||||||
|
|
||||||
<fieldset id="field-ing">
|
<fieldset id="field-ing">
|
||||||
@@ -48,42 +48,62 @@
|
|||||||
<header>
|
<header>
|
||||||
<a id="logo" href="#"> <img src="./public/images/Star_Citizen_logo.png" alt="LOGO" width="50"> </a>
|
<a id="logo" href="#"> <img src="./public/images/Star_Citizen_logo.png" alt="LOGO" width="50"> </a>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main class="page-split">
|
||||||
<div id="arrow-down">
|
<div class="content-side">
|
||||||
<a href="#start"> <img src="./public/images/arrow-down-icon.png" width="60"> </a>
|
<section class="stack-section" id="hero-section">
|
||||||
</div>
|
<div id="arrow-down">
|
||||||
<div class="wallpaper">
|
<a href="#start"> <img src="./public/images/arrow-down-icon.png" width="60"> </a>
|
||||||
<div id="title">
|
</div>
|
||||||
<h1>Star Present</h1>
|
<div class="wallpaper">
|
||||||
<h2>Accueil</h2>
|
<div id="title">
|
||||||
|
<h1>Star Present</h1>
|
||||||
|
<h2>Accueil</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="stack-section" id="pricing">
|
||||||
|
<div id="div-content">
|
||||||
|
<div id="start"> </div>
|
||||||
|
<canvas id="game" width="480" height="648"> </canvas>
|
||||||
|
<script src="./public/scripts/hell-bullet.js"> </script>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="stack-section" id="footer-section">
|
||||||
|
<footer id="footer-box">
|
||||||
|
<div class="level-one">
|
||||||
|
<a href="https://robertsspaceindustries.com" target="_blank"> <img src="../public/images/footer/RSI.png" alt="" width="35"> </a>
|
||||||
|
<a href="https://starcitizen.tools/Star_Engine" target="_blank"> <img src="../public/images/footer/s-engine.png" alt="" width="100"> </a>
|
||||||
|
<a href="https://cloudimperiumgames.com/" target="_blank"> <img src="../public/images/footer/cig.png" alt="" width="35"></a>
|
||||||
|
</div>
|
||||||
|
<div id="bar"></div>
|
||||||
|
<div class="level-two">
|
||||||
|
<p>© Tout droit réservé à nocode.var 2026 ‐ 2027</p>
|
||||||
|
</div>
|
||||||
|
<div class="level-three">
|
||||||
|
<a href="./v-one.html"> V1 </a>
|
||||||
|
<t> ❘ </t>
|
||||||
|
<a href="./websites.html"> Sites Utiles </a>
|
||||||
|
<t> ❘ </t>
|
||||||
|
<a href="./routes/author.html"> Auteur </a>
|
||||||
|
<t> ❘ </t>
|
||||||
|
<a href="./routes/legal-right.html"> Droits Légaux </a>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="indicator-side">
|
||||||
|
<div class="sticky-track">
|
||||||
|
<div class="dot is-filled" id="dot-top" title="Accueil"></div>
|
||||||
|
<div class="track-line"></div>
|
||||||
|
<div class="dot is-hollow" id="dot-mid" title="Contenu"></div>
|
||||||
|
<div class="track-line"></div>
|
||||||
|
<div class="dot is-hollow" id="dot-bottom" title="Footer"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div id="div-content" >
|
|
||||||
<div id="start"> </div>
|
|
||||||
<canvas id="game" width="480" height="648"> </canvas>
|
|
||||||
<script src="./public/scripts/hell-bullet.js"> </script>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
<footer id="footer-box">
|
|
||||||
<div class="level-one">
|
|
||||||
<a href="https://robertsspaceindustries.com" target="_blank"> <img src="../public/images/footer/RSI.png" alt="" width="35"> </a>
|
|
||||||
<a href="https://starcitizen.tools/Star_Engine" target="_blank"> <img src="../public/images/footer/s-engine.png" alt="" width="100"> </a>
|
|
||||||
<a href="https://cloudimperiumgames.com/" target="_blank"> <img src="../public/images/footer/cig.png" alt="" width="35"></a>
|
|
||||||
</div>
|
|
||||||
<div id="bar"></div>
|
|
||||||
<div class="level-two">
|
|
||||||
<p>© Tout droit réservé à nocode.var 2026 ‐ 2027</p>
|
|
||||||
</div>
|
|
||||||
<div class="level-three">
|
|
||||||
<a href="./v-one.html"> V1 </a>
|
|
||||||
<t> ❘ </t>
|
|
||||||
<a href="./websites.html"> Sites Utiles </a>
|
|
||||||
<t> ❘ </t>
|
|
||||||
<a href="./routes/author.html"> Auteur </a>
|
|
||||||
<t> ❘ </t>
|
|
||||||
<a href="./routes/legal-right.html"> Droits Légaux </a>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
<script src="./public/scripts/navbar.js"> </script>
|
<script src="./public/scripts/navbar.js"> </script>
|
||||||
<div id="bottom"> </div>
|
<div id="bottom"> </div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -364,3 +364,178 @@ nav legend {
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
SCROLL SLIDER — HOME
|
||||||
|
============================================ */
|
||||||
|
|
||||||
|
body.scroll-slider {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.scroll-slider main {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-split {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 60px;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-side {
|
||||||
|
position: relative;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stack-section {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 60px 60px 40px 60px;
|
||||||
|
transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
|
||||||
|
opacity 0.7s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.scroll-slider .wallpaper {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.scroll-slider .wallpaper::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
|
background: rgba(7, 58, 89, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.scroll-slider #title {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hero-section {
|
||||||
|
z-index: 2;
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hero-section.slide-out-up {
|
||||||
|
transform: translateY(-100%);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pricing {
|
||||||
|
z-index: 1;
|
||||||
|
transform: translateY(100%);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pricing.slide-in-up {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pricing.slide-out-down {
|
||||||
|
transform: translateY(100%);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pricing.slide-out-up {
|
||||||
|
transform: translateY(-100%);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer-section {
|
||||||
|
z-index: 1;
|
||||||
|
transform: translateY(100%);
|
||||||
|
opacity: 0;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer-section.slide-in-up {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer-section.slide-out-down {
|
||||||
|
transform: translateY(100%);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indicator-side {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100vh;
|
||||||
|
position: relative;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sticky-track {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 55vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.track-line {
|
||||||
|
width: 2px;
|
||||||
|
flex-grow: 1;
|
||||||
|
background: repeating-linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
#a2cceb 0,
|
||||||
|
#a2cceb 5px,
|
||||||
|
transparent 5px,
|
||||||
|
transparent 10px
|
||||||
|
);
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 2px solid #a2cceb;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
flex-shrink: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot.is-filled {
|
||||||
|
background: #a2cceb;
|
||||||
|
box-shadow: 0 0 12px rgba(162, 204, 235, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot.is-hollow {
|
||||||
|
background: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
.stack-section { padding: 40px 20px; }
|
||||||
|
.page-split { grid-template-columns: 1fr 40px; }
|
||||||
|
}
|
||||||
|
|
||||||
+180
-1
@@ -6,4 +6,183 @@ MENUBUTTON.addEventListener("click", toggleNav)
|
|||||||
function toggleNav(){
|
function toggleNav(){
|
||||||
MENUBUTTON.classList.toggle("active")
|
MENUBUTTON.classList.toggle("active")
|
||||||
NAVIGATION.classList.toggle("active")
|
NAVIGATION.classList.toggle("active")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Scroll Slider (3 sections)
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const sections = [
|
||||||
|
document.getElementById('hero-section'),
|
||||||
|
document.getElementById('pricing'),
|
||||||
|
document.getElementById('footer-section')
|
||||||
|
];
|
||||||
|
|
||||||
|
const dots = [
|
||||||
|
document.getElementById('dot-top'),
|
||||||
|
document.getElementById('dot-mid'),
|
||||||
|
document.getElementById('dot-bottom')
|
||||||
|
];
|
||||||
|
|
||||||
|
if (!sections[0] || !sections[1] || !sections[2]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hashMap = ['', '#pricing', '#footer'];
|
||||||
|
let current = 0;
|
||||||
|
let isAnimating = false;
|
||||||
|
|
||||||
|
function clean(section) {
|
||||||
|
section.classList.remove('slide-in-up', 'slide-out-up', 'slide-out-down');
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyStateInstant(index) {
|
||||||
|
sections.forEach((section, i) => {
|
||||||
|
section.style.transition = 'none';
|
||||||
|
clean(section);
|
||||||
|
|
||||||
|
if (i < index) {
|
||||||
|
section.classList.add('slide-out-up');
|
||||||
|
} else if (i === index) {
|
||||||
|
section.classList.add('slide-in-up');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
requestAnimationFrame(() => requestAnimationFrame(() => {
|
||||||
|
sections.forEach(section => { section.style.transition = ''; });
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateDots() {
|
||||||
|
dots.forEach((dot, i) => {
|
||||||
|
if (!dot) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
dot.classList.toggle('is-filled', i === current);
|
||||||
|
dot.classList.toggle('is-hollow', i !== current);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateHash() {
|
||||||
|
const hash = hashMap[current];
|
||||||
|
history.replaceState(null, '', hash || window.location.pathname);
|
||||||
|
}
|
||||||
|
|
||||||
|
function goTo(target) {
|
||||||
|
if (isAnimating || target === current) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (target < 0 || target > sections.length - 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
isAnimating = true;
|
||||||
|
const prev = current;
|
||||||
|
current = target;
|
||||||
|
|
||||||
|
if (target > prev) {
|
||||||
|
clean(sections[prev]);
|
||||||
|
sections[prev].classList.add('slide-out-up');
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
clean(sections[target]);
|
||||||
|
sections[target].classList.add('slide-in-up');
|
||||||
|
}, 80);
|
||||||
|
} else {
|
||||||
|
clean(sections[prev]);
|
||||||
|
sections[prev].classList.add('slide-out-down');
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
clean(sections[target]);
|
||||||
|
sections[target].classList.add('slide-in-up');
|
||||||
|
}, 80);
|
||||||
|
}
|
||||||
|
|
||||||
|
updateDots();
|
||||||
|
updateHash();
|
||||||
|
setTimeout(() => { isAnimating = false; }, 750);
|
||||||
|
}
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
const hash = window.location.hash;
|
||||||
|
if (hash === '#pricing') {
|
||||||
|
current = 1;
|
||||||
|
} else if (hash === '#footer') {
|
||||||
|
current = 2;
|
||||||
|
} else {
|
||||||
|
current = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
applyStateInstant(current);
|
||||||
|
updateDots();
|
||||||
|
}
|
||||||
|
|
||||||
|
const btnToPricing = document.getElementById('btn-to-pricing');
|
||||||
|
const btnToHero = document.getElementById('btn-to-hero');
|
||||||
|
const btnToFooter = document.getElementById('btn-to-footer');
|
||||||
|
const btnFooterToPricing = document.getElementById('btn-footer-to-pricing');
|
||||||
|
|
||||||
|
if (btnToPricing) btnToPricing.addEventListener('click', () => goTo(1));
|
||||||
|
if (btnToHero) btnToHero.addEventListener('click', () => goTo(0));
|
||||||
|
if (btnToFooter) btnToFooter.addEventListener('click', () => goTo(2));
|
||||||
|
if (btnFooterToPricing) btnFooterToPricing.addEventListener('click', () => goTo(1));
|
||||||
|
|
||||||
|
dots.forEach((dot, i) => {
|
||||||
|
if (!dot) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
dot.addEventListener('click', () => goTo(i));
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('wheel', (event) => {
|
||||||
|
if (isAnimating) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.deltaY > 30) {
|
||||||
|
goTo(current + 1);
|
||||||
|
} else if (event.deltaY < -30) {
|
||||||
|
goTo(current - 1);
|
||||||
|
}
|
||||||
|
}, { passive: true });
|
||||||
|
|
||||||
|
let touchStartY = 0;
|
||||||
|
window.addEventListener('touchstart', (event) => {
|
||||||
|
touchStartY = event.touches[0].clientY;
|
||||||
|
}, { passive: true });
|
||||||
|
|
||||||
|
window.addEventListener('touchend', (event) => {
|
||||||
|
if (isAnimating) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const delta = touchStartY - event.changedTouches[0].clientY;
|
||||||
|
if (delta > 50) {
|
||||||
|
goTo(current + 1);
|
||||||
|
} else if (delta < -50) {
|
||||||
|
goTo(current - 1);
|
||||||
|
}
|
||||||
|
}, { passive: true });
|
||||||
|
|
||||||
|
window.addEventListener('keydown', (event) => {
|
||||||
|
if (isAnimating) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.key === 'ArrowDown' || event.key === 'PageDown') {
|
||||||
|
goTo(current + 1);
|
||||||
|
}
|
||||||
|
if (event.key === 'ArrowUp' || event.key === 'PageUp') {
|
||||||
|
goTo(current - 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('hashchange', () => {
|
||||||
|
const hash = window.location.hash;
|
||||||
|
const target = hash === '#pricing' ? 1 : hash === '#footer' ? 2 : 0;
|
||||||
|
goTo(target);
|
||||||
|
});
|
||||||
|
|
||||||
|
init();
|
||||||
|
});
|
||||||
Reference in new issue
Block a user