Skip to content

Commit b42aaaf

Browse files
authored
Merge pull request #280 from roushou/fix/landing-demo-overflow
fix(site): restore scrolling so the landing demo stays reachable
2 parents 3e0061d + 4026d70 commit b42aaaf

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

site/assets/scss/_styles_project.scss

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

3739
// Ambient mesh network grid background
@@ -261,6 +263,14 @@
261263
}
262264
}
263265

266+
#demo-player {
267+
width: 100%;
268+
border-radius: 12px;
269+
overflow: hidden;
270+
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
271+
border: 1px solid rgba(0, 240, 255, 0.15);
272+
}
273+
264274
// Terminal Window Styling
265275
.terminal-window {
266276
background: rgba(7, 19, 30, 0.6);
@@ -650,4 +660,4 @@
650660
}
651661
}
652662
}
653-
}
663+
}

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)