Skip to content

Commit 0a6e9b3

Browse files
Animate terminal commands
1 parent be0d1d3 commit 0a6e9b3

5 files changed

Lines changed: 274 additions & 207 deletions

File tree

css/style.css

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,32 @@ code {
326326
}
327327

328328
.terminal-img {
329-
width: 100%;
330-
display: block;
331-
opacity: 0.9;
329+
display: none;
330+
/* Hide if still present */
331+
}
332+
333+
.terminal-content {
334+
height: 320px;
335+
padding: 20px;
336+
font-family: 'JetBrains Mono', monospace;
337+
font-size: 14px;
338+
line-height: 1.6;
339+
color: #e5e7eb;
340+
overflow-y: hidden;
341+
position: relative;
342+
background: #09090b;
343+
}
344+
345+
.terminal-line {
346+
margin-bottom: 4px;
347+
display: flex;
348+
align-items: center;
349+
}
350+
351+
.prompt {
352+
color: var(--primary-accent);
353+
margin-right: 8px;
354+
font-weight: 700;
332355
}
333356

334357
.demo-caption {

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ <h1>Luca</h1>
9595
<div class="terminal-title">Terminal — luca install</div>
9696
</div>
9797
<div class="terminal-body">
98-
<img src="images/terminal-run.png"
99-
alt="Luca terminal demo showing simple installation and usage" class="terminal-img">
98+
<div class="terminal-content" id="terminal-content"></div>
10099
</div>
101100
</div>
102101
<p class="demo-caption">See Luca in action - simple installation and immediate tool availability</p>
@@ -362,6 +361,7 @@ <h2>System Requirements</h2>
362361
</footer>
363362

364363
<script src="js/main.js"></script>
364+
<script src="js/terminal-animation.js"></script>
365365
<script>
366366
function copyInstallCommand() {
367367
const command = document.querySelector('.install-command code').textContent;

js/style-switcher.js

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)