-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
177 lines (157 loc) · 6.27 KB
/
Copy pathindex.html
File metadata and controls
177 lines (157 loc) · 6.27 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Navbar Generator · Inchoa</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Inter font -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="site-header">
<div class="brand">
<img src="inchoa_logo.png" alt="Inchoa Logo" class="logo" />
<div class="brand-text">
<h1 class="title">Navbar Generator</h1>
<p class="subtitle">Clean, customizable, production-ready</p>
</div>
</div>
</header>
<main class="wrap">
<!-- Controls (left) -->
<section class="card controls" aria-label="Navbar settings">
<form id="navbarForm" class="form-grid">
<div class="field">
<label for="transparent">Transparent</label>
<select id="transparent">
<option value="yes">Yes</option>
<option value="no" selected>No</option>
</select>
</div>
<div class="field">
<label for="blurry">Blurry (Glass)</label>
<select id="blurry">
<option value="no" selected>No</option>
<option value="yes">Yes</option>
</select>
</div>
<div class="field">
<label for="colored">Background Colored</label>
<select id="colored">
<option value="no" selected>No</option>
<option value="yes">Yes</option>
</select>
</div>
<div id="colorOptions" class="color-row" style="display:none;">
<div class="field">
<label for="colorPicker">Pick a color</label>
<input type="color" id="colorPicker" value="#6366F1" class="color-swatch" />
</div>
<div class="field">
<label for="colorHex">Or enter hex</label>
<input type="text" id="colorHex" placeholder="#6366F1" />
</div>
</div>
<div class="field">
<label for="bgGradient">Background Gradient</label>
<select id="bgGradient">
<option value="none" selected>None</option>
<option value="left">Fade to Left</option>
<option value="right">Fade to Right</option>
<option value="aura">Aura (Radial)</option>
</select>
</div>
<div class="field">
<label for="fontColor">Font Color</label>
<input type="color" id="fontColor" value="#111111" class="color-swatch" />
</div>
<div class="field">
<label for="fontFamily">Font Family</label>
<select id="fontFamily">
<option value="Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif" selected>Inter (Default)</option>
<option value="Arial, sans-serif">Arial</option>
<option value="Georgia, serif">Georgia</option>
<option value="'Courier New', monospace">Courier New</option>
<option value="Roboto, sans-serif">Roboto</option>
<option value="Tahoma, sans-serif">Tahoma</option>
<option value="Verdana, sans-serif">Verdana</option>
</select>
</div>
<div class="field">
<label for="fontSize">Font Size</label>
<input type="text" id="fontSize" placeholder="16px" />
</div>
<div class="field">
<label for="itemGap">Item Spacing</label>
<input type="text" id="itemGap" placeholder="2rem" />
</div>
<div class="field span-2">
<label for="titles">Menu Items (comma-separated)</label>
<input type="text" id="titles" placeholder="Home,About,Contact" />
</div>
<div class="field">
<label for="shape">Shape</label>
<select id="shape">
<option value="rectangle" selected>Rectangle</option>
<option value="rounded">Rounded</option>
<option value="cylinder">Pill</option>
</select>
</div>
<div class="field">
<label for="sticky">Sticky</label>
<select id="sticky">
<option value="no" selected>No</option>
<option value="yes">Yes</option>
</select>
</div>
<div class="field">
<label for="width">Width</label>
<input type="text" id="width" placeholder="100%" />
</div>
<div class="field">
<label for="padding">Side Padding</label>
<input type="text" id="padding" placeholder="20px" />
</div>
</form>
</section>
<!-- Preview + Outputs (right) -->
<section class="stack">
<div class="card preview-card">
<div class="card-head" style="overflow: visible;">
<h2>Live Preview</h2>
</div>
<div id="navbarPreview" class="preview-area"></div>
</div>
<div class="card code-card">
<div class="card-head" style="overflow: visible;">
<h2>Generated HTML</h2>
<button class="icon-btn" onclick="copyCode('htmlOutput', this)" aria-label="Copy HTML">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2"></rect>
<rect x="3" y="3" width="13" height="13" rx="2"></rect>
</svg>
</button>
</div>
<pre id="htmlOutput"></pre>
</div>
<div class="card code-card">
<div class="card-head" style="overflow: visible;">
<h2>Generated CSS</h2>
<button class="icon-btn" onclick="copyCode('cssOutput', this)" aria-label="Copy CSS">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2"></rect>
<rect x="3" y="3" width="13" height="13" rx="2"></rect>
</svg>
</button>
</div>
<pre id="cssOutput"></pre>
</div>
</section>
</main>
<footer class="site-footer">
<p>Made by <strong>Rozaline Kozly</strong></p>
</footer>
<script src="script.js" defer></script>
</body>
</html>