Skip to content

Commit 4c690f1

Browse files
Ankit KhareAnkit Khare
authored andcommitted
Fix gallery video player spacing to prevent nav overlap
- Adjusted gallery section padding to properly clear fixed navigation - Video player now has proper breathing room from header - Top borders of player are fully visible
1 parent 247a31e commit 4c690f1

3 files changed

Lines changed: 40 additions & 30 deletions

File tree

assets/css/matrix-theme.css

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ body > * {
675675
justify-content: center;
676676
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
677677
pointer-events: none;
678-
padding: 120px 20px 40px;
678+
padding: 140px 20px 40px;
679679
box-sizing: border-box;
680680
overflow-y: auto;
681681
}
@@ -691,9 +691,8 @@ body > * {
691691

692692
/* Video Container */
693693
.video-container {
694-
width: 90%;
695-
max-width: 1400px;
696-
max-height: calc(100vh - 180px);
694+
width: min(95vw, 1100px);
695+
max-height: calc(100vh - 160px);
697696
background: linear-gradient(135deg, rgba(0, 0, 40, 0.98), rgba(20, 0, 60, 0.98));
698697
border: 3px solid var(--color-electric-blue);
699698
border-radius: 20px;
@@ -779,7 +778,9 @@ body > * {
779778
.video-wrapper {
780779
position: relative;
781780
width: 100%;
782-
height: 650px; /* Fixed height for better control */
781+
aspect-ratio: 16 / 9;
782+
height: auto;
783+
max-height: calc(100vh - 240px);
783784
overflow: hidden;
784785
border-radius: 15px 15px 0 0;
785786
background: #000;
@@ -799,7 +800,7 @@ body > * {
799800

800801
/* Video Info Section */
801802
.video-info {
802-
padding: 30px;
803+
padding: 10px 18px 14px;
803804
background: linear-gradient(135deg, rgba(0, 0, 30, 0.9), rgba(20, 0, 50, 0.9));
804805
border-top: 2px solid var(--color-electric-cyan);
805806
border-radius: 0 0 15px 15px;
@@ -809,7 +810,7 @@ body > * {
809810
color: var(--color-electric-cyan);
810811
font-family: var(--font-mono);
811812
font-size: 1.8rem;
812-
margin-bottom: 10px;
813+
margin-bottom: 6px;
813814
text-transform: uppercase;
814815
letter-spacing: 0.1em;
815816
text-shadow:
@@ -818,10 +819,12 @@ body > * {
818819
}
819820

820821
.video-info p {
821-
color: var(--color-electric-white);
822+
color: #f8fafc;
822823
font-family: var(--font-mono);
823824
font-size: 1rem;
824825
opacity: 0.9;
826+
margin-top: 0;
827+
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
825828
}
826829

827830
/* Loading Animation */
@@ -847,13 +850,13 @@ body > * {
847850
/* Responsive Design */
848851
@media (max-width: 1400px) {
849852
.video-wrapper {
850-
height: 550px;
853+
max-height: calc(100vh - 230px);
851854
}
852855
}
853856

854857
@media (max-width: 1200px) {
855858
.video-wrapper {
856-
height: 500px;
859+
max-height: calc(100vh - 220px);
857860
}
858861
}
859862

@@ -865,7 +868,7 @@ body > * {
865868
}
866869

867870
.video-wrapper {
868-
height: 400px;
871+
max-height: calc(100vh - 200px);
869872
}
870873

871874
.video-info h3 {
@@ -887,6 +890,6 @@ body > * {
887890

888891
@media (max-width: 480px) {
889892
.video-wrapper {
890-
height: 300px;
893+
max-height: calc(100vh - 180px);
891894
}
892895
}

assets/css/style.css

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,9 +1531,9 @@ body.nav-open {
15311531
height: 100%;
15321532
background: rgba(0, 0, 0, 0.95);
15331533
z-index: 9999;
1534-
align-items: center;
1534+
align-items: flex-start;
15351535
justify-content: center;
1536-
padding: 120px 20px 40px;
1536+
padding: 140px 20px 40px;
15371537
box-sizing: border-box;
15381538
overflow-y: auto;
15391539
}
@@ -1544,18 +1544,24 @@ body.nav-open {
15441544

15451545
.video-showcase .video-container {
15461546
position: relative;
1547-
width: 100%;
1548-
max-width: 1600px;
1549-
height: 1400px;
1547+
width: min(1100px, 95vw);
1548+
max-height: calc(100vh - 160px);
1549+
height: auto;
1550+
min-height: 0;
1551+
padding: 0;
15501552
background: var(--color-dark);
15511553
border-radius: var(--radius-lg);
15521554
overflow: hidden;
1555+
display: flex;
1556+
flex-direction: column;
15531557
}
15541558

15551559
.video-showcase .video-wrapper {
15561560
position: relative;
15571561
width: 100%;
1558-
height: calc(100% - 100px);
1562+
aspect-ratio: 16 / 9;
1563+
height: auto;
1564+
max-height: calc(100vh - 240px);
15591565
}
15601566

15611567
.video-showcase .video-wrapper iframe {
@@ -1565,24 +1571,26 @@ body.nav-open {
15651571
}
15661572

15671573
.video-showcase .video-info {
1568-
padding: var(--spacing-lg);
1574+
padding: 8px 16px 12px;
15691575
text-align: center;
15701576
background: var(--color-dark);
15711577
}
15721578

15731579
.video-showcase .video-info h3 {
15741580
color: var(--color-blue);
1575-
margin-bottom: var(--spacing-sm);
1581+
margin-bottom: 4px;
15761582
}
15771583

15781584
.video-showcase .video-info p {
1579-
color: var(--color-gray-light);
1585+
color: #f8fafc;
1586+
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
1587+
margin-top: 0;
15801588
}
15811589

15821590
.close-video {
15831591
position: absolute;
1584-
top: 80px;
1585-
right: 80px;
1592+
top: 20px;
1593+
right: 20px;
15861594
background: rgba(255, 255, 255, 0.1);
15871595
border: 2px solid white;
15881596
color: white;

index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<meta property="twitter:description" content="Explore 48 groundbreaking AI solutions from the Financial AI Hackathon Championship 2025. Featuring 1,000+ developers from around the world building production-ready solutions for loan underwriting, fraud detection, compliance automation, and intelligent document processing using LandingAI's Agentic Document Extraction technology.">
2727
<meta property="twitter:image" content="https://landing-ai.github.io/ade-fintech/assets/images/og-preview.jpg">
2828

29-
<link rel="stylesheet" href="assets/css/style.css?v=52">
30-
<link rel="stylesheet" href="assets/css/matrix-theme.css?v=52">
29+
<link rel="stylesheet" href="assets/css/style.css?v=54">
30+
<link rel="stylesheet" href="assets/css/matrix-theme.css?v=54">
3131
<link rel="preconnect" href="https://fonts.googleapis.com">
3232
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
3333
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
@@ -90,7 +90,6 @@ <h2 class="hero-subtitle">Community-Built Fintech Solutions Powered by ADE</h2>
9090
</div>
9191
<div class="video-info">
9292
<h3>Financial AI Hackathon Championship 2025 - Nov 15, New York</h3>
93-
<p>Experience the innovation, excitement, and breakthrough AI solutions from the championship</p>
9493
</div>
9594
</div>
9695
</div>
@@ -167,9 +166,9 @@ <h3 class="about-card-title">Continued Innovation</h3>
167166
<!-- Footer Component -->
168167
<div id="footer-placeholder"></div>
169168

170-
<script src="assets/js/components.js?v=52"></script>
171-
<script src="assets/js/matrix-rain.js?v=52"></script>
172-
<script src="assets/js/main.js?v=52"></script>
173-
<script src="assets/js/video-player.js?v=52"></script>
169+
<script src="assets/js/components.js?v=54"></script>
170+
<script src="assets/js/matrix-rain.js?v=54"></script>
171+
<script src="assets/js/main.js?v=54"></script>
172+
<script src="assets/js/video-player.js?v=54"></script>
174173
</body>
175174
</html>

0 commit comments

Comments
 (0)