From 9b447c35abf17dfe5288e18ed9252901049b9e71 Mon Sep 17 00:00:00 2001 From: Dhananjay R Date: Wed, 9 Oct 2024 18:22:35 +0530 Subject: [PATCH] updated ui --- about.html | 4 ++-- assets/css/about.css | 4 ++-- assets/css/events.css | 2 +- assets/css/gallery.css | 2 +- assets/css/rex-landing.css | 5 +++++ assets/js/global.js | 10 +++++++--- events.html | 16 ++++++++++------ gallery.html | 4 ++-- index.html | 2 +- 9 files changed, 31 insertions(+), 18 deletions(-) diff --git a/about.html b/about.html index ab5f2fd..4857133 100644 --- a/about.html +++ b/about.html @@ -144,12 +144,12 @@

Address


Ellen Rose James
- Dhananjay R + Dhananjay R

diff --git a/assets/css/about.css b/assets/css/about.css index f1ba22c..8b9010e 100644 --- a/assets/css/about.css +++ b/assets/css/about.css @@ -304,7 +304,7 @@ display: flex; gap: 20px; margin-bottom: 2rem; - margin-left: 3rem; + margin-left: 0rem; } .social-icons a .fab { @@ -504,7 +504,7 @@ } .content { - margin: 0; + margin: auto; padding: 0; } diff --git a/assets/css/events.css b/assets/css/events.css index d7ad93d..f76d97c 100644 --- a/assets/css/events.css +++ b/assets/css/events.css @@ -359,7 +359,7 @@ body::before { display: flex; gap: 20px; margin-bottom: 2rem; - margin-left: 3rem; + margin-left: 0rem; } .social-icons a .fab { diff --git a/assets/css/gallery.css b/assets/css/gallery.css index c159bb6..6e1c942 100644 --- a/assets/css/gallery.css +++ b/assets/css/gallery.css @@ -276,7 +276,7 @@ body::before { display: flex; gap: 20px; margin-bottom: 2rem; - margin-left: 3rem; + margin-left: 0rem; } .social-icons a .fab { diff --git a/assets/css/rex-landing.css b/assets/css/rex-landing.css index 828f381..ae8e023 100644 --- a/assets/css/rex-landing.css +++ b/assets/css/rex-landing.css @@ -35,6 +35,7 @@ body::before { /* Blob and Blur Effects */ #blob { + visibility: visible; background-color: #f0f0e4; height: 24vmax; aspect-ratio: 1; @@ -368,6 +369,10 @@ body::before { .bg-robot { display: none; } + #blob + { + display: none; + } .hero-content { text-align: center; align-items: center; diff --git a/assets/js/global.js b/assets/js/global.js index 25e1f6a..a09f22f 100644 --- a/assets/js/global.js +++ b/assets/js/global.js @@ -2,14 +2,18 @@ const menuButton = document.getElementById('menuButton'); const menuOverlay = document.getElementById('menuOverlay'); const closeButton = document.getElementById('closeButton'); +const blob = document.getElementById("blob"); let menuOpen = false; menuButton.addEventListener('click', () => { - if (!menuOpen) { - document.body.classList.add('menu-open'); + if (!menuOpen) { + window.scrollTo(0,0); + document.querySelector('body').style.overflowY='hidden'; + document.body.classList.add('menu-open'); menuOpen = true; } else { document.body.classList.remove('menu-open'); + document.querySelector('body').style.overflowY='scroll'; menuOpen = false; } }); @@ -21,7 +25,7 @@ closeButton.addEventListener('click', () => { // Blob Effect -const blob = document.getElementById("blob"); + window.onpointermove = event => { const { clientX, clientY } = event; diff --git a/events.html b/events.html index f36bed8..8ce2fd4 100644 --- a/events.html +++ b/events.html @@ -82,6 +82,7 @@

EVENTS

Pre Event 1: Mathemathical Modelling for Robotics

+

"The only impossible journey is the one you never begin. "
@@ -92,9 +93,8 @@

Pre Event 1: Mathemathical Modelling for Robotics


Topic:  Mathemathical Modelling for Robotics
- Speakers: -
-     Abdul Rahim,
    Research and Development Enginner at Zeus Numerix + Speaker: + Abdul Rahim,
    Research and Development Engineer,
    Zeus Numerix