Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: awards #184

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 101 additions & 3 deletions app/[locale]/academics/awards/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,107 @@
import WorkInProgress from '~/components/work-in-progress';
import { ReactNode } from 'react';

export default function Programmes({
import Heading from '~/components/heading';
import ImageHeader from '~/components/image-header';
import { getTranslations } from '~/i18n/translations';
import { cn } from '~/lib/utils';

export default async function Programmes({
params: { locale },
}: {
params: { locale: string };
}) {
return <WorkInProgress locale={locale} />;
const text = (await getTranslations(locale)).Awards;

return (
<>
<ImageHeader title="Awards" src="slideshow/image02.jpg" />
<main className="container">
{text.awards.map((award, i) => (
<AwardsCard
text={{
about: text.aboutTitle,
description: text.descriptionTitle,
criterion: text.criterionTitle,
}}
index={i}
key={i}
title={award.title}
about={award.about}
description={award.description}
>
{award.criterion && (
<>
<div className="mb-4">
<strong>{award.criterion[0]}</strong>:
</div>
<h6 className="mb-2 text-lg font-semibold">
{award.criterion[1]}
</h6>
{award.criterion.length > 2 && (
<ul className="ml-10 list-decimal space-y-2">
{award.criterion.slice(2).map((item, index) => (
<li key={index}>{item}</li>
))}
</ul>
)}
</>
)}
</AwardsCard>
))}
</main>
</>
);
}

interface AwardCardProps {
title: string;
about: string;
description?: string;
children?: ReactNode;
index: number;
text: {
about: string;
description: string;
criterion: string;
};
}

function AwardsCard({
title,
about,
children,
description,
index,
text,
}: AwardCardProps) {
return (
<>
<Heading
glyphDirection={index % 2 ? 'rtl' : 'ltr'}
heading="h4"
text={title}
/>
<section
className={cn(
'container mt-5 rounded-md border border-primary-500 p-5 shadow-lg',
index % 2 === 0 && 'bg-neutral-50'
)}
>
<h4 className="mt-4 text-xl font-semibold">{text.about}</h4>
<p className="text-gray-800 text-base">{about}</p>
{children && (
<>
<h4 className="mt-4 text-xl font-semibold">{text.criterion}</h4>
<div className="text-gray-800 text-base">{children}</div>
</>
)}
{description && (
<>
<h4 className="mt-4 text-xl font-semibold">{text.criterion}</h4>
<p className="text-gray-800 text-base">{description}</p>
</>
)}
</section>
</>
);
}
90 changes: 90 additions & 0 deletions i18n/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,96 @@
import { title } from 'process';
import type { Translations } from './translations';

const text: Translations = {
Awards: {
aboutTitle: 'About',
descriptionTitle: 'Description',
criterionTitle: 'criterion',
awards: [
{
title: 'Best All-Rounder Award',
about:
'B.Tech. students passing out of the institute can complete this award which carries a certificate, a cash prize and citation of the name of the winner in the Roll of Honour. Students are selected on the basis of their performance in studies and extra mural activities during the entire period of their stay in the Institute.',
description:
'Marks would be deducted from the above for cases involving indiscipline on the part of the candidate. Students who have been awarded punishment for a major indiscipline would not be eligible for the award of marks under (a) to (e) above. For example, if a student has been expelled from the Institute for any period he/she would be awarded Zero marks in the sub-head (a) to (e). If the score of a candidate under any-head (a) to (e) is less than 40% he/she shall be awarded zero marks under the sub-head.',
criterion: [
'Academic Performance 50%',
' Extra-Curricular Activities: The distribution of these marks shall be as under:',
'Sports 15%',
'NCC/NSS 7.5%',
'Clubs 15%',
'Student’s Executive 5% Committee',
'Student Council 2.5%',
],
},
{
title: 'Best Sportsman Trophy',
about:
'Students of B.Tech. who get the highest marks in a semester examination are awarded prizes of the value of Rs. 2501- in the form of technical books. Outgoing final year students are awarded this amount in cash. Provision also exists for a.Second Best Sportsman award with a cash prize of Rs. 2001- and a trophy.',
description:
'Marks would be deducted from the above for cases involving indiscipline on the part of the candidate. Students who have been awarded punishment for a major indiscipline would not be eligible for the award of marks under (a) to (e) above. For example, if a student has been expelled from the Institute for any period he/she would be awarded Zero marks in the sub-head (a) to (e). If the score of a candidate under any-head (a) to (e) is less than 40% he/she shall be awarded zero marks under the sub-head.',
criterion: [
'In order to award the Best Sportsman trophy, the candidates will be awarded marks as follows :',
'Inter State (National Senior) 9 marks',
'Inter State (National Junior) 7 marks',
'Inter University 5 marks',
'Inter District (National Senior) 4 marks',
'Inter District (National Junior) 3 marks',
],
},
{
title: 'General Fitness and Professional Aptitude Marks',
about:
'An award of Rs. 50001- has been instituted from the year 1989-90 for the best technical working model of the year. All students of the Institute are eligible to complete.',
},
{
title: 'Best Sportsman Trophy',
about:
'Students are encouraged to actively pursure sports, co-curricular activities and social service, to develop their personalities of the full. Their achievements in these fields are reflected in the marks achieved by them in General Fitness and Professional Aptitude. Sixty five marks have been allocated under this head in the scheme of examination for B.Tech. degree course.',
description:
'Marks would be deducted from the above for cases involving indiscipline on the part of the candidate. Students who have been awarded punishment for a major indiscipline would not be eligible for the award of marks under (a) to (e) above. For example, if a student has been expelled from the Institute for any period he/she would be awarded Zero marks in the sub-head (a) to (e). If the score of a candidate under any-head (a) to (e) is less than 40% he/she shall be awarded zero marks under the sub-head. Marks proportional to the achievements of the students in various fields, shall be awarded to them by the Director at the tie of the final comprehensive vivavoce examination of the end of the VIII semester. Students claiming competitive excellence in any of the activities (Sports/Clubs/Magazine/NSS/NCC, etc.) may apply to the Director for award of marks after having their claims verified by the respective teachers in-charge of the activities in which excellence is claimed. A committee comprising of the President Clubs, President Sports, Staff Editor Institute Magazine and Teacher in-charge NSS assists the Director in shifting the claims of the students and recommends the award of marks to them. Students who may have indulged in acts of indiscipline or taken part in a I J undesirable activity during their stay in the Insitute will stand to loose marks for I conduct in direct proportion to the severity of offence(s) committed by them. No marks under this head (conduct) will be awarded to student who have been ‘resticated’ from the Institute.',
criterion: [
'In order to award the Best Sportsman trophy, the candidates will be awarded marks as follows :',
'Academic Record 12 marks',
'Conduct 12 marks',
'Inter University 5 marks',
'Sports and co-curricular activities 20 marks',
'General Impression 15 marks',
],
},
{
title: 'DR. R.P. SINGH Silver Medal',
about:
'Silver Medal in the memory of Late Dr. R.P. Singh to be awarded to the toppers in 1 st, 2nd, 3rd year in Mechanical Engineering.',
},
{
title: 'GURU HARKRISHAN, EDUCATIONAL SOCIETY, CHANDIGARH',
about:
'The society has instituted a prize of Rs. 501/- for the overall topper of all the disciplines of B.Tech. Degree Course.',
},
{
title: 'Haryana State Industrial Development Corporation Ltd.',
about:
'The Corporation has instituted Merit-cum-Means Scholarship to students belonging to Haryana pursuing engineering courses at the Institute in the disciplines of Civil, Computer and Mechanical Engineering. The scholarship amount of Rs. 500/- per month, for a period of ten months.',
},
{
title: 'MEDALS',
about:
'Gold Medal alongwith a cash award of Rs. 5,000/- for the students who secure 1st position in the final examination in the above mentioned disciplines of NIT Kurukshetra.',
},
{
title:
'HARYANA STATE ELECTRONICS DEVELOPMENT CORPORATION LTD. CHANDIGARH',
about:
'The Corporation has instituted Harton Gold, silver and Bronze Medals accompanied by merit certificates and cash prize of Rs. 3000/- Rs. 2000/- and Rs. 1000/- respectively in Institutes in Haryana. in the field of Electronics/Computers.',
},
{
title: 'SHRI SHYAM SUNDER DHINGRA MEDAL',
about:
'The student of 1981-86 Batch (E) Branch has instituted a Medal along with cash Prize of Rs. 5000/- in the memory of Late Sh. Shyam Sunder Dhingra to be awarded to the top Ranker of B.Tech. CE Branch with effect from 2003.',
},
],
},
Main: {
director: {
alt: 'Prof. B. V. Ramana Reddy',
Expand Down
Loading