Skip to content

Commit 6e4cc14

Browse files
committed
Fin aDEViento 2024
1 parent 0184d61 commit 6e4cc14

File tree

1 file changed

+84
-84
lines changed

1 file changed

+84
-84
lines changed

adeviento_web/views/calendar.py

+84-84
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
),
127127
(
128128
"Suscripción anual a mouredev pro: Estudia programación de manera diferente",
129-
"https://x.com/MoureDev/status/1871558826761261301",
129+
"https://x.com/MoureDev/status/1871934793124061382",
130130
"https://mouredev.pro"
131131
)
132132
]
@@ -138,67 +138,67 @@ def calendar() -> rx.Component:
138138
return rx.vstack(
139139
header_text(
140140
"heart",
141-
"Calendario 2024"
142-
),
143-
rx.vstack(
144-
rx.text(
145-
"El regalo de hoy",
146-
class_name="title",
147-
color=TextColor.ACCENT.value
148-
),
149-
rx.flex(
150-
rx.box(
151-
day(
152-
_current_day + 1,
153-
_gift_name(_current_day),
154-
_gift_url(_current_day),
155-
),
156-
height="14em",
157-
width="14em",
158-
aspect_ratio="1",
159-
margin_right=Size.BIG.value
160-
),
161-
rx.vstack(
162-
rx.el.span(
163-
f"Día {_current_day + 1}"),
164-
rx.link(
165-
_gift_name(_current_day),
166-
href=_gift_info(_current_day),
167-
is_external=True
168-
),
169-
rx.spacer(),
170-
rx.flex(
171-
button(
172-
"Participa",
173-
_gift_url(_current_day)
174-
),
175-
rx.cond(
176-
_current_day > 1,
177-
button(
178-
f"Día {_current_day}",
179-
_gift_url(_current_day - 1)
180-
)
181-
),
182-
align_items="start",
183-
flex_direction=styles.FLEX_DIRECTION
184-
),
185-
align_items="start",
186-
margin_top=Size.BIG.value
187-
),
188-
flex_direction=styles.FLEX_DIRECTION
189-
),
190-
width="100%",
191-
class_name="nes-container is-dark with-title",
192-
align_items="start"
141+
"Calendario 2024.¡Feliz Navidad!"
193142
),
143+
# rx.vstack(
144+
# rx.text(
145+
# "El regalo de hoy",
146+
# class_name="title",
147+
# color=TextColor.ACCENT.value
148+
# ),
149+
# rx.flex(
150+
# rx.box(
151+
# day(
152+
# _current_day + 1,
153+
# _gift_name(_current_day),
154+
# _gift_url(_current_day),
155+
# ),
156+
# height="14em",
157+
# width="14em",
158+
# aspect_ratio="1",
159+
# margin_right=Size.BIG.value
160+
# ),
161+
# rx.vstack(
162+
# rx.el.span(
163+
# f"Día {_current_day + 1}"),
164+
# rx.link(
165+
# _gift_name(_current_day),
166+
# href=_gift_info(_current_day),
167+
# is_external=True
168+
# ),
169+
# rx.spacer(),
170+
# rx.flex(
171+
# button(
172+
# "Participa",
173+
# _gift_url(_current_day)
174+
# ),
175+
# rx.cond(
176+
# _current_day > 1,
177+
# button(
178+
# f"Día {_current_day}",
179+
# _gift_url(_current_day - 1)
180+
# )
181+
# ),
182+
# align_items="start",
183+
# flex_direction=styles.FLEX_DIRECTION
184+
# ),
185+
# align_items="start",
186+
# margin_top=Size.BIG.value
187+
# ),
188+
# flex_direction=styles.FLEX_DIRECTION
189+
# ),
190+
# width="100%",
191+
# class_name="nes-container is-dark with-title",
192+
# align_items="start"
193+
# ),
194194
rx.grid(
195195
*[
196196
day(
197197
number + 1,
198198
_gift_name(number),
199199
_gift_url(number),
200-
False if len(_gifts) - 1 == number else True
201-
# True, # finalizado
200+
# False if len(_gifts) - 1 == number else True
201+
True, # finalizado
202202
)
203203
for _, number in enumerate(range(0, _current_day + 1))
204204
],
@@ -218,35 +218,35 @@ def calendar() -> rx.Component:
218218
width="100%",
219219
padding_y=Size.BIG.value
220220
),
221-
rx.vstack(
222-
rx.hstack(
223-
rx.text(
224-
"Próximo regalo y ganadores en",
225-
# "Calendario 2024 en",
226-
margin_right=Size.DEFAULT.value
227-
),
228-
rx.text(
229-
id="countdown",
230-
margin_left=Size.ZERO.value
231-
),
232-
align_items="start",
233-
flex_direction=styles.FLEX_DIRECTION
234-
),
235-
# button(
236-
# "Recordar",
237-
# constants.DISCORD_EVENT_URL
238-
# ),
239-
rx.el.span(
240-
"• Los regalos son sorpresa, permanecerán ocultos hasta el día de su publicación. No olvides pasarte por aquí cada día para descubrir un nuevo sorteo."
241-
),
242-
rx.el.span(
243-
"• Puedes seleccionar cada regalo para conocer a los ganadores una vez se haya publicado el nuevo sorteo (aparecerá en rojo)."
244-
),
245-
class_name="nes-container is-dark",
246-
align_items="start",
247-
width="100%"
248-
),
249-
rx.script(src="/js/countdown.js"),
221+
# rx.vstack(
222+
# rx.hstack(
223+
# rx.text(
224+
# "Próximo regalo y ganadores en",
225+
# # "Calendario 2024 en",
226+
# margin_right=Size.DEFAULT.value
227+
# ),
228+
# rx.text(
229+
# id="countdown",
230+
# margin_left=Size.ZERO.value
231+
# ),
232+
# align_items="start",
233+
# flex_direction=styles.FLEX_DIRECTION
234+
# ),
235+
# # button(
236+
# # "Recordar",
237+
# # constants.DISCORD_EVENT_URL
238+
# # ),
239+
# rx.el.span(
240+
# "• Los regalos son sorpresa, permanecerán ocultos hasta el día de su publicación. No olvides pasarte por aquí cada día para descubrir un nuevo sorteo."
241+
# ),
242+
# rx.el.span(
243+
# "• Puedes seleccionar cada regalo para conocer a los ganadores una vez se haya publicado el nuevo sorteo (aparecerá en rojo)."
244+
# ),
245+
# class_name="nes-container is-dark",
246+
# align_items="start",
247+
# width="100%"
248+
# ),
249+
# rx.script(src="/js/countdown.js"),
250250
style=styles.max_width_style
251251
)
252252

0 commit comments

Comments
 (0)