@@ -7,44 +7,56 @@ import {
77 FaLinkedinIn ,
88} from 'react-icons/fa' ;
99import { FaXTwitter } from 'react-icons/fa6' ;
10- import { MdFax , MdMail , MdPhone } from 'react-icons/md' ;
10+ import { MdMail , MdPhone } from 'react-icons/md' ;
1111
12- import CopyToClipboard from '~/components/copy-to-clipboard' ;
1312import { getTranslations } from '~/i18n/translations' ;
1413import { cn } from '~/lib/utils' ;
1514
1615export default async function Footer ( { locale } : { locale : string } ) {
1716 const text = ( await getTranslations ( locale ) ) . Footer ;
1817
1918 const quickLinks = [
20- { name : 'Telephone Directory' , href : '#' } ,
21- { name : 'Books and e-Library' , href : '#' } ,
22- { name : 'Important Links' , href : '#' } ,
23- { name : 'Downloads' , href : '#' } ,
24- { name : 'RTI' , href : '#' } ,
25- { name : 'NIT KKR IT Infrastructure Usage Policy' , href : '#' } ,
26- { name : 'NIT KKR @NDL' , href : '#' } ,
27- { name : 'Telephone Directory' , href : '#' } ,
19+ { name : 'Campus Infrastructure' , href : '/institute/campus-infra' } ,
20+ { name : 'Hostels' , href : '/institute/hostels' } ,
21+ { name : 'Administration' , href : '/institute/administration' } ,
22+ { name : 'Estate Section' , href : '/institute/sections/estate' } ,
23+ { name : 'Accounts Section' , href : '/institute/sections/accounts' } ,
24+ {
25+ name : 'Library Resources' ,
26+ href : '/institute/sections/library/collection-and-resources' ,
27+ } ,
28+ { name : 'Medical Facilities' , href : '/institute/health-centre' } ,
2829 ] ;
2930
30- const aboutUs = [
31- { name : 'Council of NITs' , href : '#' } ,
32- { name : 'NAD Digilocker' , href : '#' } ,
33- { name : 'NIRF (Data & Certificate)' , href : '#' } ,
34- { name : 'NBA Accreditation Status' , href : '#' } ,
35- { name : 'ARIIA' , href : '#' } ,
36- { name : 'Skill Hub (PMKVY 4.0)' , href : '#' } ,
37- { name : 'Jobs @ NIT KKR' , href : '#' } ,
31+ const academicLinks = [
32+ { name : 'Academic Notifications' , href : '/academics/notifications' } ,
33+ { name : 'Scholarships' , href : '/academics/scholarships' } ,
34+ { name : 'Awards' , href : '/academics/awards' } ,
35+ { name : 'Curricula' , href : '/academics/curricula' } ,
36+ {
37+ name : 'Department Achievements' ,
38+ href : '/academics/departments/computer-engineering/achievements' ,
39+ } ,
40+ {
41+ name : 'Laboratory Facilities' ,
42+ href : '/academics/departments/computer-engineering/labs' ,
43+ } ,
44+ { name : 'Research Publications' , href : '/research/publications' } ,
3845 ] ;
3946
40- const departments = [
41- { name : 'Vigilance Corner' , href : '#' } ,
42- { name : 'PRO' , href : '#' } ,
43- { name : 'OBC & PWD Cell' , href : '#' } ,
44- { name : 'SC/ST Cell' , href : '#' } ,
45- { name : 'Join Alumni Association' , href : '#' } ,
46- { name : 'User Login' , href : '#' } ,
47- { name : 'Contact Us' , href : '#' } ,
47+ const resourceLinks = [
48+ { name : 'Faculty & Staff' , href : '/faculty-and-staff' } ,
49+ { name : 'Training & Placement' , href : '/training-and-placement' } ,
50+ { name : 'Student Activities' , href : '/student-activities' } ,
51+ {
52+ name : 'Library Committee' ,
53+ href : '/institute/sections/library/library-committee' ,
54+ } ,
55+ {
56+ name : 'Membership Privileges' ,
57+ href : '/institute/sections/library/membership-and-privileges' ,
58+ } ,
59+ { name : 'Research Scholars' , href : '/faculty-and-staff?tab=scholars' } ,
4860 ] ;
4961
5062 return (
@@ -68,15 +80,12 @@ export default async function Footer({ locale }: { locale: string }) {
6880 </ figcaption >
6981
7082 < address className = "mx-auto flex gap-4" >
71- < Link href = "tel:01744233208 " >
83+ < Link href = "tel:+911744233208" target = "_blank ">
7284 < MdPhone className = "text-shade-light" size = { 24 } />
7385 </ Link >
74- < Link href = "mailto:[email protected] " > 86+ < Link href = "mailto:[email protected] " target = "_blank" > 7587 < MdMail className = "text-shade-light" size = { 24 } />
7688 </ Link >
77- < CopyToClipboard text = "238350" >
78- < MdFax className = "text-shade-light" size = { 24 } />
79- </ CopyToClipboard >
8089 </ address >
8190 </ figure >
8291
@@ -95,49 +104,46 @@ export default async function Footer({ locale }: { locale: string }) {
95104
96105 < section className = "grid grow auto-rows-max grid-cols-1 gap-8 sm:grid-cols-6" >
97106 < nav className = "col-start-1 row-start-1 w-fit sm:col-span-2" >
98- < h5 className = "mb-3 text-shade-light" > Quick Links </ h5 >
107+ < h5 className = "mb-3 text-shade-light" > Quick Access </ h5 >
99108 < ul className = "flex flex-col gap-3" >
100109 { quickLinks . map ( ( item , index ) => (
101110 < li key = { index } >
102- < Link className = "text-neutral-500" href = { item . href } >
111+ < Link
112+ className = "text-neutral-500"
113+ href = { `/${ locale } ${ item . href } ` }
114+ >
103115 { item . name }
104116 </ Link >
105117 </ li >
106118 ) ) }
107119 </ ul >
108120 </ nav >
109121
110- < nav
111- className = { cn (
112- 'col-start-1 row-start-2 w-fit' ,
113- 'sm:col-span-2 sm:col-start-5 sm:row-start-1 sm:justify-self-end' ,
114- 'md:col-start-3 md:row-start-1 md:justify-self-center'
115- ) }
116- >
117- < h5 className = "mb-3 text-shade-light" > About Us</ h5 >
122+ < nav className = "col-start-1 row-start-2 w-fit sm:col-span-2 sm:col-start-3 sm:row-start-1" >
123+ < h5 className = "mb-3 text-shade-light" > Academic Resources</ h5 >
118124 < ul className = "flex flex-col gap-3" >
119- { aboutUs . map ( ( item , index ) => (
125+ { academicLinks . map ( ( item , index ) => (
120126 < li key = { index } >
121- < Link className = "text-neutral-500" href = { item . href } >
127+ < Link
128+ className = "text-neutral-500"
129+ href = { `/${ locale } ${ item . href } ` }
130+ >
122131 { item . name }
123132 </ Link >
124133 </ li >
125134 ) ) }
126135 </ ul >
127136 </ nav >
128137
129- < nav
130- className = { cn (
131- 'col-start-1 row-start-3 w-fit' ,
132- 'sm:col-span-2 sm:col-start-3 sm:row-start-2 sm:justify-self-center' ,
133- 'md:col-start-5 md:row-start-1 md:justify-self-end'
134- ) }
135- >
136- < h5 className = "mb-3 text-shade-light" > Departments</ h5 >
138+ < nav className = "col-start-1 row-start-3 w-fit sm:col-span-2 sm:col-start-5 sm:row-start-1" >
139+ < h5 className = "mb-3 text-shade-light" > Important Links</ h5 >
137140 < ul className = "flex flex-col gap-3" >
138- { departments . map ( ( item , index ) => (
141+ { resourceLinks . map ( ( item , index ) => (
139142 < li key = { index } >
140- < Link className = "text-neutral-500" href = { item . href } >
143+ < Link
144+ className = "text-neutral-500"
145+ href = { `/${ locale } ${ item . href } ` }
146+ >
141147 { item . name }
142148 </ Link >
143149 </ li >
0 commit comments