chartManD commited on
Commit
a1de763
·
1 Parent(s): befe7e3

Definicion de paleta de colores, uso de paleta

Browse files
tecnicas/templates/tecnicas/layouts/base.html CHANGED
@@ -16,7 +16,7 @@
16
  </head>
17
 
18
  <body>
19
- <main class="flex flex-col w-full h-screen bg-main-surface appearance-none">
20
  {% block content %}{% endblock %}
21
  </main>
22
 
 
16
  </head>
17
 
18
  <body>
19
+ <main class="flex flex-col w-full min-h-screen bg-surface-general appearance-none">
20
  {% block content %}{% endblock %}
21
  </main>
22
 
tecnicas/templates/tecnicas/main-panel.html CHANGED
@@ -4,48 +4,60 @@
4
 
5
  {% block content %}
6
  <article class="w-full flex flex-col justify-center items-center min-sm:mt-10">
7
- <article class="flex flex-col bg-gray-400 p-10 max-sm:py-10 max-sm:px-3 min-sm:rounded-3xl">
8
  <header class="flex flex-col flex-wrap justify-center items-center gap-8">
9
- <section class="bg-gray-600 p-8 rounded-md w-full shadow-lg">
10
- <h1 class="text-white text-4xl font-bold text-center max-sm:text-2xl">Panel Principal</h1>
11
  </section>
12
- <section class="flex flex-wrap justify-center max-sm:gap-4 items-center p-8 w-full bg-gray-600 rounded-md shadow-lg">
13
- <section class="flex flex-col text-white flex-1 flex-wrap gap-4">
 
14
  <fieldset class="fieldset rounded-box border px-3 pb-3 rounded-2xl">
15
- <legend class="fieldset-legend px-1.5">Nombre Presentador</legend>
16
  <p class="text-3xl max-sm:text-2xl font-medium">{{ presentador.nombre }}</p>
17
  </fieldset>
18
  <fieldset class="fieldset rounded-box border px-3 pb-3 rounded-2xl">
19
- <legend class="fieldset-legend px-1.5">Identificador</legend>
20
  <p class="text-3xl max-sm:text-2xl font-medium">{{ presentador.id }}</p>
21
  </fieldset>
22
  </section>
23
  <section class="flex-1 flex justify-center">
24
  <button type="button"
25
- class="text-white bg-red-600 hover:bg-red-700 active:outline-none active:ring-4 active:ring-red-300 font-medium rounded-2xl text-3xl max-sm:text-2xl px-5 py-4 text-center">Salir
26
- del sistema</button>
 
27
  </section>
28
  </section>
29
  </header>
30
 
31
- <article class="w-full flex flex-col gap-7 items-center min-sm:mt-7 mt-4 bg-gray-600 rounded-lg">
32
  <article
33
  class="w-5xl max-lg:w-3xl max-md:w-auto p-8 flex flex-col justify-around items-center gap-4 flex-wrap text-3xl max-sm:text-2xl">
34
  <section class="flex flex-row flex-wrap gap-4 w-full">
35
- <a href="{% url 'cata_system:seleccion_tecnica' %}"
36
- class="text-white bg-green-600 hover:bg-green-700 active:outline-none active:ring-4 active:ring-green-300 font-medium rounded-xl px-8 py-4 text-center flex-1">Iniciar
37
- Sesión <br> Sensorial</a>
38
- <a href="{% url 'cata_system:panel_catadores' %}"
39
- class="text-white bg-yellow-600 hover:bg-yellow-700 active:outline-none active:ring-4 active:ring-yellow-300 font-medium rounded-xl px-8 py-4 text-center flex-1">Gestión
40
- de <br>catadores</a>
 
 
 
 
 
 
41
  </section>
42
 
43
  <section class="flex flex-row flex-wrap gap-4 w-f ull justify-center">
