Do you want moooooooooore ?
I can't hear youuuuu ! Ok, more stuph.
This commit is contained in:
1586
content/collections/pages/reglement.md
Normal file
1586
content/collections/pages/reglement.md
Normal file
File diff suppressed because one or more lines are too long
@ -1,3 +1,5 @@
|
|||||||
tree:
|
tree:
|
||||||
-
|
-
|
||||||
entry: home
|
entry: home
|
||||||
|
-
|
||||||
|
entry: f7371605-56d8-4396-b118-879cab386516
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
// Video fixed BG
|
|
||||||
|
const FPS = 60; // Target frames per second for cursor tracking
|
||||||
|
|
||||||
|
// -------- Video fixed BG ------------------------------
|
||||||
const reelEl = document.getElementById('reel');
|
const reelEl = document.getElementById('reel');
|
||||||
if (!reelEl) return;
|
if (!reelEl) return;
|
||||||
|
|
||||||
@ -12,7 +15,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
playPromise.catch(() => {
|
playPromise.catch(() => {
|
||||||
// Autoplay bloqué : passer en muet et retenter
|
// Autoplay bloqué : passer en muet et retenter
|
||||||
video.muted = true;
|
video.muted = true;
|
||||||
video.play().catch(() => {});
|
video.play().catch(() => {
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -23,8 +27,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
// make visible the video element
|
// make visible the video element
|
||||||
video.style.visibility = 'visible';
|
video.style.visibility = 'visible';
|
||||||
tryPlay();
|
tryPlay();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
video.style.visibility = 'hidden';
|
video.style.visibility = 'hidden';
|
||||||
video.pause();
|
video.pause();
|
||||||
}
|
}
|
||||||
@ -73,7 +76,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let lastUpdate = 0;
|
let lastUpdate = 0;
|
||||||
const FRAME_INTERVAL = 1000 / 60;
|
const FRAME_INTERVAL = 1000 / FPS;
|
||||||
const updateTwist = (timestamp) => {
|
const updateTwist = (timestamp) => {
|
||||||
if (!timestamp) timestamp = performance.now();
|
if (!timestamp) timestamp = performance.now();
|
||||||
if (timestamp - lastUpdate >= FRAME_INTERVAL) {
|
if (timestamp - lastUpdate >= FRAME_INTERVAL) {
|
||||||
@ -85,4 +88,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
}
|
}
|
||||||
updateTwist();
|
updateTwist();
|
||||||
|
|
||||||
|
// --------- Init Lenis smooth scroll ------------------------
|
||||||
|
// Initialize Lenis
|
||||||
|
const lenis = new Lenis({
|
||||||
|
autoRaf: true,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -107,6 +107,49 @@ video{
|
|||||||
.tournament-block:hover{
|
.tournament-block:hover{
|
||||||
transform: scale(0.9);
|
transform: scale(0.9);
|
||||||
}
|
}
|
||||||
|
.custom-grid{
|
||||||
|
display:grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
|
gap:0;
|
||||||
|
border:1px solid hsla(0,0%,6%,0.1);
|
||||||
|
}
|
||||||
|
.custom-grid .custom-cell{
|
||||||
|
position: relative;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
/*border:1px solid var(--bulma-black);*/
|
||||||
|
}
|
||||||
|
.custom-grid .custom-cell+.custom-cell{
|
||||||
|
border-left:1px solid hsla(0,0%,6%,0.1);
|
||||||
|
}
|
||||||
|
.custom-cell .bg{
|
||||||
|
position: absolute;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
width:100%;
|
||||||
|
height:100%;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
mix-blend-mode: soft-light; /* overlay? */
|
||||||
|
transition: opacity 0.5s ease-out;
|
||||||
|
}
|
||||||
|
.custom-cell .bg.active {
|
||||||
|
opacity: 0;
|
||||||
|
mix-blend-mode: normal;
|
||||||
|
}
|
||||||
|
.custom-cell:hover .bg.active {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
.custom-cell img{
|
||||||
|
position:relative;
|
||||||
|
transition: transform 0.5s ease-out;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
.custom-cell:hover img {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
/*------------------------------------------------------------------*/
|
||||||
|
|
||||||
/*Twist animation*/
|
/*Twist animation*/
|
||||||
.twist{
|
.twist{
|
||||||
|
|||||||
@ -13,6 +13,13 @@ tabs:
|
|||||||
required: true
|
required: true
|
||||||
validate:
|
validate:
|
||||||
- required
|
- required
|
||||||
|
-
|
||||||
|
handle: game
|
||||||
|
field:
|
||||||
|
type: text
|
||||||
|
display: Game
|
||||||
|
instructions: 'Nom du jeu'
|
||||||
|
width: 66
|
||||||
-
|
-
|
||||||
handle: type
|
handle: type
|
||||||
field:
|
field:
|
||||||
@ -33,6 +40,7 @@ tabs:
|
|||||||
type: select
|
type: select
|
||||||
display: type
|
display: type
|
||||||
instructions: 'Type de tournoi'
|
instructions: 'Type de tournoi'
|
||||||
|
width: 33
|
||||||
-
|
-
|
||||||
handle: content
|
handle: content
|
||||||
field:
|
field:
|
||||||
@ -49,6 +57,7 @@ tabs:
|
|||||||
display: Logo
|
display: Logo
|
||||||
instructions: 'Transparent tournament logo'
|
instructions: 'Transparent tournament logo'
|
||||||
mode: grid
|
mode: grid
|
||||||
|
width: 33
|
||||||
-
|
-
|
||||||
handle: backdrop
|
handle: backdrop
|
||||||
field:
|
field:
|
||||||
@ -58,12 +67,7 @@ tabs:
|
|||||||
display: Backdrop
|
display: Backdrop
|
||||||
instructions: 'Image du jeu'
|
instructions: 'Image du jeu'
|
||||||
sortable: false
|
sortable: false
|
||||||
-
|
width: 33
|
||||||
handle: template
|
|
||||||
field:
|
|
||||||
type: template
|
|
||||||
display: Template
|
|
||||||
localizable: true
|
|
||||||
-
|
-
|
||||||
handle: video
|
handle: video
|
||||||
field:
|
field:
|
||||||
@ -71,6 +75,7 @@ tabs:
|
|||||||
display: video
|
display: video
|
||||||
instructions: 'Video du tournoi'
|
instructions: 'Video du tournoi'
|
||||||
sortable: false
|
sortable: false
|
||||||
|
width: 33
|
||||||
-
|
-
|
||||||
display: 'Dates and place'
|
display: 'Dates and place'
|
||||||
fields:
|
fields:
|
||||||
@ -95,6 +100,55 @@ tabs:
|
|||||||
type: date
|
type: date
|
||||||
display: End
|
display: End
|
||||||
instructions: 'Fin du tournoi'
|
instructions: 'Fin du tournoi'
|
||||||
|
-
|
||||||
|
display: Guests
|
||||||
|
instructions: 'Infos des invités'
|
||||||
|
fields:
|
||||||
|
-
|
||||||
|
handle: guests
|
||||||
|
field:
|
||||||
|
type: replicator
|
||||||
|
display: Guests
|
||||||
|
sets:
|
||||||
|
new_set_group:
|
||||||
|
display: 'New Set Group'
|
||||||
|
sets:
|
||||||
|
guest:
|
||||||
|
display: Guest
|
||||||
|
icon: user-avatar
|
||||||
|
fields:
|
||||||
|
-
|
||||||
|
handle: name
|
||||||
|
field:
|
||||||
|
type: text
|
||||||
|
display: Name
|
||||||
|
-
|
||||||
|
handle: country
|
||||||
|
field:
|
||||||
|
type: text
|
||||||
|
display: Country
|
||||||
|
width: 50
|
||||||
|
-
|
||||||
|
handle: flag
|
||||||
|
field:
|
||||||
|
max_files: 1
|
||||||
|
container: assets
|
||||||
|
type: assets
|
||||||
|
display: Flag
|
||||||
|
width: 50
|
||||||
|
-
|
||||||
|
handle: picture
|
||||||
|
field:
|
||||||
|
container: assets
|
||||||
|
type: assets
|
||||||
|
display: Picture
|
||||||
|
instructions: 'Image détourée du guest'
|
||||||
|
-
|
||||||
|
handle: reveal
|
||||||
|
field:
|
||||||
|
type: toggle
|
||||||
|
display: Reveal
|
||||||
|
instructions: "Si pas reveal, l'image du joueur sera remplacée par une silhouette noire"
|
||||||
sidebar:
|
sidebar:
|
||||||
display: Sidebar
|
display: Sidebar
|
||||||
sections:
|
sections:
|
||||||
|
|||||||
@ -21,8 +21,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section" id="incentive">
|
<section class="section has-background-black" id="incentive">
|
||||||
<h2>Incentive</h2>
|
<h2 class="is-size-2 has-text-weight-bold is-uppercase has-text-primary block">L'évènement</h2>
|
||||||
<div class="fixed-grid has-3-cols">
|
<div class="fixed-grid has-3-cols">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{ incentives }}
|
{{ incentives }}
|
||||||
@ -33,17 +33,34 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section has-background-primary has-text-black" id="tournaments">
|
<section class="section has-background-primary has-text-black" id="tournaments">
|
||||||
<h2>Tournaments</h2>
|
<h2 class="is-size-2 has-text-weight-bold is-uppercase block">
|
||||||
<h3>Stier</h3>
|
Tournois
|
||||||
<div class="fixed-grid has-3-cols">
|
<a class="navbar-item button is-rounded is-float-right" href="/reglement">
|
||||||
<div class="grid">
|
Règlement
|
||||||
|
</a>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="custom-grid">
|
||||||
|
{{ collection:tournaments type:is="stier" }}
|
||||||
|
<a class="custom-cell"
|
||||||
|
href="{{ url }}"
|
||||||
|
>
|
||||||
|
<div class="bg" style="background-image:url('{{ glide:backdrop preset='thumbnail'}}');"></div>
|
||||||
|
<div class="bg active" style="background-image:url('{{ glide:backdrop preset='thumbnail'}}');"></div>
|
||||||
|
<img src="{{ glide:logo preset='logo' }}" alt="title">
|
||||||
|
</a>
|
||||||
|
{{ /collection:tournaments }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 class="is-size-3 has-text-weight-bold is-uppercase">Tournois S-Tier</h3>
|
||||||
|
<div class="grid is-col-min-9">
|
||||||
{{ collection:tournaments type:is="stier" }}
|
{{ collection:tournaments type:is="stier" }}
|
||||||
{{ partial:_tournamentblock }}
|
{{ partial:_tournamentblock }}
|
||||||
{{ /collection:tournaments }}
|
{{ /collection:tournaments }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Atier</h3>
|
|
||||||
|
<h3 class="is-size-3 has-text-weight-bold is-uppercase">Tournois A-Tier</h3>
|
||||||
<div class="fixed-grid has-3-cols">
|
<div class="fixed-grid has-3-cols">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{ collection:tournaments type:is="atier" }}
|
{{ collection:tournaments type:is="atier" }}
|
||||||
@ -52,7 +69,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>Rythm Tier</h3>
|
<h3 class="is-size-3 has-text-weight-bold is-uppercase">Tournois Rythm-Tier</h3>
|
||||||
<div class="fixed-grid has-3-cols">
|
<div class="fixed-grid has-3-cols">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{ collection:tournaments type:is="rythm" }}
|
{{ collection:tournaments type:is="rythm" }}
|
||||||
@ -61,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>Family Tier</h3>
|
<h3 class="is-size-3 has-text-weight-bold is-uppercase">Tournois Family-Tier</h3>
|
||||||
<div class="fixed-grid has-3-cols">
|
<div class="fixed-grid has-3-cols">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{ collection:tournaments type:is="family" }}
|
{{ collection:tournaments type:is="family" }}
|
||||||
@ -73,7 +90,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<section class="section" id="gallery">
|
<section class="section" id="gallery">
|
||||||
<h2>Gallery</h2>
|
<h2 class="is-size-2 has-text-weight-bold is-uppercase block has-text-primary">Gallerie</h2>
|
||||||
<div class="grid is-col-min-9">
|
<div class="grid is-col-min-9">
|
||||||
{{ photos }}
|
{{ photos }}
|
||||||
{{ partial:_photoblock }}
|
{{ partial:_photoblock }}
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
<title>{{ title ?? site:name }}</title>
|
<title>{{ title ?? site:name }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav id="nav" class="navbar is-primaryt is-fixed-top p-5" role="navigation" aria-label="main navigation">
|
<nav id="nav" class="navbar is-fixed-top p-5" role="navigation" aria-label="main navigation">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item squircle" href="/">
|
<a class="navbar-item squircle" href="/">
|
||||||
<img src="/assets/logo2.svg" style="height:5rem;"/>
|
<img src="/assets/logo2.svg" style="height:5rem;"/>
|
||||||
@ -27,7 +27,16 @@
|
|||||||
|
|
||||||
{{ template_content }}
|
{{ template_content }}
|
||||||
|
|
||||||
<footer>Footer</footer>
|
<footer class="footer">
|
||||||
|
<div class="grid is-col-min-9">
|
||||||
|
<div class="cell has-text-centered has-text-primary">
|
||||||
|
<img src="/assets/logo2.svg" alt="" style="width:3rem;">
|
||||||
|
</div>
|
||||||
|
<div class="cell"></div>
|
||||||
|
<div class="cell"></div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
<script src="https://unpkg.com/lenis@1.3.17/dist/lenis.min.js"></script>
|
||||||
<script src="/assets/js/main.js"></script>
|
<script src="/assets/js/main.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
6
resources/views/reglement.antlers.html
Normal file
6
resources/views/reglement.antlers.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<div class="container">
|
||||||
|
<h1 class="is-size-1 has-text-weight-bolder has-text-primary">Règlement</h1>
|
||||||
|
<div class="content">
|
||||||
|
{{ rules }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user