mirror of
https://github.com/Death916/deathsite.git
synced 2026-04-10 03:04:41 -07:00
added twitch embed
This commit is contained in:
parent
24eb741c3d
commit
c2976b3248
1 changed files with 7 additions and 7 deletions
|
|
@ -8,6 +8,8 @@ import datetime
|
||||||
TWITCH_USERNAME = "Death916"
|
TWITCH_USERNAME = "Death916"
|
||||||
YOUTUBE_URL = "https://www.youtube.com/@916HS"
|
YOUTUBE_URL = "https://www.youtube.com/@916HS"
|
||||||
YOUTUBE_EMBED_URL = "https://www.youtube.com/embed/D43Ks8fxoz4"
|
YOUTUBE_EMBED_URL = "https://www.youtube.com/embed/D43Ks8fxoz4"
|
||||||
|
TWITCH_CHAT_URL = f"https://www.twitch.tv/embed/{TWITCH_USERNAME}/chat?parent=localhost&muted=true"
|
||||||
|
TWITCH_EMBED_URL = f"https://player.twitch.tv/?video=2424240989&parent=localhost&autoplay=false"
|
||||||
|
|
||||||
|
|
||||||
# styles
|
# styles
|
||||||
|
|
@ -136,13 +138,11 @@ def home():
|
||||||
"""
|
"""
|
||||||
),
|
),
|
||||||
rx.text("Latest Stream: ", color="#ffffff"),
|
rx.text("Latest Stream: ", color="#ffffff"),
|
||||||
rx.link(
|
rx.html(
|
||||||
"Twitch Stream",
|
f"""
|
||||||
href=f"https://www.twitch.tv/death916/",
|
<iframe width="350" height="200" src="{TWITCH_EMBED_URL}" title="Twitch video player" frameborder="0" autoplay="false" allowfullscreen></iframe>
|
||||||
color="#6f42c1", # Purple color
|
|
||||||
font_size="18px", # Set font size to 12px
|
"""
|
||||||
hover_color="var(--accent-8)", # Add hover color effect
|
|
||||||
is_external=True,
|
|
||||||
),
|
),
|
||||||
align_items="start",
|
align_items="start",
|
||||||
spacing="2",
|
spacing="2",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue