-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (99 loc) · 4.65 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#f8fafc">
<title>Prompt Engine - Transform Your Prompts</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
<div class="container">
<header>
<div class="feature-buttons">
<button id="darkModeBtn" class="feature-btn" title="Toggle Dark Mode" aria-label="Toggle Dark Mode">
<i class="fas fa-moon"></i>
</button>
</div>
<h1>Prompt Engine</h1>
<p>Transform your prompts with best practices</p>
</header>
<main>
<div class="prompt-container">
<div class="input-section">
<h2>Original Prompt</h2>
<textarea
id="originalPrompt"
placeholder="Enter your prompt here..."
aria-label="Enter your original prompt"
data-max-length="2000"
></textarea>
<div class="char-counter" id="charCounter">0/2000</div>
<div class="prompt-type-section">
<div class="select-group">
<label for="promptMedium">Medium</label>
<select id="promptMedium" class="form-select" aria-label="Select prompt medium">
<option value="text">Text</option>
<option value="image">Image</option>
</select>
</div>
<div class="select-group">
<label for="promptType">Type</label>
<select id="promptType" class="form-select" aria-label="Select prompt type">
<!-- Dynamically populated based on selected medium -->
</select>
</div>
</div>
<button id="generateBtn" class="primary-btn">
<i class="fas fa-magic"></i> Enhance Prompt
</button>
</div>
<div class="output-section">
<h2>Enhanced Prompt</h2>
<div id="enhancedPrompt" class="enhanced-output" aria-live="polite">
<p class="placeholder">Your enhanced prompt will appear here...</p>
</div>
<div class="actions">
<button id="shareBtn" class="secondary-btn" title="Share Prompt">
<i class="fas fa-share-alt"></i> Share
</button>
<button id="copyBtn" class="secondary-btn" title="Copy to Clipboard">
<i class="fas fa-copy"></i> Copy
</button>
<button id="saveBtn" class="secondary-btn" title="Save Prompt">
<i class="fas fa-save"></i> Save
</button>
</div>
</div>
</div>
<div class="improvements-section">
<h2>Improvements Made</h2>
<ul id="improvementsList" aria-label="List of improvements made to the prompt"></ul>
</div>
</main>
<!-- Footer Container -->
<div id="footer-container"></div>
</div>
<!-- Saved Prompts Viewer -->
<div id="savedPromptsViewer" class="saved-prompts-viewer">
<div class="saved-prompts-content">
<div class="saved-prompts-header">
<h3>Saved Prompts</h3>
<button class="close-viewer-btn" title="Close saved prompts" aria-label="Close saved prompts">
<i class="fas fa-times" aria-hidden="true"></i>
</button>
</div>
<div class="saved-prompts-list"></div>
</div>
</div>
<!-- Scripts -->
<script type="module" src="js/features/uiFeatures.js"></script>
<script type="module" src="js/features/promptTypes.js"></script>
<script type="module" src="js/features/enhancementRules.js"></script>
<script type="module" src="js/features/promptValidator.js"></script>
<script type="module" src="js/features/promptEnhancer.js"></script>
<script type="module" src="js/features/shareFeatures.js"></script>
<script type="module" src="js/main.js"></script>
</body>
</html>