Skip to content

Commit 3aa5d8e

Browse files
committed
fix(site): restore scrolling so the landing demo stays reachable
The landing page demo (asciinema, 185x69 cast) fills the container width (~900px) and renders ~780px tall, but body overflow: hidden blocked all scrolling, so the bottom of the demo was permanently clipped and unreachable. Switch the landing body to overflow-x: hidden so vertical scrolling is available again and the full demo is always reachable.
1 parent 0fb93d8 commit 3aa5d8e

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

site/assets/scss/_styles_project.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
justify-content: center;
3232
align-items: center;
3333
position: relative;
34-
overflow: hidden;
34+
overflow-x: hidden;
35+
3536
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
3637

3738
// Ambient mesh network grid background
@@ -261,6 +262,14 @@
261262
}
262263
}
263264

265+
#demo-player {
266+
width: 100%;
267+
border-radius: 12px;
268+
overflow: hidden;
269+
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
270+
border: 1px solid rgba(0, 240, 255, 0.15);
271+
}
272+
264273
// Terminal Window Styling
265274
.terminal-window {
266275
background: rgba(7, 19, 30, 0.6);
@@ -650,4 +659,4 @@
650659
}
651660
}
652661
}
653-
}
662+
}

site/layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="landing-title">SAM</h1>
2828
<!-- Bottom Row: Demo Player -->
2929
<link rel="stylesheet" href="{{ "vendor/asciinema-player/asciinema-player.css" | relURL }}">
3030
<div style="width: 100%;">
31-
<div id="demo-player" data-cast="{{ "demo.cast" | relURL }}" style="border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.15);"></div>
31+
<div id="demo-player" data-cast="{{ "demo.cast" | relURL }}"></div>
3232
</div>
3333
<script src="{{ "vendor/asciinema-player/asciinema-player.min.js" | relURL }}"></script>
3434
<script>
@@ -39,7 +39,7 @@ <h1 class="landing-title">SAM</h1>
3939
autoPlay: true,
4040
loop: true,
4141
preload: true,
42-
fit: 'width'
42+
fit: 'width' // fill the container width; height follows the terminal
4343
});
4444
</script>
4545
</div>

0 commit comments

Comments
 (0)