Spaces:
Paused
Paused
Create Xoxo
Browse files
Xoxo
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# Configuration du thème "Crédit Mutuel"
|
| 4 |
+
theme = gr.themes.Soft(
|
| 5 |
+
primary_hue="green",
|
| 6 |
+
font=gr.themes.GoogleFont("Open Sans")
|
| 7 |
+
).set(
|
| 8 |
+
button_primary_background_fill="*primary_200",
|
| 9 |
+
button_primary_text_color="black"
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
with gr.Blocks(theme=theme) as demo:
|
| 13 |
+
# ------ En-tête avec logo et titre ------
|
| 14 |
+
with gr.Row():
|
| 15 |
+
# Logo (remplace "IMG_1601.png" si besoin)
|
| 16 |
+
gr.Image("IMG_1601.png",
|
| 17 |
+
show_label=False,
|
| 18 |
+
width=200,
|
| 19 |
+
elem_classes="center-logo")
|
| 20 |
+
|
| 21 |
+
# Titre principal
|
| 22 |
+
gr.Markdown("""
|
| 23 |
+
<div style="text-align: center; margin: 20px 0;">
|
| 24 |
+
<h1 style="color: #006B3D; font-weight: 700;">Crédit Mutuel</h1>
|
| 25 |
+
<p style="color: #333;">Votre banque coopérative depuis 1884</p>
|
| 26 |
+
</div>
|
| 27 |
+
""")
|
| 28 |
+
|
| 29 |
+
# ------ Zone de contenu principale ------
|
| 30 |
+
with gr.Row():
|
| 31 |
+
with gr.Column():
|
| 32 |
+
# Exemple de composant 1
|
| 33 |
+
gr.Number(label="Montant du prêt (€)", interactive=True)
|
| 34 |
+
gr.Dropdown(["Immobilier", "Voiture", "Projet perso"], label="Type de prêt")
|
| 35 |
+
|
| 36 |
+
with gr.Column():
|
| 37 |
+
# Exemple de composant 2
|
| 38 |
+
gr.Slider(1, 30, label="Durée (années)")
|
| 39 |
+
gr.Button("Simuler le prêt", variant="primary")
|
| 40 |
+
|
| 41 |
+
# ------ Pied de page ------
|
| 42 |
+
gr.Markdown("""
|
| 43 |
+
<hr>
|
| 44 |
+
<div style="text-align: center; color: #666; font-size: 0.9em;">
|
| 45 |
+
📞 Contact : 09 86 76 08 10 | 📍 Paris, France
|
| 46 |
+
</div>
|
| 47 |
+
""")
|
| 48 |
+
|
| 49 |
+
# Lance l'application
|
| 50 |
+
demo.launch()
|