diff options
author | akshay | 2025-04-11 15:15:36 +0530 |
---|---|---|
committer | GitHub | 2025-04-11 15:15:36 +0530 |
commit | 58829494cc717d626bc871b1de4de8e086297fe1 (patch) | |
tree | 65318c084aad55997f38b53b3a13e1e0186f067d | |
parent | 66cc02417df38b4cdf269fec689ad4db5c41dcde (diff) | |
download | scilab_case_study_hackathon-58829494cc717d626bc871b1de4de8e086297fe1.tar.gz scilab_case_study_hackathon-58829494cc717d626bc871b1de4de8e086297fe1.tar.bz2 scilab_case_study_hackathon-58829494cc717d626bc871b1de4de8e086297fe1.zip |
Update results.astro
-rw-r--r-- | src/pages/results.astro | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/pages/results.astro b/src/pages/results.astro index 9d4bc63..b3a8c6a 100644 --- a/src/pages/results.astro +++ b/src/pages/results.astro @@ -11,7 +11,7 @@ import curtnRight from '../assets/img/curtn-right.png'; <div class="curtain right-curtain"></div> - + <div class="page-content hidden" id="main-content"> <h1 class="text-center section-title pl-4" id="results">Results</h1> <!--<h1>The Hackathon is still ongoing</h1>--> @@ -144,10 +144,13 @@ import curtnRight from '../assets/img/curtn-right.png'; </div> - +</div> </Layout> <style> +.hidden { + display: none; +} table{ box-shadow: none; background-color: white; @@ -266,16 +269,20 @@ tr, th,td{ <script> - window.addEventListener('load', () => { + window.addEventListener('load', () => { const leftCurtain = document.querySelector('.left-curtain'); const rightCurtain = document.querySelector('.right-curtain'); + const content = document.getElementById('main-content'); - - if (leftCurtain && rightCurtain) { + if (leftCurtain && rightCurtain && content) { leftCurtain.classList.add('open-left'); rightCurtain.classList.add('open-right'); - } + // Show the content after the curtain animation (4.5s) + setTimeout(() => { + content.classList.remove('hidden'); + }, 4500); + } }); |