mirror of
https://github.com/Death916/deathsite.git
synced 2026-04-10 03:04:41 -07:00
Update changes
This commit is contained in:
parent
e5609912d3
commit
da3288b015
1 changed files with 10 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def home():
|
|||
rx.heading("Whats New:", size="8", color="#ffffff"),
|
||||
|
||||
rx.html(
|
||||
# Use Var.contains() and Var.split() for reactive string manipulation
|
||||
|
||||
f"""
|
||||
<iframe width="350" height="200" src={rx.cond(State.current_yt_video.contains('v='), f"https://www.youtube.com/embed/{State.current_yt_video.split('v=')[1]}", "about:blank")} title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
|
||||
"""
|
||||
|
|
@ -69,6 +69,15 @@ def home():
|
|||
is_external=True,
|
||||
padding="0.5em",
|
||||
),
|
||||
rx.link(
|
||||
"YouTube",
|
||||
href="https://www.youtube.com/@916hs",
|
||||
color="#736E77",
|
||||
size="4",
|
||||
effect="underline",
|
||||
is_external=True,
|
||||
padding="0.5em",
|
||||
),
|
||||
rx.spacer(
|
||||
min_height="15em"
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue