Skip to content

Commit c2ae5b0

Browse files
allowing close new job alert
1 parent c5ab5cf commit c2ae5b0

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

src/pages/nuevo-empleo.astro

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for (const key in categories) {
2626
<div class="lg:max-w-[58rem] mx-auto w-full md:mt-12">
2727
<div
2828
id="newJobsAlert"
29-
class="flex p-4 hidden mt-5 md:mt-0 text-sm mb-6 text-blue-800 border border-blue-300 rounded-lg bg-blue-50 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-800"
29+
class="flex p-4 mt-5 md:mt-0 text-sm mb-6 text-blue-800 border border-blue-300 rounded-lg bg-blue-50 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-800"
3030
role="alert"
3131
>
3232
<svg
@@ -42,7 +42,7 @@ for (const key in categories) {
4242
>
4343
<span class="sr-only">Info</span>
4444
<div>
45-
<span class="font-medium">Antes de publicar su anuncio, asegúrese de respetar las siguientes normas.</span>
45+
<span class="font-medium">Antes de publicar su anuncio, asegúrese de respetar las siguientes normas para no ser baneado de la plataforma.</span>
4646
<ul class="mt-1.5 ml-4 list-disc list-inside">
4747
<li>Solo publicar ofertas de trabajo.</li>
4848
<li>No publicar candidaturas (Que estas buscando trabajo).</li>
@@ -51,7 +51,7 @@ for (const key in categories) {
5151
<li>No publicar ofertas de trabajos engañosas o inmorales.</li>
5252
</ul>
5353
</div>
54-
<!-- <button
54+
<button
5555
type="button"
5656
class="ml-auto -mx-1.5 -my-1.5 bg-blue-50 text-blue-500 rounded-lg focus:ring-2 focus:ring-blue-400 p-1.5 hover:bg-blue-200 inline-flex h-8 w-8 dark:bg-gray-800 dark:text-blue-300 dark:hover:bg-gray-700"
5757
data-dismiss-target="#newJobsAlert"
@@ -65,7 +65,7 @@ for (const key in categories) {
6565
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
6666
clip-rule="evenodd"></path></svg
6767
>
68-
</button> -->
68+
</button>
6969
</div>
7070
</div>
7171

@@ -157,16 +157,6 @@ for (const key in categories) {
157157
var control = new TomSelect("#categories", { maxItems: 5 });
158158
</script>
159159

160-
<script is:inline>
161-
if (localStorage.getItem("hideNewJobAlert") === null) {
162-
document.getElementById("newJobsAlert").classList.remove("hidden");
163-
}
164-
165-
document.getElementById("closeNewJobsAlert").addEventListener("click", () => {
166-
localStorage.hideNewJobAlert = true;
167-
});
168-
</script>
169-
170160
<script>
171161
import { backend_url } from "../data/conf.json";
172162
import blacklist from "../data/blacklist.json";

0 commit comments

Comments
 (0)