Spaces:
Sleeping
Sleeping
Claude commited on
Commit ·
e2cbbd9
1
Parent(s): 67f1922
Simplify AC3 prompt: generate ONE home page in 4 different visual versions
Browse files
agents/flutter_screen_generator.py
CHANGED
|
@@ -608,53 +608,52 @@ JSON Plan:"""
|
|
| 608 |
cards_list = card_suggestions.get(app_type, card_suggestions["generic"])
|
| 609 |
cards_str = ", ".join(cards_list)
|
| 610 |
|
| 611 |
-
prompt = f"""
|
|
|
|
| 612 |
|
| 613 |
-
|
| 614 |
-
-
|
|
|
|
| 615 |
- Style: {theme_summary['style']}
|
| 616 |
-
- Primary Color: {theme_summary['primary']}
|
| 617 |
-
- Secondary Color: {theme_summary['secondary']}
|
| 618 |
|
| 619 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 620 |
|
| 621 |
-
BACKGROUNDS
|
| 622 |
{bg_list}
|
| 623 |
|
| 624 |
-
|
| 625 |
-
-
|
| 626 |
-
-
|
| 627 |
-
-
|
| 628 |
-
-
|
| 629 |
-
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
-
|
| 633 |
-
-
|
| 634 |
-
-
|
| 635 |
-
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
-
|
| 640 |
-
-
|
| 641 |
-
-
|
| 642 |
-
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
CARDS for {app_type} app (choose 3-6 per variant based on layout):
|
| 646 |
{cards_str}
|
| 647 |
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
2. Use a DIFFERENT layout_type for each variant (grid_2x2, vertical_list, hero_card, timeline, featured_grid)
|
| 654 |
-
3. Vary the complexity: mix simple, medium, and complex backgrounds
|
| 655 |
-
4. Match background category to use case (gradients=clean, waves=dynamic, geometric=modern, organic=creative, patterns=structured, abstract=premium)
|
| 656 |
-
5. **SELECT 3-6 CARDS** from the list above based on layout_type (grid needs 4-6, hero needs 3-4, timeline needs 4-5)
|
| 657 |
-
6. **PERSONALIZE TEXT** content based on app_type (e.g., fitness="Workout Tracker", banking="Account Overview")
|
| 658 |
|
| 659 |
Output ONLY valid JSON:
|
| 660 |
{{
|
|
|
|
| 608 |
cards_list = card_suggestions.get(app_type, card_suggestions["generic"])
|
| 609 |
cards_str = ", ".join(cards_list)
|
| 610 |
|
| 611 |
+
prompt = f"""Genera UNA home page per l'app {app_type}.
|
| 612 |
+
Crea 4 VERSIONI DIVERSE della stessa home page, ognuna con uno stile visivo differente.
|
| 613 |
|
| 614 |
+
PALETTE COLORI:
|
| 615 |
+
- Primary: {theme_summary['primary']}
|
| 616 |
+
- Secondary: {theme_summary['secondary']}
|
| 617 |
- Style: {theme_summary['style']}
|
|
|
|
|
|
|
| 618 |
|
| 619 |
+
TASK: Crea 4 versioni della home page dell'app {app_type}, ognuna con:
|
| 620 |
+
- Layout diverso (grid, lista, hero card, timeline)
|
| 621 |
+
- Background diverso (scegli tra i 30 disponibili sotto)
|
| 622 |
+
- Header diverso (minimal, stats, tabs, etc)
|
| 623 |
+
- Footer diverso (floating fab, animated pills, etc)
|
| 624 |
+
- Cards diverse (3-6 cards per versione)
|
| 625 |
|
| 626 |
+
BACKGROUNDS disponibili:
|
| 627 |
{bg_list}
|
| 628 |
|
| 629 |
+
LAYOUTS disponibili:
|
| 630 |
+
- grid_2x2: Griglia 2 colonne per metriche/dashboard
|
| 631 |
+
- vertical_list: Lista verticale scrollabile classica
|
| 632 |
+
- hero_card: UNA card grande in alto + 2-3 card piccole sotto
|
| 633 |
+
- timeline: Timeline verticale per eventi cronologici
|
| 634 |
+
- featured_grid: UN elemento grande + griglia di 4-6 elementi piccoli
|
| 635 |
+
|
| 636 |
+
HEADERS disponibili:
|
| 637 |
+
- minimal: Solo titolo
|
| 638 |
+
- avatar_search: Avatar + barra ricerca
|
| 639 |
+
- tabs: Tab orizzontali
|
| 640 |
+
- stats_header: Mostra metriche chiave
|
| 641 |
+
|
| 642 |
+
FOOTERS disponibili:
|
| 643 |
+
- minimal_icons: Solo icone
|
| 644 |
+
- floating_fab: Bottone FAB centrale
|
| 645 |
+
- animated_pills: Animazioni smooth
|
| 646 |
+
- classic_expanded: Icone + etichette
|
| 647 |
+
- gesture_bar: Barra swipe iOS
|
| 648 |
+
|
| 649 |
+
CARDS per app {app_type}:
|
|
|
|
| 650 |
{cards_str}
|
| 651 |
|
| 652 |
+
REGOLE:
|
| 653 |
+
1. Ogni versione deve avere layout_type DIVERSO
|
| 654 |
+
2. Ogni versione deve avere background DIVERSO
|
| 655 |
+
3. Scegli 3-6 cards dalla lista sopra in base al layout
|
| 656 |
+
4. Personalizza i testi per l'app {app_type}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 657 |
|
| 658 |
Output ONLY valid JSON:
|
| 659 |
{{
|