Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions clock/clock/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Any

import reflex as rx
import reflex_chakra as rc
from reflex.components.radix.themes import theme

import pytz
Expand Down Expand Up @@ -140,13 +139,14 @@ def clock_hand(rotation: str, color: str, length: str) -> rx.Component:

def analog_clock() -> rx.Component:
"""Create the analog clock."""
return rc.circle(
return rx.center(
# The inner circle.
rc.circle(
rx.center(
width="1em",
height="1em",
border_width="thick",
border_color="#43464B",
border_radius="1000px",
z_index=1,
),
# The clock hands.
Expand All @@ -159,6 +159,7 @@ def analog_clock() -> rx.Component:
height="25em",
bg="rgb(250,250,250)",
box_shadow="dark-lg",
border_radius="1000px",
)


Expand Down
3 changes: 1 addition & 2 deletions clock/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
reflex>=0.5.6
pytz==2022.7.1
reflex-chakra>=0.6.0a7
pytz==2022.7.1
Loading