From 73f2700b306c2176171c88e5d83211c773091a0d Mon Sep 17 00:00:00 2001 From: Antriksh Kumar <68548165+heydoyouknowme0@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:22:42 +0000 Subject: [PATCH] feat: added accounts page --- .../institute/sections/accounts/page.tsx | 127 +++++++++++++++++- i18n/en.ts | 26 +++- i18n/hi.ts | 27 +++- i18n/translations.ts | 11 +- 4 files changed, 186 insertions(+), 5 deletions(-) diff --git a/app/[locale]/institute/sections/accounts/page.tsx b/app/[locale]/institute/sections/accounts/page.tsx index f3368367..ae278731 100644 --- a/app/[locale]/institute/sections/accounts/page.tsx +++ b/app/[locale]/institute/sections/accounts/page.tsx @@ -1,4 +1,7 @@ -import { WorkInProgressStatus } from '~/components/status'; +import Link from 'next/link'; + +import Heading from '~/components/heading'; +import ImageHeader from '~/components/image-header'; import { getTranslations } from '~/i18n/translations'; import { db } from '~/server/db'; @@ -13,5 +16,125 @@ export default async function Accounts({ where: (section, { eq }) => eq(section.urlName, 'accounts'), }))!; - return ; + const reports = { + 2013: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/annual-accounts-2013-14.pdf', + 2014: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/annual-accounts-2014-15.pdf', + 2015: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/Audited-Statement-of-Accounts-2015-16.pdf', + 2016: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/Annual-accounts-2016-17.pdf', + 2017: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/ANNUAL-ACCOUNTS-2017-18-19042021.pdf', + 2018: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/ANNUAL-CCOUNTS-2018-19-19042021.pdf', + 2019: 'https://nitkkr.ac.in/wp-content/uploads/2021/12/ANNUAL-CCOUNTS-2018-19-19042021.pdf', + 2021: 'https://nitkkr.ac.in/wp-content/uploads/2023/01/ANNUAL-ACCOUNTS_Updated.pdf', + }; + + const formLinks = [ + 'https://forms.gle/AA7VR28A6Co9LKLt8', + 'https://forms.gle/sd9DTboMUa7TbnaaA', + 'https://nitkkr.ac.in/nitkkr/wp-content/uploads/2021/12/Pension-Life-Certificate-27102020.docx', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/New-Microsoft-Office-Word-Document.docx', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/LTC-performa-for-self-certification.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/Medical-reimbursement-form.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/NPS-Registration-Form.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/Nomination-form-for-NPS.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/Non-refundable-advance-GPF-form.pdf', + 'https://nitkkr.ac.in/nitkkr/wp-content/uploads/2021/12/Refundable-advance-from-GPF-Form.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/PAN_Aadhaar_Updation_Form.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/Performa-for-drawl-of-advance.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/ta-bill.pdf', + 'https://nitkkr.ac.in/wp-content/uploads/2023/03/Telephone-Reimbursement.pdf', + ]; + + const quickLinks = [ + 'https://nitkkr.ac.in/wp-content/uploads/2022/03/ESS-EMP-LOGIN.pdf', + 'https://smarthubeducation.hdfcbank.com/SmartFees/DirectLoadQuickPay.action?uniqueSessionIdentifier=064635166874637237960123456789&redirectionURL=', + ]; + + return ( + <> + + +
+

{section?.aboutUs}

+
+ +
+
    + {Object.entries(reports).map(([year, link]) => ( +
  • + {`${text.report} ${year}-${Number(year) + 1}`} +
  • + ))} +
+
+ +
+
    + {formLinks.map((link, i) => ( +
  • + + {text.formsList[i]} + +
  • + ))} +
+
+ +
+
    + {text.quickLinks.map((link, i) => ( +
  • + + {link} + +
  • + ))} +
+
+ + ); } diff --git a/i18n/en.ts b/i18n/en.ts index 481e525d..73da9af2 100644 --- a/i18n/en.ts +++ b/i18n/en.ts @@ -216,7 +216,31 @@ const text: Translations = { about: 'ABOUT', gallery: 'GALLERY', - Account: {}, + Account: { + title: 'Account Section', + about: 'About', + reportTitle: 'Annual Reports', + report: 'Annual Account', + forms: 'Forms', + formsList: [ + 'Bank Account Details for Vendors', + 'Bank Account Details for Employees/Students/Pensioner/Ex-Student', + 'Pension Life Certificate', + 'Pension disbursement from IDBI Bank Kurukshetra', + 'LTC performa for self certification', + 'Medical reimbursement form', + 'NPS Registration Form', + 'Nomination form for NPS', + 'Non refundable advance GPF form', + 'Refundable advance from GPF Form', + 'PAN_Aadhaar_Updation_Form', + 'Performa for drawl of advance', + 'TA Bill', + 'Telephone Reimbursement', + ], + quickLinksTitle: 'Quick Links', + quickLinks: ['Introduction to EMS Employee Login', 'Online Fee Payment'], + }, CentralLibrary: {}, CentralWorkshop: {}, CentreOfComputingAndNetworking: {}, diff --git a/i18n/hi.ts b/i18n/hi.ts index 8af092bd..d74dff34 100644 --- a/i18n/hi.ts +++ b/i18n/hi.ts @@ -212,7 +212,32 @@ const text: Translations = { about: 'परिचय', gallery: 'चित्र', - Account: {}, + Account: { + title: 'लेखा खंड', + about: 'Aboutहमारी जानकारी', + reportTitle: 'वार्षिक रिपोर्ट्स', + report: 'वार्षिक खाता', + forms: 'फार्म', + formsList: [ + 'पेंशन जीवन प्रमाण पत्र', + 'आईडीबीआई बैंक कुरुक्षेत्र से पेंशन संवितरण', + 'स्व-प्रमाणन के लिए LTC प्रदर्शन', + 'चिकित्सा प्रतिपूर्ति प्रपत्र', + 'एनपीएस पंजीकरण फॉर्म', + 'एनपीएस के लिए नामांकन फॉर्म', + 'गैर-वापसी योग्य अग्रिम GPF फ़ॉर्म', + 'वापसी योग्य अग्रिम GPF फ़ॉर्म', + 'पैन आधार अपडेशन फॉर्म', + 'अग्रिम निकासी के लिए प्रोफार्मा', + 'टीए बिल', + 'टेलीफोन प्रतिपूर्ति', + 'विक्रेताओं के लिए बैंक खाता विवरण', + 'कर्मचारियों/छात्रों/पेंशनर्स/पूर्व-छात्रों के लिए बैंक खाता विवरण', + ], + + quickLinksTitle: 'त्वरित लिंक', + quickLinks: ['ईएमएस कर्मचारी लॉगिन परिचय', 'ऑनलाइन शुल्क भुगतान'], + }, CentralLibrary: {}, CentralWorkshop: {}, CentreOfComputingAndNetworking: {}, diff --git a/i18n/translations.ts b/i18n/translations.ts index 43127a89..fed5025d 100644 --- a/i18n/translations.ts +++ b/i18n/translations.ts @@ -200,7 +200,16 @@ export interface Translations { about: string; gallery: string; - Account: {}; + Account: { + title: string; + about: string; + reportTitle: string; + report: string; + forms: string; + formsList: string[]; + quickLinksTitle: string; + quickLinks: string[]; + }; CentralLibrary: {}; CentralWorkshop: {}; CentreOfComputingAndNetworking: {};