diff --git a/src/components/LazyVideoHero/LazyVideoHero.tsx b/src/components/LazyVideoHero/LazyVideoHero.tsx
index d0eb0f5..fbe8610 100644
--- a/src/components/LazyVideoHero/LazyVideoHero.tsx
+++ b/src/components/LazyVideoHero/LazyVideoHero.tsx
@@ -11,6 +11,11 @@ export default function LazyVideoHero({ children }: LazyVideoHeroProps) {
const [isVideoPlaying, setIsVideoPlaying] = useState(false);
useEffect(() => {
+ if (videoRef.current) {
+ videoRef.current.muted = true;
+ videoRef.current.play().catch(() => {});
+ }
+
const container = containerRef.current;
if (!container) return;
@@ -19,6 +24,7 @@ export default function LazyVideoHero({ children }: LazyVideoHeroProps) {
setIsIntersecting(entry.isIntersecting);
if (videoRef.current) {
if (entry.isIntersecting) {
+ videoRef.current.muted = true;
videoRef.current.play().catch(() => {});
} else {
videoRef.current.pause();
@@ -37,25 +43,10 @@ export default function LazyVideoHero({ children }: LazyVideoHeroProps) {
return (
- {/* Ambient Mesh Backdrop (Used when video is loading or absent) */}
-
-
{/* ─── Optimized Video Background ────────────────────────────────────────── */}
- {/* High-Contrast Glassmorphic Overlay Gradient (Only active when video plays) */}
- {isVideoPlaying && (
-
- )}
+ {/* High-Contrast Glassmorphic Overlay Gradient */}
+
{/* ─── Hero Content ──────────────────────────────────────────────────────── */}
diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx
index ef19375..b235091 100644
--- a/src/pages/Home/Home.tsx
+++ b/src/pages/Home/Home.tsx
@@ -44,8 +44,8 @@ export default function Home() {
initial={{ opacity: 0, y: 15 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6, delay: 0.1 }}
- className="text-[#1E293B] text-3xl md:text-4xl font-light mb-1"
- style={{ fontFamily: 'Playfair Display, serif' }}
+ className="text-white text-3xl md:text-4xl font-light mb-1"
+ style={{ fontFamily: 'Playfair Display, serif', textShadow: '0 2px 10px rgba(0,0,0,0.5)' }}
>
Welcome to
@@ -54,8 +54,8 @@ export default function Home() {
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.7, delay: 0.2 }}
- className="text-5xl md:text-7xl font-black leading-tight mb-6 bg-gradient-to-r from-[#F97316] via-[#EA580C] to-[#F97316] bg-clip-text text-transparent"
- style={{ fontFamily: 'Playfair Display, serif', filter: 'drop-shadow(0 2px 8px rgba(249, 115, 22, 0.2))' }}
+ className="text-5xl md:text-7xl font-black leading-tight mb-6 bg-gradient-to-r from-[#F97316] via-[#FB923C] to-[#F97316] bg-clip-text text-transparent"
+ style={{ fontFamily: 'Playfair Display, serif', filter: 'drop-shadow(0 4px 12px rgba(249, 115, 22, 0.45))' }}
>
RIT Freshers Hub
@@ -64,7 +64,7 @@ export default function Home() {
initial={{ opacity: 0, y: 15 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.7, delay: 0.3 }}
- className="max-w-2xl text-[#475569] text-base md:text-lg leading-relaxed mb-8"
+ className="max-w-2xl text-slate-200 text-base md:text-lg leading-relaxed mb-8"
style={{ fontFamily: 'Inter, sans-serif' }}
>
Your centralized gateway to campus life at Rajalakshmi Institute of Technology — academic notes, AI assistant, bus routes, faculty directory, and campus navigation.
@@ -95,9 +95,9 @@ export default function Home() {
@@ -111,7 +111,7 @@ export default function Home() {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.8, delay: 0.5 }}
- className="flex flex-wrap justify-center gap-6 text-[#64748B] border-t border-[#E5E7EB] pt-6 max-w-lg w-full"
+ className="flex flex-wrap justify-center gap-6 text-slate-300 border-t border-white/20 pt-6 max-w-lg w-full"
>
{[
{ icon: CheckCircle, text: 'Official Portal' },
@@ -124,9 +124,9 @@ export default function Home() {
))}
-
-
-
+
+
+
{/* Sleek Stats Card Section */}