Skip to content

Commit

Permalink
Updated FAQ pantry item
Browse files Browse the repository at this point in the history
  • Loading branch information
LineIndent committed Dec 27, 2024
1 parent eb43519 commit cb73163
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions buridan_ui/pantry/faq/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,29 @@


def txt(string: str, shade: int) -> rx.Component:
return rx.text(string, weight="bold", color=rx.color("gray", shade))
return rx.text(string, weight="bold", color=rx.color("gray", shade), size="1")


def question_and_answer(question: str, answer: str):
return rx.hstack(
rx.vstack(
rx.box(rx.icon(tag="circle-help", size=15), padding="5px 0px"),
align="start",
height="100%",
),
rx.vstack(
txt(question, 11),
txt(answer, 12),
align="start",
spacing="1",
spacing="2",
),
width="100%",
align="start",
padding="16px 0px",
border_top=f"0.75px solid {rx.color('slate', 10)}",
border_top=f"0.75px solid {rx.color('gray', 4)}",
)


def faq_v1():
return rx.vstack(
rx.heading(
"Frequently Asked Questions",
size="5",
size="4",
weight="bold",
align="center",
),
Expand Down

0 comments on commit cb73163

Please sign in to comment.