|
| 1 | +--- |
| 2 | +import Footer from '../../components/Footer.astro' |
| 3 | +import Layout from '../../layouts/Layout.astro' |
| 4 | +
|
| 5 | +import { faClock } from '@fortawesome/free-regular-svg-icons' |
| 6 | +import { faBus, faGavel, faInfo, faMedal, faPersonChalkboard } from '@fortawesome/free-solid-svg-icons' |
| 7 | +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' |
| 8 | +
|
| 9 | +const scrollOptions = [ |
| 10 | + { |
| 11 | + icon: faInfo, |
| 12 | + title: 'Info. general', |
| 13 | + subtitle: 'Fechas, ubicación, premios, etc.', |
| 14 | + href: 'general/', |
| 15 | + }, |
| 16 | + { |
| 17 | + icon: faClock, |
| 18 | + title: 'Horarios', |
| 19 | + subtitle: '¿A qué hora se entregan los proyectos?', |
| 20 | + href: 'horarios/', |
| 21 | + }, |
| 22 | + { |
| 23 | + icon: faGavel, |
| 24 | + title: 'Reglas', |
| 25 | + subtitle: '¿Alguna norma a seguir?', |
| 26 | + href: 'reglas/', |
| 27 | + }, |
| 28 | + { |
| 29 | + icon: faMedal, |
| 30 | + title: 'Retos y premios', |
| 31 | + subtitle: '¿Cuales eran los retos?', |
| 32 | + href: 'retos/', |
| 33 | + }, |
| 34 | + { |
| 35 | + icon: faPersonChalkboard, |
| 36 | + title: 'Charlas patrocinadores', |
| 37 | + subtitle: '¿Más información sobre los retos?', |
| 38 | + href: 'charlas/', |
| 39 | + }, |
| 40 | + { |
| 41 | + icon: faBus, |
| 42 | + title: 'Transporte', |
| 43 | + subtitle: '¿Cómo se llega a la facultad?', |
| 44 | + href: 'transporte/', |
| 45 | + }, |
| 46 | +] |
| 47 | +--- |
| 48 | + |
| 49 | +<Layout title="HackUDC 2025 - Información sobre el evento"> |
| 50 | + <div class="flex h-screen flex-col"> |
| 51 | + <div class="mx-auto mt-6 w-full max-w-screen-lg grow px-2"> |
| 52 | + <a |
| 53 | + href="/" |
| 54 | + class="hover-bg-green-700 rounded-full border border-green-700 px-4 py-2 text-green-500 transition duration-150 hover:text-white" |
| 55 | + >Volver a inicio</a |
| 56 | + > |
| 57 | + </div> |
| 58 | + <div class="mx-auto w-full max-w-screen-lg grow px-2"> |
| 59 | + <p class="mt-10 text-center text-5xl font-medium"> |
| 60 | + <span |
| 61 | + class="inline-block bg-gradient-to-br from-green-700 via-green-500 to-green-700 bg-clip-text text-transparent" |
| 62 | + > |
| 63 | + Información sobre el evento |
| 64 | + </span> |
| 65 | + </p> |
| 66 | + |
| 67 | + <div class="mt-14 grid grid-cols-1 gap-4 px-2 sm:grid-cols-3"> |
| 68 | + { |
| 69 | + scrollOptions.map((o) => { |
| 70 | + return ( |
| 71 | + <a |
| 72 | + href={o.href} |
| 73 | + class="bg-animated flex h-36 flex-col justify-evenly rounded p-0.5 duration-150 hover:scale-[1.03]" |
| 74 | + > |
| 75 | + <div class="flex h-full flex-col justify-evenly rounded bg-[#242424] px-8 py-2 duration-150"> |
| 76 | + <div class="px-1"> |
| 77 | + <FontAwesomeIcon icon={o.icon} className="h-10" /> |
| 78 | + </div> |
| 79 | + <div> |
| 80 | + <h2 class="text-xl">{o.title}</h2> |
| 81 | + <p class="text-sm font-light">{o.subtitle}</p> |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + </a> |
| 85 | + ) |
| 86 | + }) |
| 87 | + } |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + |
| 91 | + <style> |
| 92 | + .bg-animated:hover { |
| 93 | + animation: gradient 500ms ease; |
| 94 | + animation-iteration-count: 1; |
| 95 | + animation-fill-mode: forwards; |
| 96 | + } |
| 97 | + |
| 98 | + .bg-animated { |
| 99 | + background: linear-gradient(-45deg, #22c55e, #15803d 50%, #242424 50% 100%); |
| 100 | + background-size: 200% 200%; |
| 101 | + } |
| 102 | + @keyframes gradient { |
| 103 | + 0% { |
| 104 | + background-position: 0% 0%; |
| 105 | + } |
| 106 | + 100% { |
| 107 | + background-position: 100% 100%; |
| 108 | + } |
| 109 | + } |
| 110 | + </style> |
| 111 | + <Footer /> |
| 112 | + </div> |
| 113 | +</Layout> |
0 commit comments