Added Homepage

This commit is contained in:
lokeshramchand-ctrl 2025-06-27 17:32:46 +05:30
parent 9757713d3c
commit 386c2ba7c4
4 changed files with 514 additions and 300 deletions

View file

@ -2,6 +2,7 @@
import './App.css' import './App.css'
import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import OpenLayerMap from './components/UI/Map/OpenLayerMap'; import OpenLayerMap from './components/UI/Map/OpenLayerMap';
import Homepage from './components/UI/Homepage/homepage';
function App() { function App() {
@ -9,7 +10,7 @@ function App() {
return ( return (
<Router> <Router>
<Routes> <Routes>
<Route path="/" element={<OpenLayerMap />} /> <Route path="/" element={<Homepage />} />
<Route path="/open" element={<OpenLayerMap />} /> <Route path="/open" element={<OpenLayerMap />} />
</Routes> </Routes>

BIN
src/assets/1.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

View file

@ -1,270 +1,242 @@
.homepage-container { @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
overflow: hidden;
position: relative;
font-family: 'Arial', sans-serif;
}
/* Particles Background */ /* Reset and Base Styles */
.particles { * {
position: absolute; margin: 0;
top: 0; padding: 0;
left: 0; box-sizing: border-box;
width: 100%; }
height: 100%;
pointer-events: none;
z-index: 1;
}
.particle { .body {
position: absolute; font-family: 'Inter', sans-serif;
width: 3px; background-color: white;
height: 3px; }
background: rgba(255, 255, 255, 0.7);
border-radius: 50%;
top: 100%;
left: calc(var(--i, 0) * 7%);
animation: particleRise 6s ease-in-out infinite;
}
.particle:nth-child(1) { left: 5%; } .homepage {
.particle:nth-child(2) { left: 15%; } position: relative;
.particle:nth-child(3) { left: 25%; } width: 100%;
.particle:nth-child(4) { left: 35%; } height: 100vh;
.particle:nth-child(5) { left: 45%; } font-family: 'Inter', sans-serif;
.particle:nth-child(6) { left: 55%; } background-color: white;
.particle:nth-child(7) { left: 65%; } }
.particle:nth-child(8) { left: 75%; }
.particle:nth-child(9) { left: 85%; }
.particle:nth-child(10) { left: 95%; }
.particle:nth-child(11) { left: 10%; }
.particle:nth-child(12) { left: 30%; }
.particle:nth-child(13) { left: 50%; }
.particle:nth-child(14) { left: 70%; }
.particle:nth-child(15) { left: 90%; }
@keyframes particleRise { /* Navigation Styles */
0% { .navigation {
transform: translateY(0) scale(0); position: fixed;
opacity: 0; top: 0;
} left: 0;
10% { width: 100%;
opacity: 1; z-index: 1000;
} background: transparent;
90% { padding: 50px 0;
opacity: 1; }
}
100% {
transform: translateY(-100vh) scale(1);
opacity: 0;
}
}
/* Navigation Styles */ .nav-container {
.navigation { display: flex;
display: flex; justify-content: center;
justify-content: center; align-items: center;
gap: 2rem; gap: 80px;
padding: 2rem 0; max-width: 1200px;
position: relative; margin: 0 auto;
z-index: 10; }
}
.nav-item { .nav-link {
color: white; color: white;
font-size: 1.1rem; text-decoration: none;
font-weight: 600; font-size: 16px;
cursor: pointer; font-weight: 400;
padding: 0.8rem 1.5rem; letter-spacing: 1.5px;
border-radius: 25px; position: relative;
background: rgba(255, 255, 255, 0.15); transition: all 0.3s ease;
backdrop-filter: blur(10px); text-transform: uppercase;
border: 1px solid rgba(255, 255, 255, 0.3); font-family: 'Inter', sans-serif;
transition: all 0.3s ease; }
/* Initial state for animation */
transform: translateY(-50px);
opacity: 0;
/* Animation */
animation: slideInDown 0.6s ease-out forwards;
}
.nav-item:hover { .nav-link:hover {
background: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8);
transform: translateY(-3px); }
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.nav-item:active { .nav-link.active {
transform: translateY(-1px); color: #ffffff;
transition: all 0.1s ease; font-weight: 500;
} }
@keyframes slideInDown { .nav-link.active::after {
to { content: '';
transform: translateY(0); position: absolute;
opacity: 1; bottom: -8px;
} left: 0;
} width: 100%;
height: 2px;
background: #ffffff;
}
/* Hero Section */ /* Hero Section - Split Layout */
.hero-section { .hero-section {
display: flex; display: flex;
justify-content: center; width: 100%;
align-items: center; height: 100vh;
height: 50vh; background-color: white;
position: relative; }
z-index: 5;
}
.hero-content { /* Left Section - White background with image */
transform: scale(0.8); .left-section {
opacity: 0; width: 50%;
animation: scaleIn 1s ease-out 0.5s forwards; height: 100%;
} background-color: white;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
}
.hero-circle { .image-placeholder {
width: 250px; width: 100%;
height: 250px; height: 100%;
border-radius: 50%; background: #2a2a2a;
background: conic-gradient(from 0deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e); display: flex;
display: flex; align-items: center;
justify-content: center; justify-content: center;
align-items: center; position: relative;
position: relative; overflow: hidden;
animation: rotate 8s linear infinite; border-radius: 60px;
} }
.inner-circle { .hero-img {
width: 200px; width: 100%;
height: 200px; height: 100%;
border-radius: 50%; object-fit: scale-down;
background: rgba(255, 255, 255, 0.1); display: flex;
backdrop-filter: blur(15px); }
display: flex;
justify-content: center;
align-items: center;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.core { /* Right Section - Blue gradient */
width: 80px; .right-section {
height: 80px; width: 50%;
border-radius: 50%; height: 100%;
background: radial-gradient(circle, #ffffff, #e0e0e0); background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3d6db0 100%);
box-shadow: position: relative;
inset 0 0 15px rgba(0, 0, 0, 0.1), }
0 0 30px rgba(255, 255, 255, 0.6);
animation: pulse 2.5s ease-in-out infinite alternate;
}
@keyframes scaleIn { .hero-content {
to { position: absolute;
transform: scale(1); bottom: 180px;
opacity: 1; right: 80px;
} text-align: left;
} color: white;
}
@keyframes rotate { .hero-title {
from { transform: rotate(0deg); } font-family: 'Playfair Display', serif;
to { transform: rotate(360deg); } font-size: 5.5rem;
} font-weight: 400;
line-height: 0.85;
letter-spacing: 1px;
}
@keyframes pulse { .title-line {
from { transform: scale(1); } display: block;
to { transform: scale(1.1); } color: #ffffff;
} opacity: 1;
font-weight: 400;
}
/* Title Section */ .subtitle {
.title-section { display: block;
text-align: center; color: rgba(255, 255, 255, 0.9);
position: relative; margin-top: 25px;
z-index: 5; opacity: 0.3;
margin-top: 2rem; font-weight: 500;
} }
.main-title { /* Responsive Design */
font-size: 4rem; @media (max-width: 1200px) {
font-weight: 900; .hero-title {
margin: 0; font-size: 4.5rem;
display: flex; }
flex-direction: column;
align-items: center; .nav-container {
gap: 0.5rem; gap: 60px;
} }
.hero-content {
bottom: 60px;
right: 60px;
}
}
.title-word { @media (max-width: 768px) {
display: block; .hero-section {
background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff); flex-direction: column;
background-size: 300% 300%; }
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; .left-section,
background-clip: text; .right-section {
animation: gradientShift 4s ease-in-out infinite, slideInUp 0.8s ease-out forwards; width: 100%;
height: 50%;
/* Initial state */ }
transform: translateY(50px);
opacity: 0; .nav-container {
} gap: 40px;
padding: 0 20px;
}
.nav-link {
font-size: 14px;
}
.hero-title {
font-size: 3.5rem;
}
.hero-content {
bottom: 40px;
right: 40px;
}
}
@keyframes slideInUp { @media (max-width: 480px) {
to { .nav-container {
transform: translateY(0); gap: 25px;
opacity: 1; }
}
} .nav-link {
font-size: 12px;
}
.hero-title {
font-size: 2.8rem;
}
.hero-content {
bottom: 30px;
right: 30px;
}
}
@keyframes gradientShift { /* Smooth transitions */
0%, 100% { background-position: 0% 50%; } .left-section,
50% { background-position: 100% 50%; } .right-section {
} transition: all 0.8s ease;
}
/* Responsive Design */ /* Hover effects */
@media (max-width: 768px) { .left-section:hover .hero-img {
.navigation { transform: scale(1.05);
flex-wrap: wrap; transition: transform 0.8s ease;
gap: 1rem; }
padding: 1.5rem 1rem;
}
.nav-item {
font-size: 1rem;
padding: 0.6rem 1.2rem;
}
.hero-circle {
width: 180px;
height: 180px;
}
.inner-circle {
width: 140px;
height: 140px;
}
.core {
width: 60px;
height: 60px;
}
.main-title {
font-size: 2.5rem;
}
}
@media (max-width: 480px) { /* Loading states */
.navigation { .hero-img {
gap: 0.5rem; transition: transform 0.8s ease;
} }
.nav-item { /* Ensure proper stacking */
padding: 0.5rem 1rem; .navigation {
font-size: 0.9rem; z-index: 1000;
} }
.main-title { .hero-section {
font-size: 2rem; z-index: 1;
} }
}

View file

@ -1,65 +1,306 @@
import React, { useEffect, useRef } from 'react'; import React from 'react';
import './Homepage.css'; import { ChevronLeft, ChevronRight } from 'lucide-react';
const Homepage = () => {
const containerRef = useRef(null);
useEffect(() => {
// Trigger animations after component mounts
if (containerRef.current) {
containerRef.current.classList.add('loaded');
}
}, []);
// Navigation handler
const handleNavClick = (section) => {
console.log(`Navigating to: ./components/${section.toLowerCase()}`);
};
const LaHomeWebsite: React.FC = () => {
return ( return (
<div ref={containerRef} className="homepage-container"> <div style={{
{/* Background Particles */} margin: 0,
<div className="particles"> padding: 0,
{[...Array(15)].map((_, i) => ( width: '100vw',
<div key={i} className="particle" style={{ animationDelay: `${i * 0.2}s` }} /> height: '100vh',
))} boxSizing: 'border-box',
</div> fontFamily: "'Inter', sans-serif",
color: 'white',
{/* Navigation */} backgroundColor: '#000',
<nav className="navigation"> overflow: 'hidden',
{['Home', 'Map', 'Pricing', 'About'].map((item, index) => ( position: 'fixed',
<div top: 0,
key={item} left: 0
className="nav-item" }}>
style={{ animationDelay: `${0.2 + index * 0.1}s` }} {/* Add link to Google Fonts in the head */}
onClick={() => handleNavClick(item)} <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
>
{item} {/* Main Container */}
<div style={{
width: '100%',
height: '100%',
backgroundImage: 'url(https://images.unsplash.com/photo-1584738766473-61c083514bf4?q=80&w=1170&auto=format&fit=crop&ixli=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)',
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat'
}}>
{/* Navigation */}
<nav style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
padding: '24px 48px',
background: 'linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%)'
}}>
<div style={{
fontSize: '24px',
fontWeight: 400, // Regular weight
color: 'white',
letterSpacing: '1px'
}}>
lahome.
</div> </div>
))}
</nav>
{/* Hero Section */} <div style={{
<div className="hero-section"> display: 'flex',
<div className="hero-content"> gap: '32px'
<div className="hero-circle"> }}>
<div className="inner-circle"> {['About us', 'Services', 'Team', 'For sale'].map((item) => (
<div className="core"></div> <a
key={item}
href="#"
style={{
color: 'rgba(255, 255, 255, 0.8)',
textDecoration: 'none',
fontSize: '16px',
fontWeight: 400,
transition: 'color 0.3s ease'
}}
onMouseOver={(e) => (e.target as HTMLAnchorElement).style.color = 'white'}
onMouseOut={(e) => (e.target as HTMLAnchorElement).style.color = 'rgba(255, 255, 255, 0.8)'}
>
{item}
</a>
))}
</div>
<button style={{
backgroundColor: 'transparent',
border: '1px solid rgba(255, 255, 255, 0.3)',
color: 'white',
padding: '12px 24px',
borderRadius: '4px',
fontSize: '16px',
fontWeight: 400,
cursor: 'pointer',
transition: 'all 0.3s ease'
}}
onMouseOver={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
target.style.borderColor = 'rgba(255, 255, 255, 0.5)';
}}
onMouseOut={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'transparent';
target.style.borderColor = 'rgba(255, 255, 255, 0.3)';
}}>
Contact us
</button>
</nav>
{/* Main Content Container */}
<div style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
height: 'calc(100% - 96px)',
padding: '0 48px'
}}>
{/* Content Box with Border */}
<div style={{
border: '1px solid rgba(255, 255, 255, 0.3)',
borderRadius: '0px',
padding: '64px',
width: '100%',
maxWidth: '1400px',
backgroundColor: 'rgba(0, 0, 0, 0.1)'
}}>
{/* Main Heading */}
<h1 style={{
fontSize: '72px',
fontWeight: 300, // Light weight
color: 'white',
margin: '0 0 64px 0',
lineHeight: '1.1',
letterSpacing: '-1px'
}}>
Find your<br />
dream house
</h1>
{/* Project Info Grid */}
<div style={{
display: 'grid',
gridTemplateColumns: '1fr 1fr 1fr',
gap: '40px',
marginBottom: '64px'
}}>
<div>
<div style={{
color: 'rgba(255, 255, 255, 0.6)',
fontSize: '14px',
marginBottom: '8px',
textTransform: 'uppercase',
letterSpacing: '1px',
fontWeight: 500 // Medium weight for labels
}}>
Client
</div>
<div style={{
color: 'white',
fontSize: '18px',
fontWeight: 400
}}>
Arlington Schools
</div>
</div>
<div>
<div style={{
color: 'rgba(255, 255, 255, 0.6)',
fontSize: '14px',
marginBottom: '8px',
textTransform: 'uppercase',
letterSpacing: '1px',
fontWeight: 500
}}>
Location
</div>
<div style={{
color: 'white',
fontSize: '18px',
fontWeight: 400
}}>
Japan
</div>
</div>
<div>
<div style={{
color: 'rgba(255, 255, 255, 0.6)',
fontSize: '14px',
marginBottom: '8px',
textTransform: 'uppercase',
letterSpacing: '1px',
fontWeight: 500
}}>
Year
</div>
<div style={{
color: 'white',
fontSize: '18px',
fontWeight: 400
}}>
May, 2022
</div>
</div>
</div>
{/* Bottom Section */}
<div style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'flex-end',
borderTop: '1px solid rgba(255, 255, 255, 0.2)',
paddingTop: '40px'
}}>
{/* Description */}
<div style={{
maxWidth: '440px'
}}>
<p style={{
color: 'rgba(255, 255, 255, 0.8)',
fontSize: '16px',
lineHeight: '1.6',
margin: '0 0 24px 0',
fontWeight: 400
}}>
You have the vision for a stunning digital<br />
experience. More tips with your design and<br />
engineering team through bring about it.
</p>
<button style={{
backgroundColor: 'transparent',
border: '1px solid rgba(255, 255, 255, 0.3)',
color: 'white',
padding: '12px 24px',
borderRadius: '4px',
fontSize: '16px',
fontWeight: 400,
cursor: 'pointer',
transition: 'all 0.3s ease'
}}
onMouseOver={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
target.style.borderColor = 'rgba(255, 255, 255, 0.5)';
}}
onMouseOut={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'transparent';
target.style.borderColor = 'rgba(255, 255, 255, 0.3)';
}}>
View project
</button>
</div>
{/* Navigation Arrows */}
<div style={{
display: 'flex',
gap: '12px'
}}>
<button style={{
width: '48px',
height: '48px',
borderRadius: '50%',
border: '1px solid rgba(255, 255, 255, 0.3)',
backgroundColor: 'transparent',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
cursor: 'pointer',
transition: 'all 0.3s ease'
}}
onMouseOver={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
target.style.borderColor = 'rgba(255, 255, 255, 0.5)';
}}
onMouseOut={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'transparent';
target.style.borderColor = 'rgba(255, 255, 255, 0.3)';
}}>
<ChevronLeft size={20} color="white" />
</button>
<button style={{
width: '48px',
height: '48px',
borderRadius: '50%',
border: '1px solid rgba(255, 255, 255, 0.3)',
backgroundColor: 'transparent',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
cursor: 'pointer',
transition: 'all 0.3s ease'
}}
onMouseOver={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
target.style.borderColor = 'rgba(255, 255, 255, 0.5)';
}}
onMouseOut={(e) => {
const target = e.target as HTMLButtonElement;
target.style.backgroundColor = 'transparent';
target.style.borderColor = 'rgba(255, 255, 255, 0.3)';
}}>
<ChevronRight size={20} color="white" />
</button>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{/* Title Section */}
<div className="title-section">
<h1 className="main-title">
<span className="title-word" style={{ animationDelay: '0.8s' }}>San Diego</span>
<span className="title-word" style={{ animationDelay: '1.0s' }}>Redefined</span>
</h1>
</div>
</div> </div>
); );
}; };
export default Homepage; export default LaHomeWebsite;