Skip to content

Commit 73a4b7c

Browse files
committed
added external website to home page
1 parent c953065 commit 73a4b7c

File tree

1 file changed

+68
-43
lines changed

1 file changed

+68
-43
lines changed

src/components/home/QuickActions.tsx

Lines changed: 68 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,112 @@
1-
"use client";
1+
'use client';
22

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';
66

77
export const QuickActions = () => {
88
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'>
1111
Quick Actions
1212
</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'>
1616
<QuickActionButton
17-
text="College Login"
17+
text='College Login'
1818
onClick={() =>
1919
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'
2323
)
2424
}
2525
/>
26-
<QuickActionButton text="Bus Time" />
26+
<QuickActionButton
27+
text='Bus Time'
28+
onClick={() => alert('Bus Time feature coming soon!')}
29+
/>
2730
</div>
2831

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'>
3434
<QuickActionButton
35-
text="SGPA Calculator"
35+
text='Lost & Found'
36+
onClick={() => window.location.href = '/lost-and-found'}
37+
/>
38+
<QuickActionButton
39+
text='SGPA Calculator'
3640
onClick={() =>
3741
window.open(
38-
"https://ktugpa.web.app/",
39-
"_blank",
40-
"noopener,noreferrer"
42+
'https://ktugpa.web.app/',
43+
'_blank',
44+
'noopener,noreferrer'
4145
)
4246
}
4347
/>
4448
<QuickActionButton
45-
text="Hackathon"
49+
text='Hackathon'
4650
onClick={() =>
4751
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'
5155
)
5256
}
5357
/>
5458
</div>
5559

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+
/>
5975
</div>
6076

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+
/>
6486
</div>
6587

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+
/>
6893
<QuickActionButton
69-
text="Scholarships"
94+
text='Scholarships'
7095
onClick={() =>
7196
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'
75100
)
76101
}
77102
/>
78103
<QuickActionButton
79-
text="Project showcase"
104+
text="Project Showcase"
80105
onClick={() =>
81106
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'
85110
)
86111
}
87112
/>

0 commit comments

Comments
 (0)