44
- <a href="{% url 'cata_system:panel_sesiones' page=1 %}"
45
- class="text-white bg-blue-600 hover:bg-blue-700 active:outline-none active:ring-4 active:ring-blue-300 font-medium rounded-xl px-8 py-4 text-center">Gestión
46
- de sesiones <br> sensoriales</a>
 
 
 
47
  </section>
48
  </article>
49
  </article>
50
  </article>
51
- {% endblock %}
 
 
4
 
5
  {% block content %}
6
  <article class="w-full flex flex-col justify-center items-center min-sm:mt-10">
7
+ <article class="flex flex-col bg-surface-alter p-10 max-sm:py-10 max-sm:px-3 min-sm:rounded-2xl">
8
  <header class="flex flex-col flex-wrap justify-center items-center gap-8">
9
+ <section class="bg-surface-card p-8 rounded-md w-full shadow-lg">
10
+ <h1 class="text-black text-4xl font-bold text-center max-sm:text-2xl">Panel Principal</h1>
11
  </section>
12
+ <section
13
+ class="flex flex-wrap justify-center max-sm:gap-4 items-center p-8 w-full bg-surface-card rounded-md shadow-lg">
14
+ <section class="flex flex-col text-black flex-1 flex-wrap gap-4">
15
  <fieldset class="fieldset rounded-box border px-3 pb-3 rounded-2xl">
16
+ <legend class="text-black fieldset-legend px-1.5">Nombre Presentador</legend>
17
  <p class="text-3xl max-sm:text-2xl font-medium">{{ presentador.nombre }}</p>
18
  </fieldset>
19
  <fieldset class="fieldset rounded-box border px-3 pb-3 rounded-2xl">
20
+ <legend class="text-black fieldset-legend px-1.5">Identificador</legend>
21
  <p class="text-3xl max-sm:text-2xl font-medium">{{ presentador.id }}</p>
22
  </fieldset>
23
  </section>
24
  <section class="flex-1 flex justify-center">
25
  <button type="button"
26
+ class="btn btn-active text-xl tracking-wider font-bold text-black btn-error py-8 px-12 border-b-red-600 btn-push">
27
+ Salir del sistema
28
+ </button>
29
  </section>
30
  </section>
31
  </header>
32
 
33
+ <article class="w-full flex flex-col gap-7 items-center min-sm:mt-7 mt-4 bg-surface-card rounded-lg shadow-lg">
34
  <article
35
  class="w-5xl max-lg:w-3xl max-md:w-auto p-8 flex flex-col justify-around items-center gap-4 flex-wrap text-3xl max-sm:text-2xl">
36
  <section class="flex flex-row flex-wrap gap-4 w-full">
37
+ <a href="{% url 'cata_system:seleccion_tecnica' %}" class="flex-1 w-full">
38
+ <button
39
+ class="w-full text-black bg-btn-primary font-medium rounded-xl px-8 py-4 text-center border-b-green-800 btn-push">
40
+ Iniciar Sesión <br> Sensorial
41
+ </button>
42
+ </a>
43
+ <a href="{% url 'cata_system:panel_catadores' %}" class="flex-1 w-full">
44
+ <button
45
+ class="w-full text-black bg-btn-secondary font-medium rounded-xl px-8 py-4 text-center border-b-pink-800 btn-push">
46
+ Gestión de <br>catadores
47
+ </button>
48
+ </a>
49
  </section>
50
 
51
  <section class="flex flex-row flex-wrap gap-4 w-f ull justify-center">
52
+ <a href="{% url 'cata_system:panel_sesiones' page=1 %}">
53
+ <button
54
+ class="text-black bg-btn-tertiary font-medium rounded-xl px-8 py-4 text-center border-b-pink-800 btn-push">
55
+ Gestión de sesiones<br>sensoriales
56
+ </button>
57
+ </a>
58
  </section>
59
  </article>
60
  </article>
61
  </article>
