mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-11 21:23:24 +00:00
asthetic header and body
This commit is contained in:
30
app/Home.tsx
30
app/Home.tsx
@@ -3,26 +3,38 @@ import Footer from '../components/custom/footer';
|
|||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto p-4">
|
<>
|
||||||
<div>
|
|
||||||
<Header />
|
<Header />
|
||||||
{/* Other page content */}
|
<div className="bg-gradient-to-b from-blue-900 to-gray-900 min-h-screen pt-16">
|
||||||
</div>
|
<div className="container mx-auto p-4">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
placeholder="Search events..."
|
||||||
|
className="search-bar mt-4 p-2 border border-gray-300 rounded w-full max-w-md mx-auto"
|
||||||
|
/>
|
||||||
<main>
|
<main>
|
||||||
<section className="mb-8">
|
<section className="mb-8">
|
||||||
<h2 className="text-2xl font-semibold mb-4">Featured Events</h2>
|
<h2 className="text-2xl font-semibold text-white mb-4">
|
||||||
<p className="text-gray-600">No events available at the moment.</p>
|
Featured Events
|
||||||
|
</h2>
|
||||||
|
<p className="text-gray-300">
|
||||||
|
No events available at the moment.
|
||||||
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2 className="text-2xl font-semibold mb-4">Upcoming Events</h2>
|
<h2 className="text-2xl font-semibold text-white mb-4">
|
||||||
<ul className="list-disc list-inside">
|
Upcoming Events
|
||||||
|
</h2>
|
||||||
|
<ul className="list-disc list-inside text-gray-300">
|
||||||
<li>Event 1 - Date</li>
|
<li>Event 1 - Date</li>
|
||||||
<li>Event 2 - Date</li>
|
<li>Event 2 - Date</li>
|
||||||
<li>Event 3 - Date</li>
|
<li>Event 3 - Date</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<Footer />
|
|
||||||
</main>
|
</main>
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
0
app/TicketListings.tsx
Normal file
0
app/TicketListings.tsx
Normal file
@@ -1,5 +1,9 @@
|
|||||||
import Home from './Home';
|
import Home from './Home';
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return <Home />;
|
return (
|
||||||
|
<>
|
||||||
|
<Home />
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,42 +1,64 @@
|
|||||||
// components/Header.js
|
'use client';
|
||||||
import React from 'react';
|
import React, { useState } from 'react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
const Header = () => (
|
const Header = () => {
|
||||||
<div className="container mx-auto p-4">
|
const [mouseX, setMouseX] = useState(0);
|
||||||
<header className="header text-center mb-8">
|
const [mouseY, setMouseY] = useState(0);
|
||||||
<h1 className="text-4xl font-bold text-blue-700">Ticket Chain</h1>
|
|
||||||
<nav className="nav mt-4">
|
const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
|
||||||
<ul className="flex justify-center space-x-4">
|
setMouseX(e.clientX);
|
||||||
|
setMouseY(e.clientY);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="fixed top-0 left-0 right-0 backdrop-blur-md bg-opacity-60 z-50"
|
||||||
|
onMouseMove={handleMouseMove}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="absolute inset-0 pointer-events-none"
|
||||||
|
style={{
|
||||||
|
border: '1px solid transparent',
|
||||||
|
background: `radial-gradient(circle at ${mouseX}px ${mouseY}px, rgba(255, 255, 255, 0.4), transparent 20%)`,
|
||||||
|
backgroundClip: 'padding-box, border-box',
|
||||||
|
}}
|
||||||
|
></div>
|
||||||
|
<div className="container mx-auto px-6 py-5 flex justify-between items-center">
|
||||||
|
<h1 className="text-2xl font-bold text-white">Ticket Chain</h1>
|
||||||
|
<nav className="nav">
|
||||||
|
<ul className="flex space-x-6">
|
||||||
<li>
|
<li>
|
||||||
<Link href="/" className="text-blue-500 hover:text-blue-700">
|
<Link href="/" legacyBehavior>
|
||||||
|
<a className="text-white hover:text-blue-500 transition-colors duration-300">
|
||||||
Home
|
Home
|
||||||
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link href="/events" className="text-blue-500 hover:text-blue-700">
|
<Link href="/events" legacyBehavior>
|
||||||
|
<a className="text-white hover:text-blue-500 transition-colors duration-300">
|
||||||
Events
|
Events
|
||||||
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link href="/contact" className="text-blue-500 hover:text-blue-700">
|
<Link href="/contact" legacyBehavior>
|
||||||
|
<a className="text-white hover:text-blue-500 transition-colors duration-300">
|
||||||
Contact
|
Contact
|
||||||
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button className="bg-blue-500 text-white px-4 rounded hover:bg-blue-700">
|
<button className="bg-gradient-to-r from-blue-500 to-indigo-700 text-white px-4 py-1 rounded-full transform transition-transform duration-300 hover:scale-105 shadow-lg hover:shadow-2xl">
|
||||||
Login
|
Login
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
placeholder="Search events..."
|
|
||||||
className="search-bar mt-4 p-2 border border-gray-300 rounded w-full max-w-md mx-auto"
|
|
||||||
/>
|
|
||||||
</header>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
export default Header;
|
export default Header;
|
||||||
|
|||||||
Reference in New Issue
Block a user