|
1 | | -'use client'; |
2 | | - |
3 | | -import Image from 'next/image'; |
4 | | -import { LogIn } from 'lucide-react'; |
| 1 | +import Link from 'next/link'; |
5 | 2 |
|
6 | 3 | export default function LoginPage() { |
7 | | - const handleLogin = () => { |
8 | | - window.location.href = '/analytics/api/auth/login'; |
9 | | - }; |
10 | | - |
11 | 4 | return ( |
12 | | - <div className="min-h-screen bg-gradient-to-br from-gray-50 via-white to-gray-100 dark:from-gray-900 dark:via-gray-900 dark:to-gray-800 flex items-center justify-center p-4"> |
13 | | - <div className="max-w-md w-full"> |
14 | | - <div className="bg-white dark:bg-gray-800 rounded-2xl shadow-xl border border-gray-200 dark:border-gray-700 p-8"> |
15 | | - <div className="text-center mb-8"> |
16 | | - <div className="inline-flex items-center justify-center w-16 h-16 rounded-full bg-gradient-to-br from-vector-magenta to-vector-cobalt mb-4"> |
17 | | - <LogIn className="w-8 h-8 text-white" /> |
18 | | - </div> |
19 | | - <h1 className="text-2xl font-bold text-gray-900 dark:text-white mb-2"> |
20 | | - Analytics Access |
21 | | - </h1> |
22 | | - <p className="text-gray-600 dark:text-gray-400"> |
23 | | - Sign in to view repository analytics |
24 | | - </p> |
25 | | - </div> |
| 5 | + <div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 flex items-center justify-center p-4"> |
| 6 | + {/* Vector Brand Header Accent */} |
| 7 | + <div className="fixed top-0 left-0 right-0 h-1 bg-gradient-to-r from-vector-magenta via-vector-violet to-vector-cobalt"></div> |
| 8 | + |
| 9 | + <div className="card p-8 max-w-md w-full text-center animate-fade-in"> |
| 10 | + <h1 className="text-4xl font-bold bg-gradient-to-r from-vector-magenta via-vector-violet to-vector-cobalt bg-clip-text text-transparent mb-4"> |
| 11 | + Catalog Analytics |
| 12 | + </h1> |
| 13 | + <p className="text-slate-600 dark:text-slate-400 mb-8"> |
| 14 | + Sign in with your Vector Institute Google account to access the analytics dashboard. |
| 15 | + </p> |
26 | 16 |
|
27 | | - <button |
28 | | - onClick={handleLogin} |
29 | | - className="w-full bg-gradient-to-r from-vector-magenta to-vector-cobalt hover:from-vector-magenta/90 hover:to-vector-cobalt/90 text-white font-semibold py-3 px-6 rounded-lg transition-all shadow-lg shadow-vector-magenta/25 flex items-center justify-center gap-2" |
30 | | - > |
31 | | - <svg className="w-5 h-5" viewBox="0 0 24 24" fill="currentColor"> |
32 | | - <path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" /> |
33 | | - <path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" /> |
34 | | - <path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" /> |
35 | | - <path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" /> |
| 17 | + <Link href="/api/auth/login"> |
| 18 | + <button className="w-full flex items-center justify-center gap-3 px-6 py-4 bg-white dark:bg-slate-800 text-slate-900 dark:text-white border-2 border-slate-300 dark:border-slate-600 rounded-xl hover:border-vector-magenta dark:hover:border-vector-violet hover:shadow-lg hover:shadow-vector-magenta/20 transition-all duration-200 font-semibold"> |
| 19 | + <svg className="w-6 h-6" viewBox="0 0 24 24"> |
| 20 | + <path |
| 21 | + fill="#4285F4" |
| 22 | + d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" |
| 23 | + /> |
| 24 | + <path |
| 25 | + fill="#34A853" |
| 26 | + d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" |
| 27 | + /> |
| 28 | + <path |
| 29 | + fill="#FBBC05" |
| 30 | + d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" |
| 31 | + /> |
| 32 | + <path |
| 33 | + fill="#EA4335" |
| 34 | + d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" |
| 35 | + /> |
36 | 36 | </svg> |
37 | 37 | Sign in with Google |
38 | 38 | </button> |
| 39 | + </Link> |
39 | 40 |
|
40 | | - <p className="mt-6 text-xs text-gray-500 dark:text-gray-400 text-center"> |
41 | | - Only Vector Institute email addresses are permitted |
| 41 | + <div className="mt-8 p-4 bg-slate-100 dark:bg-slate-800 rounded-lg"> |
| 42 | + <p className="text-sm text-slate-600 dark:text-slate-400"> |
| 43 | + <span className="font-semibold">Note:</span> Only Vector Institute email accounts (@vectorinstitute.ai) are allowed to access this dashboard. |
42 | 44 | </p> |
43 | 45 | </div> |
44 | 46 | </div> |
|
0 commit comments