Init
This commit is contained in:
108
resources/blueprints/collections/tournaments/tournament.yaml
Normal file
108
resources/blueprints/collections/tournaments/tournament.yaml
Normal file
@ -0,0 +1,108 @@
|
||||
title: Tournament
|
||||
tabs:
|
||||
main:
|
||||
display: Main
|
||||
sections:
|
||||
-
|
||||
display: 'Infos de base'
|
||||
fields:
|
||||
-
|
||||
handle: title
|
||||
field:
|
||||
type: text
|
||||
required: true
|
||||
validate:
|
||||
- required
|
||||
-
|
||||
handle: type
|
||||
field:
|
||||
options:
|
||||
-
|
||||
key: stier
|
||||
value: Tier-S
|
||||
-
|
||||
key: atier
|
||||
value: Tier-A
|
||||
-
|
||||
key: rythm
|
||||
value: 'Rythm Tier'
|
||||
-
|
||||
key: family
|
||||
value: 'Family Tier'
|
||||
max_items: 1
|
||||
type: select
|
||||
display: type
|
||||
instructions: 'Type de tournoi'
|
||||
-
|
||||
handle: content
|
||||
field:
|
||||
type: markdown
|
||||
display: Description
|
||||
localizable: true
|
||||
sortable: false
|
||||
-
|
||||
handle: logo
|
||||
field:
|
||||
max_files: 1
|
||||
container: assets
|
||||
type: assets
|
||||
display: Logo
|
||||
instructions: 'Transparent tournament logo'
|
||||
mode: grid
|
||||
-
|
||||
handle: backdrop
|
||||
field:
|
||||
max_files: 1
|
||||
container: assets
|
||||
type: assets
|
||||
display: Backdrop
|
||||
instructions: 'Image du jeu'
|
||||
sortable: false
|
||||
-
|
||||
handle: template
|
||||
field:
|
||||
type: template
|
||||
display: Template
|
||||
localizable: true
|
||||
-
|
||||
handle: video
|
||||
field:
|
||||
type: video
|
||||
display: video
|
||||
instructions: 'Video du tournoi'
|
||||
sortable: false
|
||||
-
|
||||
display: 'Dates and place'
|
||||
fields:
|
||||
-
|
||||
handle: qualif_start
|
||||
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'
|
||||
sidebar:
|
||||
display: Sidebar
|
||||
sections:
|
||||
-
|
||||
fields:
|
||||
-
|
||||
handle: slug
|
||||
field:
|
||||
type: slug
|
||||
localizable: true
|
||||
validate: 'max:200'
|
||||
13
resources/blueprints/globals/hfs.yaml
Normal file
13
resources/blueprints/globals/hfs.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
tabs:
|
||||
main:
|
||||
display: Main
|
||||
sections:
|
||||
-
|
||||
fields:
|
||||
-
|
||||
handle: logo
|
||||
field:
|
||||
max_files: 1
|
||||
container: assets
|
||||
type: assets
|
||||
display: Logo
|
||||
File diff suppressed because one or more lines are too long
@ -5,9 +5,15 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ title ?? site:name }}</title>
|
||||
{{ vite src="resources/js/site.js|resources/css/site.css" }}
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
<body class="bg-slate-100 dark:bg-gray-800 font-sans leading-normal text-slate-800 dark:text-gray-400">
|
||||
<nav class="bg-black text-xs uppercase text-green-500 text-center flex items-center justify-center space-x-4">
|
||||
{{ nav:collection:pages include_home="true" }}
|
||||
<a href="{{ url }}" class="p-2 block hover:text-yellow-200">{{ title }}</a>
|
||||
{{ /nav:collection:pages }}
|
||||
</nav>
|
||||
|
||||
<div class="mx-auto px-2 lg:min-h-screen flex flex-col items-center justify-center">
|
||||
{{ template_content }}
|
||||
</div>
|
||||
|
||||
0
resources/views/tournaments/index.antlers.html
Normal file
0
resources/views/tournaments/index.antlers.html
Normal file
33
resources/views/tournaments/show.antlers.html
Normal file
33
resources/views/tournaments/show.antlers.html
Normal file
@ -0,0 +1,33 @@
|
||||
<section style="background-image: url('{{ backdrop }}');" class="bg-cover bg-center">
|
||||
|
||||
<h1 class="text-3xl bg-yellow-400 text-center text-yellow-900 font-bold mt-6 p-6">{{ title }}</h1>
|
||||
|
||||
|
||||
|
||||
<div class="border text-center text-yellow-600 border-yellow-400 mt-8 p-3 text-xs uppercase">
|
||||
{{ type:label }} Tournament • {{ start }}
|
||||
</div>
|
||||
<img src="{{ logo }}" class="border-2 border-yellow-400 p-1" alt="{{ logo:alt }}" />
|
||||
</section>
|
||||
<section class="infos">
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-8 text-sm text-yellow-400">
|
||||
<div class="border border-yellow-400 p-4">
|
||||
<h2 class="font-bold mb-2">Debut des qualifications</h2>
|
||||
<p>{{ qualifs }}</p>
|
||||
</div>
|
||||
<div class="border border-yellow-400 p-4">
|
||||
<h2 class="font-bold mb-2">Debut</h2>
|
||||
<p>{{ start }}</p>
|
||||
</div>
|
||||
<div class="border border-yellow-400 p-4">
|
||||
<h2 class="font-bold mb-2">Fin</h2>
|
||||
<p>{{ end }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<article class="space-y-4 mt-8 text-sm text-yellow-400 leading-loose">
|
||||
{{ content }}
|
||||
</article>
|
||||
Reference in New Issue
Block a user