Skip to content

Commit 85cc9d9

Browse files
Animate terminal commands
1 parent be0d1d3 commit 85cc9d9

5 files changed

Lines changed: 280 additions & 213 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: 8 additions & 8 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>
@@ -144,10 +143,10 @@ <h2>Quick Start</h2>
144143
<p class="example-description">Project-specific tool versions work automatically:</p>
145144
<pre><code># In project-1 directory
146145
$ tuist version
147-
4.78.0</code></pre>
146+
4.80.0</code></pre>
148147
<pre><code># In project-2 directory
149148
$ tuist version
150-
4.67.0</code></pre>
149+
4.78.0</code></pre>
151150
</div>
152151
</div>
153152

@@ -161,11 +160,11 @@ <h2>Lucafile</h2>
161160
<p class="example-description">Create a <code>Lucafile</code> in your project directory:</p>
162161
<pre><code>tools:
163162
- name: SwiftLint
164-
version: 0.53.0
165-
url: https://github.com/realm/SwiftLint/releases/download/0.53.0/portable_swiftlint.zip
163+
version: 0.62.0
164+
url: https://github.com/realm/SwiftLint/releases/download/0.62.0/portable_swiftlint.zip
166165
- name: Tuist
167-
version: 4.78.0
168-
url: https://github.com/tuist/tuist/releases/download/4.78.0/tuist.zip</code></pre>
166+
version: 4.80.0
167+
url: https://github.com/tuist/tuist/releases/download/4.80.0/tuist.zip</code></pre>
169168
</div>
170169

171170
<div class="example card">
@@ -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)