Skip to content

Commit f5dafa3

Browse files
committed
fix: update footer links, slideshow icons and update copyright year in translations
1 parent 9fe7802 commit f5dafa3

File tree

4 files changed

+77
-59
lines changed

4 files changed

+77
-59
lines changed

app/[locale]/footer.tsx

Lines changed: 59 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,56 @@ import {
77
FaLinkedinIn,
88
} from 'react-icons/fa';
99
import { 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';
1312
import { getTranslations } from '~/i18n/translations';
1413
import { cn } from '~/lib/utils';
1514

1615
export 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>

app/[locale]/page.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import Image from 'next/image';
22
import { BsLinkedin } from 'react-icons/bs';
3+
import { FaFacebook, FaInstagram, FaLinkedinIn } from 'react-icons/fa';
4+
import { FaXTwitter } from 'react-icons/fa6';
35
import { MdEmail, MdPhone } from 'react-icons/md';
46

57
import Notifications from '~/app/notifications';
@@ -92,14 +94,24 @@ export default async function Home({
9294
<section className="container absolute inset-x-0 bottom-0 hidden h-0 justify-end lg:flex">
9395
<section className="absolute bottom-0 flex flex-col space-y-4 pb-8">
9496
{[
95-
{ href: 'mailto:[email protected]', icon: MdEmail },
96-
{ href: 'tel:+911742238570', icon: MdPhone },
97+
{
98+
href: 'https://www.facebook.com/nitkurukshetraofficialpage',
99+
icon: FaFacebook,
100+
},
101+
{
102+
href: 'https://www.instagram.com/nitkurukshetra',
103+
icon: FaInstagram,
104+
},
105+
{
106+
href: 'https://twitter.com/NITKURUKSHETRA',
107+
icon: FaXTwitter,
108+
},
97109
{
98110
href: 'https://www.linkedin.com/school/national-institute-of-technology-kurukshetra-haryana',
99-
icon: BsLinkedin,
111+
icon: FaLinkedinIn,
100112
},
101113
].map(({ href, icon: Icon }, index) => (
102-
<a href={href} key={index}>
114+
<a href={href} key={index} target="_blank">
103115
<Button
104116
className="size-16 rounded-full border border-shade-light text-neutral-900 backdrop-blur-md hover:bg-shade-light/20"
105117
variant="icon"

i18n/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ const text: Translations = {
371371
headings: ['Quick Links', 'Quick Links', 'Quick Links'],
372372
lorem: 'Lorem Ipsum',
373373
copyright:
374-
2024 National Institute of Technology Kurukshetra. All Rights Reserved.',
374+
2025 National Institute of Technology Kurukshetra. All Rights Reserved.',
375375
},
376376
Forms: { title: 'FORMS' },
377377
Header: {

i18n/hi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ const text: Translations = {
380380
headings: ['त्वरित संदर्भ', 'त्वरित संदर्भ', 'त्वरित संदर्भ'],
381381
lorem: 'लोरेम इप्सम',
382382
copyright:
383-
२०२४ राष्ट्रीय प्रौद्योगिकी संस्थान कुरूक्षेत्र। सर्वाधिकार आरक्षित।',
383+
२०२५ राष्ट्रीय प्रौद्योगिकी संस्थान कुरुक्षेत्र। सर्वाधिकार सुरक्षित।',
384384
},
385385
Forms: { title: 'फॉर्म्स' },
386386
Header: {

0 commit comments

Comments
 (0)