|
1 | | -"use client"; |
| 1 | +'use client'; |
2 | 2 |
|
3 | | -import Link from "next/link"; |
4 | | -import React from "react"; |
5 | | -import { QuickActionButton } from "../QuickActionButton"; |
| 3 | +import Link from 'next/link'; |
| 4 | +import React from 'react'; |
| 5 | +import { QuickActionButton } from '../QuickActionButton'; |
6 | 6 |
|
7 | 7 | export const QuickActions = () => { |
8 | 8 | return ( |
9 | | - <div className="mt-4 w-full space-y-4 md:mt-0 md:flex md:h-full md:w-1/2 md:flex-col"> |
10 | | - <h2 className="mb-3 text-lg font-semibold text-white md:mb-0"> |
| 9 | + <div className='mt-4 w-full space-y-4 md:mt-0 md:flex md:h-full md:w-1/2 md:flex-col'> |
| 10 | + <h2 className='mb-3 text-lg font-semibold text-white md:mb-0'> |
11 | 11 | Quick Actions |
12 | 12 | </h2> |
13 | | - <div className="space-y-4 md:flex md:flex-1 md:flex-col md:justify-between"> |
14 | | - {/* External Link (Opens in New Tab) */} |
15 | | - <div className="flex gap-3"> |
| 13 | + <div className='space-y-4 md:flex md:flex-1 md:flex-col md:justify-between'> |
| 14 | + {/* External Links */} |
| 15 | + <div className='flex gap-3'> |
16 | 16 | <QuickActionButton |
17 | | - text="College Login" |
| 17 | + text='College Login' |
18 | 18 | onClick={() => |
19 | 19 | window.open( |
20 | | - "https://gecskp.etlab.in/user/login", |
21 | | - "_blank", |
22 | | - "noopener,noreferrer" |
| 20 | + 'https://gecskp.etlab.in/user/login', |
| 21 | + '_blank', |
| 22 | + 'noopener,noreferrer' |
23 | 23 | ) |
24 | 24 | } |
25 | 25 | /> |
26 | | - <QuickActionButton text="Bus Time" /> |
| 26 | + <QuickActionButton |
| 27 | + text='Bus Time' |
| 28 | + onClick={() => alert('Bus Time feature coming soon!')} |
| 29 | + /> |
27 | 30 | </div> |
28 | 31 |
|
29 | | - {/* Internal Links (Navigates Within App) */} |
30 | | - <div className="flex gap-3"> |
31 | | - <Link href="/lost-and-found" legacyBehavior> |
32 | | - <QuickActionButton text="Lost & Found" /> |
33 | | - </Link> |
| 32 | + {/* Internal Links */} |
| 33 | + <div className='flex gap-3'> |
34 | 34 | <QuickActionButton |
35 | | - text="SGPA Calculator" |
| 35 | + text='Lost & Found' |
| 36 | + onClick={() => window.location.href = '/lost-and-found'} |
| 37 | + /> |
| 38 | + <QuickActionButton |
| 39 | + text='SGPA Calculator' |
36 | 40 | onClick={() => |
37 | 41 | window.open( |
38 | | - "https://ktugpa.web.app/", |
39 | | - "_blank", |
40 | | - "noopener,noreferrer" |
| 42 | + 'https://ktugpa.web.app/', |
| 43 | + '_blank', |
| 44 | + 'noopener,noreferrer' |
41 | 45 | ) |
42 | 46 | } |
43 | 47 | /> |
44 | 48 | <QuickActionButton |
45 | | - text="Hackathon" |
| 49 | + text='Hackathon' |
46 | 50 | onClick={() => |
47 | 51 | window.open( |
48 | | - "https://codecompasss.github.io/code_compass_india/repeto", |
49 | | - "_blank", |
50 | | - "noopener,noreferrer" |
| 52 | + 'https://codecompasss.github.io/code_compass_india/repeto', |
| 53 | + '_blank', |
| 54 | + 'noopener,noreferrer' |
51 | 55 | ) |
52 | 56 | } |
53 | 57 | /> |
54 | 58 | </div> |
55 | 59 |
|
56 | | - <div className="flex gap-3"> |
57 | | - <QuickActionButton text="College Map" /> |
58 | | - <QuickActionButton text="Academic Calendar" /> |
| 60 | + <div className='flex gap-3'> |
| 61 | + <QuickActionButton |
| 62 | + text='College Map' |
| 63 | + onClick={() => |
| 64 | + window.open( |
| 65 | + 'https://app.mappedin.com/map/65fbc2aa7c0c4fe5b4cc4683/directions?floor=m_c235d70c9e691132&location=s_fca685ba2c784ab7&departure=s_c0ed60b6daeada7c', |
| 66 | + '_blank', |
| 67 | + 'noopener,noreferrer' |
| 68 | + ) |
| 69 | + } |
| 70 | + /> |
| 71 | + <QuickActionButton |
| 72 | + text='Academic Calendar' |
| 73 | + onClick={() => alert('Academic Calendar feature coming soon!')} |
| 74 | + /> |
59 | 75 | </div> |
60 | 76 |
|
61 | | - <div className="flex gap-3"> |
62 | | - <QuickActionButton text="Club" /> |
63 | | - <QuickActionButton text="Anonymous Complaint" /> |
| 77 | + <div className='flex gap-3'> |
| 78 | + <QuickActionButton |
| 79 | + text='Club' |
| 80 | + onClick={() => alert('Club details coming soon!')} |
| 81 | + /> |
| 82 | + <QuickActionButton |
| 83 | + text='Anonymous Complaint' |
| 84 | + onClick={() => alert('Anonymous Complaint feature coming soon!')} |
| 85 | + /> |
64 | 86 | </div> |
65 | 87 |
|
66 | | - <div className="flex gap-3"> |
67 | | - <QuickActionButton text="Private Hostel" /> |
| 88 | + <div className='flex gap-3'> |
| 89 | + <QuickActionButton |
| 90 | + text='Private Hostel' |
| 91 | + onClick={() => alert('Private Hostel information coming soon!')} |
| 92 | + /> |
68 | 93 | <QuickActionButton |
69 | | - text="Scholarships" |
| 94 | + text='Scholarships' |
70 | 95 | onClick={() => |
71 | 96 | window.open( |
72 | | - "https://codecompasss.github.io/code_compass_india/repeto", |
73 | | - "_blank", |
74 | | - "noopener,noreferrer" |
| 97 | + 'https://codecompasss.github.io/code_compass_india/repeto', |
| 98 | + '_blank', |
| 99 | + 'noopener,noreferrer' |
75 | 100 | ) |
76 | 101 | } |
77 | 102 | /> |
78 | 103 | <QuickActionButton |
79 | | - text="Project showcase" |
| 104 | + text="Project Showcase" |
80 | 105 | onClick={() => |
81 | 106 | window.open( |
82 | | - "https://codecompasss.github.io/gecian_archive/", |
83 | | - "_blank", |
84 | | - "noopener,noreferrer" |
| 107 | + 'https://codecompasss.github.io/gecian_archive/', |
| 108 | + '_blank', |
| 109 | + 'noopener,noreferrer' |
85 | 110 | ) |
86 | 111 | } |
87 | 112 | /> |
|
0 commit comments