|
1 | | -<div class="mt-8 flex flex-row justify-center"> |
2 | | - <div |
3 | | - class="flex flex-row items-center rounded-lg bg-primary p-4" |
4 | | - *ngIf="loading == true" |
5 | | - > |
6 | | - <app-loading-spinner></app-loading-spinner> |
7 | | - <span class="text-white">Chargement...</span> |
8 | | - </div> |
| 1 | +<div class="animate-fade flex space-x-2 px-4"> |
| 2 | + <span class="text-primary dark:text-primaryDark text-lg font-semibold" |
| 3 | + >Création tournoi |
| 4 | + </span> |
| 5 | +</div> |
9 | 6 |
|
10 | | - <div |
11 | | - class="align-center flex w-2/3 flex-row items-center justify-center space-x-2 rounded-lg bg-primary p-4" |
12 | | - *ngIf="loading == false" |
13 | | - > |
14 | | - <div |
15 | | - class="align-center flex flex-col items-center justify-center rounded-full bg-customGreen p-4" |
| 7 | +<section class="bg-bgDarker mt-4 space-x-4 px-4"> |
| 8 | + <div class="animate-fade flex flex-col items-center"> |
| 9 | + <form |
| 10 | + [formGroup]="createTournamentForm" |
| 11 | + class="flex w-full flex-col space-y-4" |
16 | 12 | > |
17 | | - <img src="assets/img/svg/trophee.svg" class="w-8" /> |
18 | | - </div> |
19 | | - <span class="text-white">Créer un tournoi</span> |
20 | | - </div> |
21 | | -</div> |
| 13 | + <div class="bg-bgLight dark:bg-bgDark rounded-lg p-8"> |
| 14 | + <div class="group relative z-0 mb-6 w-full"> |
| 15 | + <input |
| 16 | + type="text" |
| 17 | + id="name" |
| 18 | + class="peer text-primary focus:border-secondary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none" |
| 19 | + formControlName="name" |
| 20 | + /> |
| 21 | + <label |
| 22 | + for="name" |
| 23 | + class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-400 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium" |
| 24 | + > |
| 25 | + Nom |
| 26 | + <span class="text-customRed">*</span> |
| 27 | + </label> |
| 28 | + </div> |
22 | 29 |
|
23 | | -<div class="mt-4 flex flex-col items-center"> |
24 | | - <form |
25 | | - [formGroup]="createTournamentForm" |
26 | | - class="mt-6 w-2/3 rounded-lg bg-primary p-8" |
27 | | - > |
28 | | - <div class="group relative z-0 mb-6 w-full"> |
29 | | - <input |
30 | | - type="text" |
31 | | - id="name" |
32 | | - class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0" |
33 | | - formControlName="name" |
34 | | - maxlength="100" |
35 | | - /> |
36 | | - <label |
37 | | - for="name" |
38 | | - class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary" |
39 | | - > |
40 | | - Nom |
41 | | - <span class="text-customRed">*</span> |
42 | | - </label> |
43 | | - </div> |
| 30 | + <div class="group relative z-0 mb-6 w-full"> |
| 31 | + <textarea |
| 32 | + type="text" |
| 33 | + id="description" |
| 34 | + class="peer focus:border-secondary text-primary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none" |
| 35 | + formControlName="description" |
| 36 | + maxlength="5000" |
| 37 | + required |
| 38 | + ></textarea> |
| 39 | + <label |
| 40 | + for="description" |
| 41 | + class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-400 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium" |
| 42 | + > |
| 43 | + Description |
| 44 | + <span class="text-customRed">*</span> |
| 45 | + </label> |
| 46 | + </div> |
44 | 47 |
|
45 | | - <div class="group relative z-0 mb-6 w-full"> |
46 | | - <textarea |
47 | | - type="text" |
48 | | - id="description" |
49 | | - class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0" |
50 | | - formControlName="description" |
51 | | - maxlength="5000" |
52 | | - required |
53 | | - ></textarea> |
54 | | - <label |
55 | | - for="description" |
56 | | - class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary" |
57 | | - > |
58 | | - Description |
59 | | - </label> |
60 | | - </div> |
| 48 | + <div class="group relative z-0 mb-6 w-full"> |
| 49 | + <label |
| 50 | + for="state" |
| 51 | + class="mb-2 block text-sm font-medium text-gray-400" |
| 52 | + > |
| 53 | + État |
| 54 | + </label> |
61 | 55 |
|
62 | | - <div class="group relative z-0 mb-6 w-full"> |
63 | | - <label for="team1" class="mb-2 block text-sm font-medium text-white"> |
64 | | - État |
65 | | - </label> |
66 | | - <select |
67 | | - id="state" |
68 | | - formControlName="state" |
69 | | - class="block w-full rounded-lg border border-secondary bg-gray-800/40 p-2.5 text-sm text-white focus:border-blue-500 focus:ring-blue-500" |
70 | | - > |
71 | | - <option *ngFor="let state of states" value="{{ state.value }}" selected> |
72 | | - {{ state.label }} |
73 | | - </option> |
74 | | - </select> |
75 | | - </div> |
| 56 | + <select |
| 57 | + id="state" |
| 58 | + formControlName="state" |
| 59 | + class="border-secondary block w-full rounded-lg border bg-gray-800/40 p-2.5 text-sm text-white focus:border-blue-500 focus:ring-blue-500" |
| 60 | + > |
| 61 | + <option |
| 62 | + *ngFor="let state of states" |
| 63 | + value="{{ state.value }}" |
| 64 | + selected |
| 65 | + > |
| 66 | + {{ state.label }} |
| 67 | + </option> |
| 68 | + </select> |
| 69 | + </div> |
76 | 70 |
|
77 | | - <div class="group relative z-0 mb-6 w-full"> |
78 | | - <input |
79 | | - type="text" |
80 | | - id="logoUrl" |
81 | | - class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0" |
82 | | - formControlName="logoUrl" |
83 | | - maxlength="3000" |
84 | | - required |
85 | | - /> |
86 | | - <label |
87 | | - for="logoUrl" |
88 | | - class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary" |
89 | | - > |
90 | | - URL du logo |
91 | | - </label> |
92 | | - </div> |
| 71 | + <div class="group relative z-0 mb-6 w-full"> |
| 72 | + <input |
| 73 | + type="text" |
| 74 | + id="logoUrl" |
| 75 | + class="peer text-primary focus:border-secondary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none" |
| 76 | + formControlName="logoUrl" |
| 77 | + /> |
| 78 | + <label |
| 79 | + for="logoUrl" |
| 80 | + class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-400 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium" |
| 81 | + > |
| 82 | + URL du logo |
| 83 | + </label> |
| 84 | + </div> |
93 | 85 |
|
94 | | - <div class="group relative z-0 mb-6 w-full"> |
95 | | - <input |
96 | | - type="date" |
97 | | - id="plannedFrom" |
98 | | - class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0" |
99 | | - formControlName="plannedFrom" |
100 | | - /> |
101 | | - <label |
102 | | - for="plannedFrom" |
103 | | - class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary" |
104 | | - > |
105 | | - Planifié du |
106 | | - <span class="text-customRed">*</span> |
107 | | - </label> |
108 | | - </div> |
| 86 | + <div class="group relative z-0 mb-6 w-full"> |
| 87 | + <input |
| 88 | + type="date" |
| 89 | + id="plannedFrom" |
| 90 | + class="peer focus:border-secondary text-primary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none" |
| 91 | + formControlName="plannedFrom" |
| 92 | + /> |
| 93 | + <label |
| 94 | + for="plannedFrom" |
| 95 | + class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium" |
| 96 | + > |
| 97 | + Planifié du |
| 98 | + <span class="text-customRed">*</span> |
| 99 | + </label> |
| 100 | + </div> |
109 | 101 |
|
110 | | - <div class="group relative z-0 mb-6 w-full"> |
111 | | - <input |
112 | | - type="date" |
113 | | - id="plannedTo" |
114 | | - class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0" |
115 | | - formControlName="plannedTo" |
116 | | - /> |
117 | | - <label |
118 | | - for="plannedTo" |
119 | | - class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary" |
120 | | - > |
121 | | - Au |
122 | | - <span class="text-customRed">*</span> |
123 | | - </label> |
124 | | - </div> |
| 102 | + <div class="group relative z-0 mb-6 w-full"> |
| 103 | + <input |
| 104 | + type="date" |
| 105 | + id="plannedTo" |
| 106 | + class="peer focus:border-secondary text-primary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none" |
| 107 | + formControlName="plannedTo" |
| 108 | + /> |
| 109 | + <label |
| 110 | + for="plannedTo" |
| 111 | + class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium" |
| 112 | + > |
| 113 | + Au |
| 114 | + <span class="text-customRed">*</span> |
| 115 | + </label> |
| 116 | + </div> |
125 | 117 |
|
126 | | - <button |
127 | | - (click)="createTournament()" |
128 | | - class="w-full rounded-lg bg-customGreen px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-green-800 focus:outline-none focus:ring-4 focus:ring-customGreen" |
129 | | - > |
130 | | - Créer |
131 | | - </button> |
132 | | - </form> |
133 | | -</div> |
| 118 | + <button |
| 119 | + (click)="createTournament()" |
| 120 | + class="bg-customGreen focus:ring-customGreen w-full rounded-lg px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-green-800 focus:ring-4 focus:outline-none" |
| 121 | + > |
| 122 | + Créer le tournoi |
| 123 | + </button> |
| 124 | + </div> |
| 125 | + </form> |
| 126 | + </div> |
| 127 | +</section> |
0 commit comments