Skip to content

Commit af98fdb

Browse files
Final Production Build: Symmetry Fix & Enhanced Copy Support
1 parent 000f3ad commit af98fdb

3 files changed

Lines changed: 13 additions & 16 deletions

File tree

website/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,15 @@ document.addEventListener('DOMContentLoaded', () => {
217217
const originalText = text.textContent;
218218

219219
// Success State
220-
icon.setAttribute('data-lucide', 'check');
220+
const currentIcon = copyBtn.querySelector('[data-lucide]');
221+
currentIcon.setAttribute('data-lucide', 'check');
221222
text.textContent = 'Copied!';
222223
copyBtn.classList.add('success');
223224
if (window.lucide) lucide.createIcons();
224225

225226
setTimeout(() => {
226-
icon.setAttribute('data-lucide', originalIcon);
227+
const newIcon = copyBtn.querySelector('[data-lucide]');
228+
newIcon.setAttribute('data-lucide', originalIcon);
227229
text.textContent = originalText;
228230
copyBtn.classList.remove('success');
229231
if (window.lucide) lucide.createIcons();

website/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h1>Let's Build the <span class="cyan-text">Future</span></h1>
103103
</div>
104104
</div>
105105

106-
<div class="output-area" style="margin-top: 20px;">
106+
<div class="output-area">
107107
<div class="module-header">
108108
<span>Weave Result</span>
109109
<button id="copyBtn" class="copy-pill">

website/style.css

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ h1, h2, h3, .brand-name {
173173

174174
/* Forms */
175175
.field-group {
176-
margin-bottom: 24px;
176+
margin-bottom: 32px;
177177
}
178178

179179
.field-group label {
@@ -207,7 +207,7 @@ textarea { min-height: 120px; resize: none; }
207207
.btn-group {
208208
display: flex;
209209
gap: 12px;
210-
margin-bottom: 24px;
210+
margin-bottom: 0; /* Margin handled by output-area top margin */
211211
}
212212

213213
.btn {
@@ -239,18 +239,13 @@ textarea { min-height: 120px; resize: none; }
239239
border-color: var(--text-secondary);
240240
}
241241

242-
/* Copy Pill (Portfolio Style) */
243-
.copy-pill {
244-
background: var(--card-bg);
242+
/* Results Area */
243+
.output-area {
244+
margin-top: 32px;
245+
background: var(--input-bg);
245246
border: 1px solid var(--border);
246-
padding: 8px 16px;
247-
border-radius: 99px;
248-
display: flex;
249-
align-items: center;
250-
gap: 10px;
251-
cursor: pointer;
252-
transition: all 0.2s;
253-
color: var(--text-primary);
247+
border-radius: 20px;
248+
padding: 24px;
254249
}
255250

256251
.copy-pill:hover {

0 commit comments

Comments
 (0)