From 4ded7526ebc6e13ff64452a901b83d41aba10b64 Mon Sep 17 00:00:00 2001 From: Axel Peytavin Date: Thu, 8 Feb 2024 15:02:08 -0800 Subject: [PATCH 1/3] Refactor persona buttons and form layout --- natural_frontend/templates/queryForm.html | 95 ++++++++++++++++------- 1 file changed, 67 insertions(+), 28 deletions(-) diff --git a/natural_frontend/templates/queryForm.html b/natural_frontend/templates/queryForm.html index 02ff079..adb5f50 100644 --- a/natural_frontend/templates/queryForm.html +++ b/natural_frontend/templates/queryForm.html @@ -95,9 +95,9 @@ max-width: 800px; margin: 0 auto; } - .persona-buttons button { + .persona-buttons-container button { margin: 5px; - padding: 10px; + padding: 10px 20px; border-radius: 5px; border: none; background-color: #f0f0f0; /* A neutral color for non-selected buttons */ @@ -105,13 +105,13 @@ transition: background-color 0.3s; background-image: none; } - .persona-buttons button.active { + .persona-buttons-container button.active { background-color: #a1eafb; /* A highlighted color for the active/selected button */ } - .persona-buttons { + .persona-buttons-container { margin-bottom: 20px; } - .persona-buttons h2 { + .persona-buttons-container h2 { margin-bottom: 5px; } .generate-btn { @@ -165,9 +165,33 @@ flex-direction: row; align-items: center; justify-content: center; + } + + .persona-buttons-container { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + justify-content: center; margin-bottom: 20px; } + .form-container { + width: 600px; + display: flex; + flex-direction: column; + align-items: center; + } + + .form-container h2 { + margin-bottom: 20px; + } + + .persona-buttons-container button.active { + background-color: #a1eafb; /* Highlight color for the active/selected button */ + color: #333; /* Text color for the active/selected button */ + } + @keyframes spin { 0% { transform: rotate(0deg); @@ -188,7 +212,7 @@ -
+

Natural Frontend

-

Pick your persona for your API experience, we'll handle the rest!

- +

Who are you?

+
+ {% for persona in potential_personas %} + + {% endfor %} + +
- +
-
-

Potential Personas for this API

- {% for persona in potential_personas %} - - {% endfor %} -