62
+ </article>
63
+ {% endblock %}
tecnicas/templates/tecnicas/manage_sesions/detalles-sesion.html CHANGED
@@ -4,17 +4,17 @@
4
  {% block title %}Detalles Sesion{% endblock %}
5
 
6
  {% block content %}
7
- <article class="w-full flex flex-col justify-center items-center bg-gray-600 mt-10 mb-10">
8
- <article class="flex flex-col gap-8 bg-gray-400 p-10 max-lg:p-6 max-sm:px-2 rounded-2xl max-lg:rounded-none">
9
  <header class="text-center flex-row w-full flex justify-around items-center flex-wrap gap-10">
10
- <h1 class="text-white rounded-xl font-bold text-2xl bg-gray-600 p-4 flex-1">
11
  Detalles de la sesión
12
  </h1>
13
- <a href="{% url 'cata_system:index' %}">
14
- <p
15
- class="uppercase text-lg tracking-wider font-medium p-2 px-4 border-b-2 active:border-b-0 active:border-t-2 active:border-blue-500 border-blue-800 transition-all rounded-xl bg-blue-600 text-white">
16
- Panel principal
17
- </p>
18
  </a>
19
  </header>
20
 
@@ -34,11 +34,11 @@
34
  </article>
35
  {% endif %}
36
 
37
- <p class="font-bold text-2xl border-b-2">
38
  Información general
39
  </p>
40
  <article
41
- class="text-white rounded-xl grid grid-cols-2 max-sm:grid-cols-1 gap-3 *:bg-gray-500 *:flex *:flex-wrap *:items-center *:justify-center *:max-sm:justify-normal *:gap-x-2 *:p-4 *:rounded-2xl text-xl max-sm:text-base">
42
  <section class="col-span-2 max-sm:col-span-1">
43
  <p class="font-bold">
44
  Código:
@@ -129,14 +129,14 @@
129
  </section>
130
  </article>
131
 
132
- <p class="font-bold text-2xl border-b-2">
133
  Palabras usadas para calificar
134
  </p>
135
  <article
136
- class="text-white rounded-xl grid grid-cols-4 max-sm:grid-cols-1 gap-3 *:bg-gray-500 *:flex *:items-center *:justify-center *:gap-x-2 *:p-4 *:rounded-2xl">
137
  {% for palabra in palabras %}
138
  <section>
139
- <p class="block text-xl antialiased font-medium">
140
  {{ palabra.nombre_palabra }}
141
  </p>
142
  </section>
@@ -144,7 +144,7 @@
144
  </article>
145
 
146
 
147
- <p class="font-bold text-2xl border-b-2">
148
  Acciones disponibles
149
  </p>
150
  <article class="flex flex-wrap gap-10 max-sm:gap-2">
@@ -178,18 +178,18 @@
178
  </button>
179
  </article>
180
 
181
- <p class="font-bold text-2xl border-b-2">
182
  Datos obtenidos
183
  </p>
184
 
185
  {% if calificaciones.error %}
186
- <article class="bg-gray-600 p-4 text-white rounded-xl">
187
  <p class="block font-sans text-xl antialiased font-normal uppercase tracking-wider text-center">
188
  {{ calificaciones.error }}
189
  </p>
190
  </article>
191
  {% else %}
192
- <article class="bg-gray-600 p-4 text-white rounded-xl">
193
  </article>
194
  {% endif %}
195
  <form action="" method="post" class="form-action-session hidden">
 
4
  {% block title %}Detalles Sesion{% endblock %}
5
 
6
  {% block content %}
7
+ <article class="w-full flex flex-col justify-center items-center bg-surface-general mt-10 mb-10">
8
+ <article class="flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-2 rounded-xl max-lg:rounded-none">
9
  <header class="text-center flex-row w-full flex justify-around items-center flex-wrap gap-10">
10
+ <h1 class="text-black rounded-xl font-bold text-2xl bg-surface-card shadow-lg p-4 flex-1">
11
  Detalles de la sesión
12
  </h1>
