reframe / ui_components /landing.py
macayaven's picture
feat: initial implementation of the re-frame Cognitive Reframing Assistant, including core functionality, UI components, and localization support. Added .gitignore, configuration files, and initial tests.
27fd523
Raw
History Blame
1.24 kB
"""
Landing page component for re-frame
"""
import gradio as gr
def create_landing_tab(translations):
"""Create the landing/welcome tab content"""
with gr.Column():
# Hero section
gr.Markdown(f"## {translations['subtitle']}")
gr.Markdown(translations['description'])
# How it works section
gr.Markdown(f"### {translations['how_it_works']}")
with gr.Row():
with gr.Column():
gr.Markdown(f"**1. {translations['step1']}**")
gr.Markdown(translations['step1_desc'])
with gr.Column():
gr.Markdown(f"**2. {translations['step2']}**")
gr.Markdown(translations['step2_desc'])
with gr.Column():
gr.Markdown(f"**3. {translations['step3']}**")
gr.Markdown(translations['step3_desc'])
# Disclaimer
with gr.Row():
gr.Markdown(f"ℹ️ **{translations['disclaimer']}**")
with gr.Row():
gr.Markdown(f"🔒 **{translations['privacy']}**")
# Call to action
gr.Markdown("---")
gr.Markdown("### Ready to start?")
gr.Markdown("Navigate to the **Chat** tab above to begin your session.")