From 8d0586cfb4e70103163ddda7c1dd59f398fc758e Mon Sep 17 00:00:00 2001 From: karkinge Date: Thu, 29 Jan 2026 17:35:49 +0100 Subject: [PATCH] Adpatation mobiles --- content/collections/tournaments/hado-1.md | 24 +++++-- public/assets/js/main.js | 21 +++++- public/css/site.css | 4 ++ .../collections/tournaments/tournament.yaml | 34 ++++----- resources/views/_guest.antlers.html | 2 +- resources/views/_incentiveblock.antlers.html | 4 +- resources/views/_photoblock.antlers.html | 2 +- resources/views/home.antlers.html | 10 +-- resources/views/layout.antlers.html | 23 +++++- resources/views/reglement.antlers.html | 6 +- resources/views/tournaments/show.antlers.html | 70 +++++++++++++------ 11 files changed, 140 insertions(+), 60 deletions(-) diff --git a/content/collections/tournaments/hado-1.md b/content/collections/tournaments/hado-1.md index d2e76e9..4f9b97f 100644 --- a/content/collections/tournaments/hado-1.md +++ b/content/collections/tournaments/hado-1.md @@ -4,16 +4,13 @@ blueprint: tournament title: 'Facteur X' author: 5a7338bf-56d2-42b5-8ad0-7459a1fd8152 updated_by: cf207a21-df92-4f9c-b7c7-897476d8f464 -updated_at: 1769422061 +updated_at: 1769700323 logo: image_2026-01-06_210603982.png type: stier backdrop: image_2026-01-06_210653383.png -start: '2026-01-07 14:00' -end: '2026-01-07 17:00' duplicated_from: 8bd8dafe-19f4-4a20-a72f-46cb0b6ac245 game: 'Street Fighter 2X' video: 'https://www.youtube.com/watch?v=U7Zb7LNR_pE' -qualif_start: '2026-01-22 00:00' guests: - id: mkpj5kld @@ -51,6 +48,23 @@ description: - type: text text: 'oeishfosiujfbqgovbvouiqberghyvbouybgoqg !' +phases: + - + id: mkzlrzjx + phase_name: 'Facteur X - Solo' + qualif_start: '2026-01-29 16:22' + start: '2026-01-29 16:22' + end: '2026-01-29 16:22' + type: phase + enabled: true + - + id: mkzlvifv + phase_name: 'Facteur X - Team' + qualif_start: '2026-01-29 16:22' + start: '2026-01-29 16:22' + end: '2026-01-29 16:22' + type: phase + enabled: true --- That's the FX yup. Et ca déchire. -Ca va etre chanmé. \ No newline at end of file +Ca va etre chanmé. diff --git a/public/assets/js/main.js b/public/assets/js/main.js index 2a4ade0..9db4c36 100644 --- a/public/assets/js/main.js +++ b/public/assets/js/main.js @@ -1,4 +1,5 @@ document.addEventListener('DOMContentLoaded', () => { + console.log('DOM fully loaded and parsed'); const FPS = 60; // Target frames per second for cursor tracking @@ -152,4 +153,22 @@ document.addEventListener('DOMContentLoaded', () => { }); }); })(); -}); + + // Navbar mobile + // Get all "navbar-burger" elements + const $navbarBurgers = document.querySelector('.navbar-burger'); + console.log('$navbarBurgers:', $navbarBurgers); + // Add a click event on each of them + let el = $navbarBurgers; + el.addEventListener('click', () => { + console.log('Navbar burger clicked'); + // Get the target from the "data-target" attribute + const target = el.dataset.target; + const $target = document.getElementById(target); + + // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" + el.classList.toggle('is-active'); + $target.classList.toggle('is-active'); + + }); +}, { once: true }); diff --git a/public/css/site.css b/public/css/site.css index c60b3d4..9cd7a6c 100644 --- a/public/css/site.css +++ b/public/css/site.css @@ -35,7 +35,11 @@ body{ } #nav{ --bulma-navbar-item-img-max-height: 2.5rem; + display:flex; + justify-content: space-between; + align-items: center; } + #hero{ justify-content:center; } diff --git a/resources/blueprints/collections/tournaments/tournament.yaml b/resources/blueprints/collections/tournaments/tournament.yaml index 9104676..5850ed8 100644 --- a/resources/blueprints/collections/tournaments/tournament.yaml +++ b/resources/blueprints/collections/tournaments/tournament.yaml @@ -76,29 +76,23 @@ tabs: instructions: 'Video du tournoi' sortable: false - - display: 'Dates and place' + display: Phases + instructions: 'Différentes phases type solo / team / etc' fields: - - handle: qualif_start + handle: phases field: - time_enabled: true - type: date - display: qualif_start - instructions: 'Debut des qualifs' - - - handle: start - field: - time_enabled: true - type: date - display: start - instructions: 'Debut du tournoi' - - - handle: end - field: - time_enabled: true - type: date - display: End - instructions: 'Fin du tournoi' + type: replicator + display: Phases + sets: + new_set_group: + display: 'New Set Group' + sets: + phase: + display: Phase + fields: + - + import: tournament_phases - display: Guests instructions: 'Infos des invités' diff --git a/resources/views/_guest.antlers.html b/resources/views/_guest.antlers.html index 6e9fd11..dcf4f54 100644 --- a/resources/views/_guest.antlers.html +++ b/resources/views/_guest.antlers.html @@ -21,7 +21,7 @@ {{ /if }}
-

