|
9 | 9 | <div class="flex flex-wrap items-center justify-center custom-position-content"
|
10 | 10 | style="--tw-translate-x: 35px; @media (min-width: 768px) { --tw-translate-x: 35px; } @media (min-width: 1024px) { --tw-translate-x: 100px; } @media (min-width: 1280px) { --tw-translate-x: 130px; }"
|
11 | 11 | x-data
|
12 |
| - x-init="$el.style.transform = `translateX(${getComputedStyle($el).getPropertyValue('--tw-translate-x')})`"> |
13 |
| - <!-- Converted to Tailwind; kept custom and inline styles --> |
| 12 | + x-init="$el.style.transform = `translateX(${getComputedStyle($el).getPropertyValue('--tw-translate-x')})`"> |
14 | 13 | <div class="w-full md:w-1/12 md:ml-2/12 text-center avatars-positions"
|
15 | 14 | style="margin-top: -4px; position: relative; right: 4px;">
|
16 | 15 | <img id="avatar_1" src="./static/public/Argentina.png" alt="MG" width="28" height="28" />
|
17 | 16 | <br><br>
|
18 | 17 | <img id="avatar_2" src="./static/public/Chile.png" alt="LA" width="28" height="28" />
|
19 | 18 | </div>
|
20 |
| - <div class="w-full md:w-4/12 lg:w-4/12 xl:w-4/12 custom-margin-top" style="max-width: 250px;"> |
| 19 | + <div class="w-full md:w-4/12 lg:w-4/12 xl:w-4/12" style="max-width: 250px;"> <!-- COLUMNA DASHBOARD --> |
21 | 20 | <div class="mb-1">
|
22 |
| - <div class="flex justify-between" style="width: 100%;"> |
23 |
| - <!-- Template logic retained --> |
| 21 | + <div class="flex justify-between"> |
24 | 22 | {% if last_total_increase %}
|
25 | 23 | {% set now = datetime.now(pytz.timezone('America/Montevideo')) - timedelta(minutes=180) %}
|
26 | 24 | {% set time_diff = now - last_total_increase.timestamp %}
|
27 | 25 | {% set minutes_diff = time_diff.total_seconds() // 60 %}
|
28 |
| - <div class="rounded-lg" style="width: 50%;"><mark class="ml-3 rounded-md">{{ |
| 26 | + <div class="rounded-lg" style="width: 75%;"><mark class="ml-3 rounded-md">{{ |
29 | 27 | minutes_diff }} minutos atrás</mark>
|
30 | 28 | </div>
|
31 |
| - <div class="text-right" style="width: 50%; position: relative; bottom: 1px; right: 110px;"> |
| 29 | + <div class="text-right mr-20 mt-1"> <!-- VER POSICION PARA MOBILE Y EN ERROR--> |
32 | 30 | <a href="https://github.com/MiguelGalp/opiodelospueblos"><img id="github_icon"
|
33 |
| - src="./static/public/github-logo.png" alt="GitHub" width="12" height="12" /></a> |
| 31 | + src="./static/public/github-logo.png" alt="GitHub" width="20" height="20" /></a> |
34 | 32 | </div>
|
35 | 33 | {% else %}
|
36 |
| - <div class="rounded-lg" style="width: 50%"><mark class="ml-3 rounded-md">estamos viendo que |
37 |
| - pasa...</mark> |
| 34 | + <div class="rounded-lg" style="width: 50%"><mark class="ml-3 rounded-md">algo pasa...</mark> |
38 | 35 | </div>
|
39 | 36 | <div class="text-right" style="width: 50%; position: relative; bottom: 5px;">
|
40 | 37 | <a href="https://github.com/MiguelGalp/opiodelospueblos"><img id="github_icon"
|
|
43 | 40 | {% endif %}
|
44 | 41 | </div>
|
45 | 42 | </div>
|
46 |
| - <div class="relative flex flex-col min-w-0 break-words bg-white bg-clip-border border border-solid border-gray-200 rounded-md" |
47 |
| - style="height: 86px;"> |
| 43 | + <!-- COMPONENTE ÍNDICE--> |
| 44 | + <div class="relative flex flex-col min-w-0 break-words bg-white bg-clip-border border border-solid border-gray-200 rounded-md"> |
48 | 45 | <div class="card-body p-5" style="background-color: var(--background-body);">
|
49 |
| - <div class="p-0" |
50 |
| - style="background-color: var(--texto-azul-pleno); opacity: 39%; border-radius: 0.5rem; margin-top: -8px; margin-bottom:-8px;"> |
| 46 | + <div class="p-0"> |
51 | 47 | <div
|
52 | 48 | style="height: 40px; width: {{ '%.2f'|format(min(total_engagement * 1000, 100)) }}%; background-color: #000; opacity: 30%;">
|
53 | 49 | </div>
|
|
56 | 52 | </div>
|
57 | 53 | <div class="flex justify-between" style="margin-top: 3px; margin-left: 30px;">
|
58 | 54 | <div class="flex items-center"
|
59 |
| - style="filter: var(--legibilidad); font-size: 24px; font-weight: 900; color: var(--texto-amarillo-pleno); width: 50%; position: relative; bottom: 59px; left: 50px; z-index: 2;"> |
| 55 | + style="filter: var(--legibilidad); font-size: 24px; font-weight: 900; color: var(--texto-amarillo-pleno); width: 50%; position: relative; bottom: 62px; left: 55px; z-index: 2;"> |
60 | 56 | {{ '%.2f'|format(min(total_engagement * 1000, 100)) }}%
|
61 | 57 | </div>
|
62 | 58 | </div>
|
63 | 59 | </div>
|
64 |
| - <div class="w-full md:w-3/12 mx-1" style="filter: brightness(90%);"> |
65 |
| - <div class="mt-1" style="letter-spacing: 0%;"> |
66 |
| - <div class="text-uppercase inline" |
67 |
| - style="font-size: 20px; font-weight: 900; color: rgba(169, 198, 180, 0.7);"> |
68 |
| - ODIO <div class="inline" style="color: rgba(250, 196, 111, 1);">OÍDO:</div> |
| 60 | + <div class="w-full md:w-3/12 mx-1"> |
| 61 | + <div class="-mt-4 text-center mr-8 relative right-4" style="letter-spacing: 0%;"> |
| 62 | + <div class="text-uppercase inline mr-20 relative right-1 top-3 font-extrabold" |
| 63 | + style="font-size: 20px;"> |
| 64 | + ODIO <div class="inline" style="opacity: 40%;">OÍDO:</div> |
69 | 65 | </div>
|
70 | 66 | <div class="text-uppercase"
|
71 | 67 | style="font-size: 28px; font-weight: 900; margin-top: -4px; color: var(--texto-azul-pleno);">
|
72 |
| - TOXICIDAD <div class="inline" style="color: var(--texto-amarillo-pleno);">EN</div> |
| 68 | + TOXICIDAD <div class="inline">EN</div> |
73 | 69 | </div>
|
74 |
| - <p class="text-uppercase" |
75 |
| - style="font-size: 44px; font-weight: 900; margin-top: -7px; color: var(--texto-azul-pleno); opacity: 39%; position: relative; right: 1px;"> |
| 70 | + <p class="text-uppercase text-44 font-extrabold relative right-1" |
| 71 | + style="font-size: 44px; opacity: 40%; margin-top: -26px;"> <!-- CLASES NO TAILWIND--> |
76 | 72 | TWITTER
|
77 | 73 | </p>
|
78 | 74 | </div>
|
|
0 commit comments