From 435eb70fdde9c86b8b49427e2d3e146d4c89211f Mon Sep 17 00:00:00 2001 From: Soumil Jain Date: Wed, 29 Jan 2025 18:16:11 +0530 Subject: [PATCH 1/3] sports --- .../institute/sections/sports/page.tsx | 357 +++--------------- i18n/en.ts | 49 ++- i18n/hi.ts | 47 ++- i18n/translations.ts | 27 +- 4 files changed, 169 insertions(+), 311 deletions(-) diff --git a/app/[locale]/institute/sections/sports/page.tsx b/app/[locale]/institute/sections/sports/page.tsx index b91fd9a8..657c3b74 100644 --- a/app/[locale]/institute/sections/sports/page.tsx +++ b/app/[locale]/institute/sections/sports/page.tsx @@ -1,6 +1,3 @@ -import Link from 'next/link'; -import { Suspense } from 'react'; - import Heading from '~/components/heading'; import ImageHeader from '~/components/image-header'; import { @@ -42,331 +39,81 @@ export default async function Sports({ -
+
- - - - {text.about.profTableTitle.name} - {text.about.profTableTitle.details} - - - - - - Loading... - - - } - > - - - -
-

{section?.aboutUs}

+

{text.sports.about}

+
+

+ {text.sports.prize} +

-
+
-
{text.swimmingPool.welcome}
-

{text.swimmingPool.about}

-

{text.swimmingPool.aboutDescription}

-

{text.swimmingPool.location}

-
{text.swimmingPool.membershipListQuestion}
-

{text.swimmingPool.membershipPre}

-
    - {text.swimmingPool.membershipList.map((item, index) => ( -
  1. {item}
  2. - ))} -
-

{text.swimmingPool.membershipPost}

-
{text.swimmingPool.membershipHowQuestion}
-

-

- {text.swimmingPool.membershipHowList[0]} - - www.nitkkr.ac.in{' '} - - > - - {text.swimmingPool.membershipHowList[1]} - - > - - {text.swimmingPool.membershipHowList[2]} - - > - - {text.swimmingPool.membershipHowList[3]} - -

-
{text.swimmingPool.membershipApplicationForm}
-
    - {text.swimmingPool.ApplicationFormList.map((item, index) => ( -
  1. -

    - {item} -

    -
  2. - ))} -
-
{text.swimmingPool.subscriptionsTitle}
- - {text.swimmingPool.subscriptionsTableTitle.category} - - - {text.swimmingPool.subscriptionsTableTitle.duration8} - - - {text.swimmingPool.subscriptionsTableTitle.duration3} - + {text.sports.name} + {text.sports.designation} + {text.sports.phone} + {text.sports.mail} - {text.swimmingPool.subscriptionsTable.map( - ({ category, duration8, duration3 }, index) => ( + {text.sports.employeeTable.map( + ({ name, designation, phone, mail }, index) => ( - {category} - {duration8} - {duration3} + {name} + {designation} + {phone} + {mail} ) )}
-

{text.swimmingPool.administrativeTitle}

-
{text.swimmingPool.inchargeTitle}
-

- {text.swimmingPool.inchargedetails} -

-
{text.swimmingPool.committeeTitle}
-

{text.swimmingPool.committeeDetails}

-
{text.swimmingPool.responsibilitiesTitle}
-
    - {text.swimmingPool.responsibilitiesList.map((item, index) => ( -
  1. -

    {item}

    -
  2. - ))} -
-
{text.swimmingPool.spcTitle}
-
{text.swimmingPool.spcSubTitle}
- - - {text.swimmingPool.spcList.map((item, index) => ( - - {index} - {item.name} - {item.role} - - ))} - -
- -
{text.swimmingPool.manpower}
-
{text.swimmingPool.manpowerSubTitle}
-

{text.swimmingPool.manpowerListPretext}

- - - - {text.swimmingPool.manpowerListTitle.sNo} - {text.swimmingPool.manpowerListTitle.name} - - {text.swimmingPool.manpowerListTitle.quantity} - - - - - {text.swimmingPool.manpowerList.map((item, index) => ( - - {index + 1} - {item.name} - {item.quantity} - - ))} - -
- -
{text.swimmingPool.maintenance}
-
{text.swimmingPool.maintenanceSubTitle}
- - - - - {text.swimmingPool.maintenanceListTitle.sNo} - - - {text.swimmingPool.maintenanceListTitle.name} - - - {text.swimmingPool.maintenanceListTitle.quantity} - - - - - {text.swimmingPool.maintenanceList.map((item, index) => ( - - {index + 1} - {item.name} - {item.quantity} - - ))} - -
+

{text.sports.department}

+
+

{text.sports.dept1}

+
+

{text.sports.dept2}

+
+

{text.sports.dept3}

+
+ -
{text.swimmingPool.chemicals}
-
{text.swimmingPool.chemicalsSubTitle}
- - - - {text.swimmingPool.chemicalsListTitle.sNo} - - {text.swimmingPool.chemicalsListTitle.description} - - - {text.swimmingPool.chemicalsListTitle.quantity} - - {text.swimmingPool.chemicalsListTitle.unit} - - - - {text.swimmingPool.chemicalsList.map((item, index) => ( - - {index + 1} - {item.description} - {item.quantity} - {item.unit} - - ))} - -
-
{text.swimmingPool.guidelinesTitle}
-
    - {text.swimmingPool.guidelines.map((item, index) => ( -
  1. - ))} -
-
{text.swimmingPool.conductTitle}
-
    - {text.swimmingPool.conduct.map((item, index) => ( -
  1. - ))} -
-
{text.swimmingPool.safetyTitle}
-
    -
  1. {text.swimmingPool.safety[0]}
  2. -
  3. - {text.swimmingPool.safety[1]} -
  4. -
-
{text.swimmingPool.eventsTitle}
- - - - - {text.swimmingPool.eventsListTitles.sNo} - - - {text.swimmingPool.eventsListTitles.events} - - - - {text.swimmingPool.eventsListTitles.men} - {text.swimmingPool.eventsListTitles.women} - - - - {text.swimmingPool.eventsTable.map((item, index) => ( - - {index + 1} - {item.eventMale} - {item.eventFemale} - - ))} - -
-
{text.swimmingPool.roadmapTitle}
- - - - - {text.swimmingPool.roadmapTableTitles.event} - - {text.swimmingPool.roadmapTableTitles.jan} - {text.swimmingPool.roadmapTableTitles.feb} - {text.swimmingPool.roadmapTableTitles.mar} - {text.swimmingPool.roadmapTableTitles.apr} - {text.swimmingPool.roadmapTableTitles.may} - {text.swimmingPool.roadmapTableTitles.jun} - {text.swimmingPool.roadmapTableTitles.jul} - {text.swimmingPool.roadmapTableTitles.aug} - {text.swimmingPool.roadmapTableTitles.sep} - {text.swimmingPool.roadmapTableTitles.oct} - {text.swimmingPool.roadmapTableTitles.nov} - {text.swimmingPool.roadmapTableTitles.dec} - - - - {text.swimmingPool.roadmapEvents.map((event, index) => ( - - {event} - {Array.from({ length: 3 }).map((_, i) => ( - - ))} - - ))} - -
+

{text.sports.facilities}

+
); @@ -406,4 +153,4 @@ const DelayedStaff = async ({ ) ); -}; +}; \ No newline at end of file diff --git a/i18n/en.ts b/i18n/en.ts index 31eb5fe2..fca55d91 100644 --- a/i18n/en.ts +++ b/i18n/en.ts @@ -228,8 +228,12 @@ const text: Translations = { Sports: { title: 'Sports Section', headings: { - about: 'About Us', - swimmingPool: 'Swimming Pool', + Sports: 'SPORTS', + Department: 'DEPARTMENT OF PHYSICAL EDUCATION AND SPORTS', + + admin: 'ADMINISTRATION HEADS', + facilities: 'FACILITIES', + gallery: 'Gallery', }, about: { title: 'DEPARTMENT OF PHYSICAL EDUCATION AND SPORTS', @@ -238,6 +242,47 @@ const text: Translations = { email: 'Mail ID :', phone: 'Mob. No.:', }, + sports: { + name: 'Name', + designation: 'Designation & Qualification', + phone: 'Phone Number', + mail: 'Email', + about: + 'The Engineering Curriculum demands dedicated and sustained efforts from every student. As a result, our students remain busy with their studies throughout the year. Nevertheless, realizing the importance of the sports and games in the overall development of the students, we have tried out best to provide sport facilities to them as much as we could. The Institute lays adequate emphasis on student participation in various outdoor and indoor games and track and field Sports. All sports and games activities are directed by a Sports Committee comprising of students, faculty members and Sports personnel (Director Sports and Lecturers Physical Education). The Committee is responsible for laying down the policies and programme for sports and games.', + prize: + 'A senior faculty member designated as President Sports co-ordinates the activities. Students who distinguish themselves by their outstanding performance in sports are eligible for a number of awards including the ‘Best Sportsman of the year’ award and Institute colours. On recommendations of the Sports Committee, a cash prize of Rs. 500/- and a trophy is awarded to the Best Sportsman of the year.', + department: + 'The Institute lays adequate emphasis on student participation in various outdoor and indoor games and track and field sports. Extensive and well laid out fields for sports and games are available on the campus. Badminton courts, tennis courts, cricket pitch, hockey ground, football ground, volleyball court with lights and basketball court with lights, Kabaddi ground and a stadium etc. are some of the facilities available to the students. Director of Sports and Lecturer Physical Education help the students to develop their interest in games and coach them to acceptable standards.', + dept1: + 'Gymnasium centre has been provided for health upkeep of students and staff members. It is fitted with the latest and state-of-the-art equipments for different physical exercises.', + dept2: + 'All sports and games activities are directed by a Sports Committee comprising of President Sports, Director of Sports, Lecturers Physical Education, Prof-In-Charge of various games and Captain of various games and sports. The Committee is responsible for laying down the policies and programme for sports and games.', + dept3: + 'To keep the engineering students physically fit, the physical education and sports is introduced as compulsory subject for engineering student in 1st & 2nd Semester with One Credit from 2006-07.', + facilities: + 'Extensive and well laid out fields for sports and games are available on the campus for the students. Badminton courts, Tennis courts with Chain Link Iron mess around the courts, Cricket Pitch, Volleyball courts with Light and with Chain Link Iron mess encloser and basketball and a stadium etc. facilities are available to the students. Trained sports personnel help the students to develop their interest in games and coach them to acceptable standards. ', + gallery: 'Gallery', + employeeTable: [ + { + name: 'Dr. P.C. Tewari', + designation: 'Prof.in-Charge (Physical Education)', + phone: '+91 09896- 434963', + mail: 'pctewari1@nitkkr.ac.in', + }, + { + name: 'Pallavi Rai', + designation: 'Prof.in-Charge (Physical Education)', + phone: '+91 09896- 434963', + mail: 'pallaviraisaso@nitkkr.ac.in', + }, + { + name: 'Lt. Shahabuddin', + designation: 'S.A.S Officer', + phone: '+91 09466- 128133', + mail: 'sahab.sabu7@gmail.com', + }, + ], + }, swimmingPool: { title: 'SWIMMING POOL', welcome: 'Welcome to the swimming pool of NIT Kurukshetra', diff --git a/i18n/hi.ts b/i18n/hi.ts index 5848ebc0..eb66df5f 100644 --- a/i18n/hi.ts +++ b/i18n/hi.ts @@ -224,8 +224,12 @@ const text: Translations = { Sports: { title: 'खेल अनुभाग', headings: { - about: 'परिचय', - swimmingPool: 'स्विमिंग पूल', + Sports: 'खेल', + Department: 'शारीरिक शिक्षा विभाग', + + admin: 'प्रशासन प्रमुख', + facilities: 'सुविधाएँ', + gallery: 'गैलरी', }, about: { title: 'शारीरिक शिक्षा और खेल विभाग', @@ -234,6 +238,45 @@ const text: Translations = { email: 'मेल आईडी :', phone: 'मो.न.', }, + sports: { + name: 'नाम', + designation: 'पदनाम एवं योग्यता', + phone: 'फ़ोन नंबर', + mail: 'ईमेल', + about: + 'इंजीनियरिंग पाठ्यक्रम प्रत्येक छात्र से समर्पित और निरंतर प्रयास की मांग करता है। परिणामस्वरूप, हमारे छात्र पूरे वर्ष अपनी पढ़ाई में व्यस्त रहते हैं। फिर भी, छात्रों के समग्र विकास में खेल और खेलों के महत्व को समझते हुए, हमने उन्हें यथासंभव खेल सुविधाएँ प्रदान करने का सर्वोत्तम प्रयास किया है। संस्थान विभिन्न आउटडोर और इनडोर खेलों और ट्रैक और फील्ड खेलों में छात्रों की भागीदारी पर पर्याप्त जोर देता है। सभी खेल और खेल गतिविधियों का निर्देशन एक खेल समिति द्वारा किया जाता है जिसमें छात्र, संकाय सदस्य और खेल कर्मी (निदेशक खेल और व्याख्याता शारीरिक शिक्षा) शामिल होते हैं। समिति खेल और खेलों के लिए नीतियों और कार्यक्रम को निर्धारित करने के लिए जिम्मेदार है।', + prize: `अध्यक्ष खेल के रूप में नामित एक वरिष्ठ संकाय सदस्य गतिविधियों का समन्वय करता है। खेल में अपने उत्कृष्ट प्रदर्शन से खुद को अलग पहचान दिलाने वाले छात्र 'वर्ष के सर्वश्रेष्ठ खिलाड़ी' पुरस्कार और संस्थान के रंगों सहित कई पुरस्कारों के लिए पात्र हैं। खेल समिति की सिफारिशों पर, वर्ष के सर्वश्रेष्ठ खिलाड़ी को 500/- रुपये का नकद पुरस्कार और एक ट्रॉफी प्रदान की जाती है।`, + department: `संस्थान विभिन्न आउटडोर और इनडोर खेलों तथा ट्रैक और फील्ड खेलों में छात्रों की भागीदारी पर पर्याप्त जोर देता है। परिसर में खेलकूद के लिए विस्तृत और सुव्यवस्थित मैदान उपलब्ध हैं। बैडमिंटन कोर्ट, टेनिस कोर्ट, क्रिकेट पिच, हॉकी ग्राउंड, फुटबॉल ग्राउंड, रोशनी के साथ वॉलीबॉल कोर्ट और रोशनी के साथ बास्केटबॉल कोर्ट, कबड्डी ग्राउंड और स्टेडियम आदि कुछ ऐसी सुविधाएं हैं जो छात्रों को उपलब्ध हैं। खेल निदेशक और व्याख्याता शारीरिक शिक्षा छात्रों को खेलों में उनकी रुचि विकसित करने में मदद करते हैं और उन्हें स्वीकार्य मानकों पर प्रशिक्षित करते हैं।`, + dept1: + 'विद्यार्थियों और स्टाफ सदस्यों के स्वास्थ्य की देखभाल के लिए जिम्नेजियम सेंटर की व्यवस्था की गई है। इसमें विभिन्न शारीरिक व्यायाम के लिए नवीनतम और अत्याधुनिक उपकरण लगे हुए हैं।', + dept2: + 'सभी खेल और खेल गतिविधियों का निर्देशन एक खेल समिति द्वारा किया जाता है जिसमें अध्यक्ष खेल, खेल निदेशक, व्याख्याता शारीरिक शिक्षा, विभिन्न खेलों के प्रभारी प्रोफेसर और विभिन्न खेलों के कप्तान शामिल होते हैं। समिति खेल और खेलों के लिए नीतियां और कार्यक्रम निर्धारित करने के लिए जिम्मेदार है।', + dept3: + 'इंजीनियरिंग छात्रों को शारीरिक रूप से स्वस्थ रखने के लिए, 2006-07 से प्रथम एवं द्वितीय सेमेस्टर में एक क्रेडिट के साथ शारीरिक शिक्षा एवं खेल को अनिवार्य विषय के रूप में शुरू किया गया है।', + facilities: + 'परिसर में छात्रों के लिए खेलकूद के लिए विस्तृत और सुव्यवस्थित मैदान उपलब्ध हैं। बैडमिंटन कोर्ट, कोर्ट के चारों ओर चेन लिंक आयरन मेस के साथ टेनिस कोर्ट, क्रिकेट पिच, लाइट के साथ वॉलीबॉल कोर्ट और चेन लिंक आयरन मेस एनक्लोजर और बास्केटबॉल और स्टेडियम आदि की सुविधाएं छात्रों के लिए उपलब्ध हैं। प्रशिक्षित खेल कर्मी छात्रों को खेलों में उनकी रुचि विकसित करने में मदद करते हैं और उन्हें स्वीकार्य मानकों पर प्रशिक्षित करते हैं।', + gallery: 'गैलरी', + employeeTable: [ + { + name: 'डॉ. पी.सी. तिवारी', + designation: 'प्रभारी (शारीरिक शिक्षा)', + phone: '+91 09896- 434963', + mail: 'pctewari1@nitkkr.ac.in', + }, + { + name: 'पल्लवी राय', + designation: 'एस.ए.एस. अधिकारी', + phone: '+91 09466- 128133', + mail: 'pallaviraisaso@nitkkr.ac.in', + }, + { + name: 'लेफ्टिनेंट शाहबुद्दीन', + designation: 'एस.ए.एस. अधिकारी', + phone: '+91 09466- 128133', + mail: 'sahab.sabu7@gmail.com', + }, + ], + }, swimmingPool: { title: 'स्विमिंग पूल', welcome: 'एनआईटी कुरुक्षेत्र के स्विमिंग पूल में आपका स्वागत है', diff --git a/i18n/translations.ts b/i18n/translations.ts index b9c03e35..e410f010 100644 --- a/i18n/translations.ts +++ b/i18n/translations.ts @@ -212,8 +212,11 @@ export interface Translations { Sports: { title: string; headings: { - about: string; - swimmingPool: string; + Department: string; + Sports: string; + admin: string; + facilities: string; + gallery: string; }; about: { title: string; @@ -222,6 +225,26 @@ export interface Translations { email: string; phone: string; }; + sports: { + name: string; + designation: string; + phone: string; + mail: string; + about: string; + prize: string; + department: string; + dept1: string; + dept2: string; + dept3: string; + facilities: string; + gallery: string; + employeeTable: { + name: string; + designation: string; + phone: string; + mail: string; + }[]; + }; swimmingPool: { title: string; welcome: string; From 7a313a22c3fd0af29da68efb0c3193525646e89c Mon Sep 17 00:00:00 2001 From: Soumil Jain Date: Sun, 2 Feb 2025 15:20:25 +0530 Subject: [PATCH 2/3] yo --- .../institute/sections/sports/page.tsx | 38 +++++++++++-------- i18n/en.ts | 8 ++-- i18n/hi.ts | 8 ++-- i18n/translations.ts | 5 +-- 4 files changed, 33 insertions(+), 26 deletions(-) diff --git a/app/[locale]/institute/sections/sports/page.tsx b/app/[locale]/institute/sections/sports/page.tsx index 657c3b74..aa309cb2 100644 --- a/app/[locale]/institute/sections/sports/page.tsx +++ b/app/[locale]/institute/sections/sports/page.tsx @@ -1,3 +1,5 @@ +import React, { useEffect, useState } from 'react'; + import Heading from '~/components/heading'; import ImageHeader from '~/components/image-header'; import { @@ -78,26 +80,29 @@ export default async function Sports({ - {text.sports.employeeTable.map( - ({ name, designation, phone, mail }, index) => ( - - {name} - {designation} - {phone} - {mail} - - ) - )} + {await DelayedStaff({ + id: section.id, + headId: section.headFacultyId, + localeText: { + fullName: text.sports.name, + email: text.sports.mail, + phone: text.sports.phone, + headPosition: text.sports.designation + } + })}

{text.sports.department}

-
-

{text.sports.dept1}

+ + +
+

{text.sports.dept[0]}


-

{text.sports.dept2}

+

{text.sports.dept[1]}


-

{text.sports.dept3}

-
+

{text.sports.dept[2]}

+ + ) ); -}; \ No newline at end of file +}; diff --git a/i18n/en.ts b/i18n/en.ts index fca55d91..63d21e7e 100644 --- a/i18n/en.ts +++ b/i18n/en.ts @@ -253,12 +253,14 @@ const text: Translations = { 'A senior faculty member designated as President Sports co-ordinates the activities. Students who distinguish themselves by their outstanding performance in sports are eligible for a number of awards including the ‘Best Sportsman of the year’ award and Institute colours. On recommendations of the Sports Committee, a cash prize of Rs. 500/- and a trophy is awarded to the Best Sportsman of the year.', department: 'The Institute lays adequate emphasis on student participation in various outdoor and indoor games and track and field sports. Extensive and well laid out fields for sports and games are available on the campus. Badminton courts, tennis courts, cricket pitch, hockey ground, football ground, volleyball court with lights and basketball court with lights, Kabaddi ground and a stadium etc. are some of the facilities available to the students. Director of Sports and Lecturer Physical Education help the students to develop their interest in games and coach them to acceptable standards.', - dept1: + dept:[ 'Gymnasium centre has been provided for health upkeep of students and staff members. It is fitted with the latest and state-of-the-art equipments for different physical exercises.', - dept2: + 'All sports and games activities are directed by a Sports Committee comprising of President Sports, Director of Sports, Lecturers Physical Education, Prof-In-Charge of various games and Captain of various games and sports. The Committee is responsible for laying down the policies and programme for sports and games.', - dept3: + 'To keep the engineering students physically fit, the physical education and sports is introduced as compulsory subject for engineering student in 1st & 2nd Semester with One Credit from 2006-07.', + ], + facilities: 'Extensive and well laid out fields for sports and games are available on the campus for the students. Badminton courts, Tennis courts with Chain Link Iron mess around the courts, Cricket Pitch, Volleyball courts with Light and with Chain Link Iron mess encloser and basketball and a stadium etc. facilities are available to the students. Trained sports personnel help the students to develop their interest in games and coach them to acceptable standards. ', gallery: 'Gallery', diff --git a/i18n/hi.ts b/i18n/hi.ts index eb66df5f..c20a7816 100644 --- a/i18n/hi.ts +++ b/i18n/hi.ts @@ -247,12 +247,12 @@ const text: Translations = { 'इंजीनियरिंग पाठ्यक्रम प्रत्येक छात्र से समर्पित और निरंतर प्रयास की मांग करता है। परिणामस्वरूप, हमारे छात्र पूरे वर्ष अपनी पढ़ाई में व्यस्त रहते हैं। फिर भी, छात्रों के समग्र विकास में खेल और खेलों के महत्व को समझते हुए, हमने उन्हें यथासंभव खेल सुविधाएँ प्रदान करने का सर्वोत्तम प्रयास किया है। संस्थान विभिन्न आउटडोर और इनडोर खेलों और ट्रैक और फील्ड खेलों में छात्रों की भागीदारी पर पर्याप्त जोर देता है। सभी खेल और खेल गतिविधियों का निर्देशन एक खेल समिति द्वारा किया जाता है जिसमें छात्र, संकाय सदस्य और खेल कर्मी (निदेशक खेल और व्याख्याता शारीरिक शिक्षा) शामिल होते हैं। समिति खेल और खेलों के लिए नीतियों और कार्यक्रम को निर्धारित करने के लिए जिम्मेदार है।', prize: `अध्यक्ष खेल के रूप में नामित एक वरिष्ठ संकाय सदस्य गतिविधियों का समन्वय करता है। खेल में अपने उत्कृष्ट प्रदर्शन से खुद को अलग पहचान दिलाने वाले छात्र 'वर्ष के सर्वश्रेष्ठ खिलाड़ी' पुरस्कार और संस्थान के रंगों सहित कई पुरस्कारों के लिए पात्र हैं। खेल समिति की सिफारिशों पर, वर्ष के सर्वश्रेष्ठ खिलाड़ी को 500/- रुपये का नकद पुरस्कार और एक ट्रॉफी प्रदान की जाती है।`, department: `संस्थान विभिन्न आउटडोर और इनडोर खेलों तथा ट्रैक और फील्ड खेलों में छात्रों की भागीदारी पर पर्याप्त जोर देता है। परिसर में खेलकूद के लिए विस्तृत और सुव्यवस्थित मैदान उपलब्ध हैं। बैडमिंटन कोर्ट, टेनिस कोर्ट, क्रिकेट पिच, हॉकी ग्राउंड, फुटबॉल ग्राउंड, रोशनी के साथ वॉलीबॉल कोर्ट और रोशनी के साथ बास्केटबॉल कोर्ट, कबड्डी ग्राउंड और स्टेडियम आदि कुछ ऐसी सुविधाएं हैं जो छात्रों को उपलब्ध हैं। खेल निदेशक और व्याख्याता शारीरिक शिक्षा छात्रों को खेलों में उनकी रुचि विकसित करने में मदद करते हैं और उन्हें स्वीकार्य मानकों पर प्रशिक्षित करते हैं।`, - dept1: + dept:[ 'विद्यार्थियों और स्टाफ सदस्यों के स्वास्थ्य की देखभाल के लिए जिम्नेजियम सेंटर की व्यवस्था की गई है। इसमें विभिन्न शारीरिक व्यायाम के लिए नवीनतम और अत्याधुनिक उपकरण लगे हुए हैं।', - dept2: + 'सभी खेल और खेल गतिविधियों का निर्देशन एक खेल समिति द्वारा किया जाता है जिसमें अध्यक्ष खेल, खेल निदेशक, व्याख्याता शारीरिक शिक्षा, विभिन्न खेलों के प्रभारी प्रोफेसर और विभिन्न खेलों के कप्तान शामिल होते हैं। समिति खेल और खेलों के लिए नीतियां और कार्यक्रम निर्धारित करने के लिए जिम्मेदार है।', - dept3: - 'इंजीनियरिंग छात्रों को शारीरिक रूप से स्वस्थ रखने के लिए, 2006-07 से प्रथम एवं द्वितीय सेमेस्टर में एक क्रेडिट के साथ शारीरिक शिक्षा एवं खेल को अनिवार्य विषय के रूप में शुरू किया गया है।', + + 'इंजीनियरिंग छात्रों को शारीरिक रूप से स्वस्थ रखने के लिए, 2006-07 से प्रथम एवं द्वितीय सेमेस्टर में एक क्रेडिट के साथ शारीरिक शिक्षा एवं खेल को अनिवार्य विषय के रूप में शुरू किया गया है।',], facilities: 'परिसर में छात्रों के लिए खेलकूद के लिए विस्तृत और सुव्यवस्थित मैदान उपलब्ध हैं। बैडमिंटन कोर्ट, कोर्ट के चारों ओर चेन लिंक आयरन मेस के साथ टेनिस कोर्ट, क्रिकेट पिच, लाइट के साथ वॉलीबॉल कोर्ट और चेन लिंक आयरन मेस एनक्लोजर और बास्केटबॉल और स्टेडियम आदि की सुविधाएं छात्रों के लिए उपलब्ध हैं। प्रशिक्षित खेल कर्मी छात्रों को खेलों में उनकी रुचि विकसित करने में मदद करते हैं और उन्हें स्वीकार्य मानकों पर प्रशिक्षित करते हैं।', gallery: 'गैलरी', diff --git a/i18n/translations.ts b/i18n/translations.ts index e410f010..6c76307f 100644 --- a/i18n/translations.ts +++ b/i18n/translations.ts @@ -233,9 +233,8 @@ export interface Translations { about: string; prize: string; department: string; - dept1: string; - dept2: string; - dept3: string; + dept: string[]; + facilities: string; gallery: string; employeeTable: { From cc16f25d1df3112379d1316ceec876f8683f5b3b Mon Sep 17 00:00:00 2001 From: Soumil Jain Date: Mon, 3 Feb 2025 23:38:54 +0530 Subject: [PATCH 3/3] sport --- .../institute/sections/sports/page.tsx | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/app/[locale]/institute/sections/sports/page.tsx b/app/[locale]/institute/sections/sports/page.tsx index aa309cb2..c387fc37 100644 --- a/app/[locale]/institute/sections/sports/page.tsx +++ b/app/[locale]/institute/sections/sports/page.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { Suspense } from 'react'; import Heading from '~/components/heading'; import ImageHeader from '~/components/image-header'; @@ -80,16 +80,25 @@ export default async function Sports({ - {await DelayedStaff({ - id: section.id, - headId: section.headFacultyId, - localeText: { - fullName: text.sports.name, - email: text.sports.mail, - phone: text.sports.phone, - headPosition: text.sports.designation - } - })} + + + Loading... + + + } + > + +

{text.sports.department}

@@ -132,7 +141,6 @@ const DelayedStaff = async ({ id: number; headId: number; localeText: { - fullName: string; email: string; phone: string; headPosition: string;