{{ name }}

+

{{ name }}

{{#

@johnsmith

#}}
diff --git a/resources/views/_incentiveblock.antlers.html b/resources/views/_incentiveblock.antlers.html index 1f80376..51e5223 100644 --- a/resources/views/_incentiveblock.antlers.html +++ b/resources/views/_incentiveblock.antlers.html @@ -4,8 +4,8 @@
{{ if isOdd }}
{{ /if }}
-
{{ title }}
-

{{ description }}

+
{{ title }}
+

{{ description }}

{{ if !isOdd }}
{{ /if }}
diff --git a/resources/views/_photoblock.antlers.html b/resources/views/_photoblock.antlers.html index 374cbc8..be05031 100644 --- a/resources/views/_photoblock.antlers.html +++ b/resources/views/_photoblock.antlers.html @@ -1,4 +1,4 @@ -
+
{{? $angle = rand(-15,15); ?}}
- HFS SUMMER -

+ HFS SUMMER +

{{ hfs:date_start }} - {{ hfs:date_end }}

-

{{ hfs:place }}

+

{{ hfs:place }}

@@ -21,7 +21,7 @@
-
+
-
+
{{ title }} @@ -12,27 +12,57 @@
Tournoi {{ type:label }}
-
- - Début des qualifications - - {{ qualifs ?? 'TBA' }} -
-
- - Début du tournoi - - {{ start format="d/m/Y hh:mm" ?? 'TBA' }} -
-
- - Fin du tournoi - - {{ end ?? 'TBA' }} -
-
+
{{ description }}
+ + {{ phases }} + {{ if (phases | length) > 1 }} +

{{ phase_name }}

+ {{ /if }} +
+
+ + Début des qualifications + + {{ qualif_start format="d/m/Y H:i" ?? 'TBA' }} +
+
+ + Début du tournoi + + {{ start format="d/m/Y H:i" ?? 'TBA' }} +
+
+ + Fin du tournoi + + {{ end format="d/m/Y H:i"?? 'TBA' }} +
+
+
+
+ + Début des qualifications + + {{ qualif_start format="d/m/Y H:i" ?? 'TBA' }} +
+
+ + Début du tournoi + + {{ start format="d/m/Y H:i" ?? 'TBA' }} +
+
+ + Fin du tournoi + + {{ end format="d/m/Y H:i"?? 'TBA' }} +
+
+ + {{ /phases }} +