EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
page.tsx
Go to the documentation of this file.
1"use client";
2import Image from "next/image";
3import dynamic from "next/dynamic";
4const LoginForm = dynamic(() => import("@/components/LoginForm"), { ssr: false });
5
6export default function LoginPage() {
7 return (
8 <div className="relative min-h-screen flex items-center justify-center overflow-hidden">
9 {/* Background Image */}
10 <div className="absolute inset-0 w-full h-full z-0">
11 <Image
12 src="/images/landing-page-background.jpg"
13 alt="Login Background"
14 fill
15 className="object-cover"
16 priority
17 quality={85}
18 />
19 </div>
20
21 {/* Background Pattern */}
22 <div className="absolute inset-0">
23 <div className="absolute inset-0 bg-black/30" />
24 <div className="absolute top-0 left-0 w-full h-full">
25 <div className="absolute top-10 left-10 w-32 h-32 bg-emerald-400/10 rounded-full blur-xl animate-pulse" />
26 <div className="absolute top-20 right-20 w-40 h-40 bg-teal-400/10 rounded-full blur-xl animate-pulse delay-1000" />
27 <div className="absolute bottom-20 left-20 w-28 h-28 bg-green-400/10 rounded-full blur-xl animate-pulse delay-500" />
28 <div className="absolute bottom-10 right-10 w-36 h-36 bg-cyan-400/10 rounded-full blur-xl animate-pulse delay-1500" />
29 </div>
30 </div>
31
32 <main className="relative z-10 flex flex-col items-center justify-center w-full h-full px-4">
33 <div className="rounded-2xl shadow-2xl max-w-md w-full p-8" style={{ background: 'white', border: '1px solid rgba(0, 0, 0, 0.1)' }}>
34 {/* Logo */}
35 <div className="text-center mb-8">
36 <div className="mx-auto w-32 h-20 relative mb-4">
37 <Image
38 src="/images/everyday-pos-logo.png"
39 alt="EverydayPOS"
40 fill
41 className="object-contain"
42 priority
43 />
44 </div>
45 <h1 className="text-3xl font-extrabold mb-2" style={{ color: '#1f2937' }}>EverydayPOS</h1>
46 <p style={{ color: '#6b7280' }}>Welcome back! Please sign in to continue</p>
47 </div>
48 <LoginForm />
49 </div>
50
51 {/* Footer */}
52 <div className="mt-8 text-center">
53 <p className="text-sm" style={{ color: 'rgba(255, 255, 255, 0.9)' }}>© 2024 EverydayPOS. All rights reserved.</p>
54 <p className="text-xs mt-2" style={{ color: 'rgba(255, 255, 255, 0.7)' }}>Powered by Fieldpine</p>
55 </div>
56 </main>
57 </div>
58 );
59}