Spaces:
Sleeping
Sleeping
| """ | |
| 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.") | |