13
+ <a href="{% url 'cata_system:index' %}" class="w-fit">
14
+ <button
15
+ class="text-black bg-btn-secondary font-medium rounded-lg text-xl p-4 text-center border-pink-800 btn-push">
16
+ Volver a las Sesiones
17
+ </button>
18
  </a>
19
  </header>
20
 
 
34
  </article>
35
  {% endif %}
36
 
37
+ <p class="text-black font-bold text-2xl border-b-2">
38
  Información general
39
  </p>
40
  <article
41
+ class="text-black rounded-xl grid grid-cols-2 max-sm:grid-cols-1 gap-3 *:bg-surface-card *:flex *:flex-wrap *:items-center *:justify-center *:max-sm:justify-normal *:gap-x-2 *:p-4 *:rounded-2xl text-xl max-sm:text-base">
42
  <section class="col-span-2 max-sm:col-span-1">
43
  <p class="font-bold">
44
  Código:
 
129
  </section>
130
  </article>
131
 
132
+ <p class="text-black font-bold text-2xl border-b-2">
133
  Palabras usadas para calificar
134
  </p>
135
  <article
136
+ class="text-white rounded-xl grid grid-cols-4 max-sm:grid-cols-1 gap-3 *:bg-surface-ligt *:flex *:items-center *:justify-center *:gap-x-2 *:p-4 *:rounded-2xl">
137
  {% for palabra in palabras %}
138
  <section>
139
+ <p class="block text-black text-xl antialiased font-medium">
140
  {{ palabra.nombre_palabra }}
141
  </p>
142
  </section>
 
144
  </article>
145
 
146
 
147
+ <p class="text-black font-bold text-2xl border-b-2">
148
  Acciones disponibles
149
  </p>
150
  <article class="flex flex-wrap gap-10 max-sm:gap-2">
 
178
  </button>
179
  </article>
180
 
181
+ <p class="text-black font-bold text-2xl border-b-2">
182
  Datos obtenidos
183
  </p>
184
 
185
  {% if calificaciones.error %}
186
+ <article class="bg-surface-general p-4 text-white rounded-xl">
187
  <p class="block font-sans text-xl antialiased font-normal uppercase tracking-wider text-center">
188
  {{ calificaciones.error }}
189
  </p>
190
  </article>
191
  {% else %}
192
+ <article class="bg-surface-general p-4 text-white rounded-xl">
193
  </article>
194
  {% endif %}
195
  <form action="" method="post" class="form-action-session hidden">
tecnicas/templates/tecnicas/manage_sesions/sesiones-panel.html CHANGED
@@ -4,59 +4,72 @@
4
  {% block title %}Panel Sesiones{% endblock %}
5
 
6
  {% block content %}
7
- <article class="w-full flex flex-col justify-center items-center bg-gray-600 mt-10 mb-10">
8
- <article class="max-sm:w-full flex flex-col gap-8 bg-gray-400 p-10 max-lg:p-6 max-sm:px-0 rounded-2xl">
9
  <header class="text-center flex flex-row max-sm:flex-col gap-8 items-center w-full">
10
- <div class="bg-gray-600 p-4 text-white rounded-xl flex-1">
11
  <h1 class="font-bold text-2xl">Administra las<br>sesiones sensoriales</h1>
12
  </div>
13
- <div class="flex-1">
14
- <a href="{% url 'cata_system:index' %}"
15
- class="text-white bg-blue-600 hover:bg-blue-700 active:outline-none active:ring-4 active:ring-blue-300 font-medium rounded-xl text-xl p-4 text-center uppercase">Panel
16
- principal</a>
 
 
 
17
  </div>
18
  </header>
19
 
20
- <section class="grid grid-cols-3 max-lg:grid-cols-2 max-sm:grid-cols-1 gap-4">
21
  {% for sesion in sessions %}
