Select Text read_text.html
index_prompt_tones.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prompt Generator</title>
</head>
<style>
/* Add your styles here */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
h1 {
text-align: center;
color: #333;
}
p {
text-align: center;
color: #333;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
text-align: center;
}
li {
background-color: #fff;
padding: 10px;
margin: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
form {
text-align: center;
}
input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-right: 10px;
}
button {
padding: 10px 20px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #555;
}
h2 {
text-align: center;
color: #333;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
a {
margin: 10px;
margin-left: auto;
margin-right: auto;
text-decoration: none;
color: white;
background-color: red;
padding: 5px 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
</style>
<body>
<h1>Prompt Generator</h1>
<p>Generate a prompt for your next creative project!</p>
<p><a href="/">Home</a></p>
<p>Audio explaining how the Prompt Generator works.</p>
<center><audio controls>
<source src="static/assets/Fprompt_narration.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio></center><br /><br />
<div class="container">
<form method="POST">
<input type="text" name="prompt_text" required placeholder="Enter your prompt here">
<label for="tone">Choose a tone:</label>
<select name="tone">
<option value="happy" {% if selected_tone == 'happy' %} selected {% endif %}>Happy</option>
<option value="sad" {% if selected_tone == 'sad' %} selected {% endif %}>Sad</option>
<option value="bright" {% if selected_tone == 'bright' %} selected {% endif %}>Bright</option>
<option value="dark" {% if selected_tone == 'dark' %} selected {% endif %}>Dark</option>
</select>
<button type="submit">Add Prompt</button>
<!-- Add a button to generate a new prompt --><hr/>
<a href="/mk_prompt">Generate New Prompt</a> <a href="/" class="button">HOME</a>
</form>
</div>
<h2>Generated Prompts</h2>
<div class="container">
{{ top_text }}
{% for prompt in random_prompt_selection %}
{{ prompt }},
{% endfor %}
{% for prompt in generated_prompts %}
{{ prompt }}
{% endfor %}
Bottom Caption: {{ bottom_text }}
</div>
<div class="container">
<h2>Recently Added Prompts</h2>
{{ text }}
</div>
</body>
</html>
Back to file list