Skip to content

Commit eae1019

Browse files
author
TechStack Global
committed
style: reposition deck arrows to left/right on desktop and hide number
1 parent 7d92333 commit eae1019

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

index.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h1>Make Smarter <br /><span class="gradient-text">Tech Decisions.</span>
108108

109109
</div>
110110
<!-- Pull-Out Animated Deck -->
111-
<div class="hero-visual">
111+
<div class="hero-visual" style="position: relative;">
112112
<style>
113113
.deck-container {
114114
position: relative;
@@ -246,9 +246,24 @@ <h1>Make Smarter <br /><span class="gradient-text">Tech Decisions.</span>
246246
margin: 0.5rem auto 0;
247247
position: relative;
248248
z-index: 10;
249+
pointer-events: none;
250+
}
251+
252+
@media (min-width: 768px) {
253+
.deck-controls {
254+
position: absolute;
255+
top: 50%;
256+
left: 50%;
257+
transform: translate(-50%, -50%);
258+
width: calc(100% + 120px);
259+
max-width: none;
260+
justify-content: space-between;
261+
margin: 0;
262+
}
249263
}
250264

251265
.deck-controls button {
266+
pointer-events: auto;
252267
background: rgba(15, 23, 42, 0.8);
253268
backdrop-filter: blur(10px);
254269
border: 1px solid var(--border-glass);
@@ -324,8 +339,7 @@ <h3>Alienware AW3423DWF</h3>
324339

325340
<div class="deck-controls">
326341
<button id="deckPrev" aria-label="Previous Review"><i class="fa-solid fa-arrow-left"></i></button>
327-
<span style="font-size: 0.9rem; color: var(--text-muted); font-weight: 600; letter-spacing: 1px;"
328-
id="deckCount">1 / 3</span>
342+
<span style="display: none;" id="deckCount">1 / 3</span>
329343
<button id="deckNext" aria-label="Next Review"><i class="fa-solid fa-arrow-right"></i></button>
330344
</div>
331345

0 commit comments

Comments
 (0)