22
- <a href="{% url 'cata_system:detalles_sesion' session_code=sesion.codigo_sesion %}"
23
- class="p-4 bg-gray-200 flex flex-row gap-2 justify-center items-center rounded-lg border-b-4 border-blue-500">
24
- <div class="text-right *:not-last:mb-2">
25
- {% if sesion.nombre_sesion %}
26
- <p><b>Nombre:</b></p>
27
- {% endif %}
28
- <p><b>Código:</b></p>
29
- <p><b>Fecha:</b></p>
30
- <p><b>Técnica:</b></p>
31
- <p><b>Estilo:</b></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  </div>
33
- <div class="*:not-last:mb-2">
34
- {% if sesion.nombre_sesion %}
35
- <p>{{ sesion.nombre_sesion }}</p>
36
- {% endif %}
37
- <p>{{ sesion.codigo_sesion }}</p>
38
- <p>{{ sesion.fechaCreacion }}</p>
39
- <p class="uppercase">{{ sesion.tecnica.tipo_tecnica.nombre_tecnica }}</p>
40
- <p class="uppercase">{{ sesion.tecnica.id_estilo.nombre_estilo }}</p>
41
- </div>
42
- </a>
43
  {% endfor %}
44
  </section>
45
 
46
  <section class="flex justify-center items-center gap-2">
47
- <button>
48
- <img class="h-10" src="{% static 'img/less-than.svg' %}" alt="menor que">
49
- </button>
50
- <ul class="flex flex-row gap-2">
51
- <li>1</li>
52
- <li>2</li>
53
- <li>3</li>
54
- <li>. . .</li>
55
- <li>8</li>
56
- </ul>
57
- <button>
58
- <img class="h-10" src="{% static 'img/greater-than.svg' %}" alt="mayor que">
59
- </button>
60
  </section>
61
  </article>
62
  </article>
 
4
  {% block title %}Panel Sesiones{% endblock %}
5
 
6
  {% block content %}
7
+ <article class="w-full flex flex-col justify-center items-center bg-surface-general mt-10 mb-10">
8
+ <article class="max-sm:w-full flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-0 rounded-2xl">
9
  <header class="text-center flex flex-row max-sm:flex-col gap-8 items-center w-full">
10
+ <div class="bg-surface-card p-4 text-black shadow-lg rounded-xl flex-1">
11
  <h1 class="font-bold text-2xl">Administra las<br>sesiones sensoriales</h1>
12
  </div>
13
+ <div class="flex-1 flex justify-end items-center">
14
+ <a href="{% url 'cata_system:index' %}" class="w-fit">
15
+ <button
16
+ class="text-black bg-btn-secondary font-medium rounded-lg text-xl p-4 text-center border-pink-800 btn-push">
17
+ Ir al Panel principal
18
+ </button>
19
+ </a>
20
  </div>
21
  </header>
22
 
23
+ <section class="grid grid-cols-3 max-lg:grid-cols-2 max-sm:grid-cols-1 gap-4 justify-center">
24
  {% for sesion in sessions %}
25
+ <div class="card bg-surface-card shadow-lg text-black max-w-80 w-full">
26
+ <div class="card-body flex flex-col justify-between">
27
+ <div class="flex flex-col gap-1 [&>*]:first:text-xl [&>*]:first:font-bold [&>*]:first:border-b">
28
+ {% if sesion.nombre_sesion %}
29
+ <h2>{{ sesion.nombre_sesion }}</h2>
30
+ <span class="text-lg underline"><b>Código:</b><br>{{ sesion.codigo_sesion }}</span>
31
+ {% else %}
32
+ <span class="text-lg">Código:<br>{{ sesion.codigo_sesion }}</span>
33
+ {% endif %}
34
+ </div>
35
+ <ul class="mt-6 flex flex-col gap-2 text-base">
36
+ <li>
37
+ Se usa la Técnica:
38
+ <span class="uppercase font-bold">
39
+ {{ sesion.tecnica.tipo_tecnica.nombre_tecnica }}
40
+ </span>
41
+ </li>
42
+ <li>
43
+ El Estilo de palabras:
44
+ <span class="uppercase font-bold">
45
+ {{ sesion.tecnica.id_estilo.nombre_estilo }}
46
+ </span>
47
+ </li>
48
+ <li>
49
+ {{ sesion.fechaCreacion }}
50
+ </li>
51
+ </ul>
52
+ <div class="mt-6">
53
+ <a href="{% url 'cata_system:detalles_sesion' session_code=sesion.codigo_sesion %}">
54
+ <button class="btn bg-btn-primary border-0 block w-full btn-push">Inspeccionar
55
+ sesión</button>
56
+ </a>
57
+ </div>
58
  </div>
59
+ </div>
 
 
 
 
 
 
 
 
 
60
  {% endfor %}
61
  </section>
62
 
63
  <section class="flex justify-center items-center gap-2">
64
+ <div class="join">
65
+ <button class="join-item btn bg-btn-secondary">
66
+ <img class="h-full" src="{% static 'img/less-than.svg' %}" alt="menor que">
67
+ </button>
68
+ <button class="join-item btn bg-btn-secondary">Page 22</button>
69
+ <button class="join-item btn bg-btn-secondary">
70
+ <img class="h-full" src="{% static 'img/greater-than.svg' %}" alt="mayor que">
71
+ </button>
72
+ </div>
 
 
 
 
73
  </section>
74
  </article>
75
  </article>
theme/static_src/src/styles.css CHANGED
@@ -2,9 +2,41 @@
2
  @plugin "daisyui";
3
 
4
  @theme {
5
- --color-main-surface: #dd1550;
 
 
 
 
 
 
 
 
 
 
6
  }
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  /**
9
  * A catch-all path to Django template files, JavaScript, and Python files
10
  * that contain Tailwind CSS classes and will be scanned by Tailwind to generate the final CSS file.
@@ -12,4 +44,6 @@
12
  * If your final CSS file is not being updated after code changes, you may want to broaden or narrow
13
  * the scope of this path.
14
  */
15
- @source "../../../**/*.{html,py,js}";
 
 
 
2
  @plugin "daisyui";
3
 
4
  @theme {
5
+ --color-surface-general: #B95E82;
6
+ --color-surface-alter: #F39F9F;
7
+ --color-surface-sweet: #FFC29B;
8
+ --color-surface-ligt: #FFECC0;
9
+ --color-surface-card: #FFF3E0;
10
+ --color-surface-alter-card: #91C4C3;
11
+ --color-btn-primary: #4CAF50;
12
+ --color-btn-secondary: #E45A92;
13
+ --color-btn-tertiary: #FFACAC;
14
+ --color-ct-success: #2E7D32;
15
+ --color-ct-error: #E62727;
16
  }
17
 
18
+ .btn-push {
19
+ @apply border-b-4 active:border-b-0 active:border-t-4 transition-all;
20
+ }
21
+
22
+ /*
23
+ #FFECC0
24
+ #FFC29B
25
+ #F39F9F
26
+ #B95E82
27
+
28
+ #80A1BA
29
+ #91C4C3
30
+ #B4DEBD
31
+ #FFF7DD
32
+
33
+ #3E1E68
34
+ #5D2F77
35
+ #E45A92
36
+ #FFACAC
37
+ */
38
+
39
+
40
  /**
41
  * A catch-all path to Django template files, JavaScript, and Python files
42
  * that contain Tailwind CSS classes and will be scanned by Tailwind to generate the final CSS file.
 
44
  * If your final CSS file is not being updated after code changes, you may want to broaden or narrow
45
  * the scope of this path.
46
  */
47
+ @source "../../../**/*.{html,py,js}";
48
+ @source "../../../tecnicas/templates/tecnicas/*.{html,py,js}";
49
+ @source "../../../tecnicas/templates/tecnicas/**/*.{html,py,js}";