Skip to content
Merged
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
8 changes: 4 additions & 4 deletions components/DetailedCIECalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ export default function DetailedCIECalculator({ courseType, cieMarks, handleMark
<>
<h4 className="col-span-full text-lg font-semibold text-emerald-400 flex items-center gap-2 border-b border-emerald-500/30 pb-2">
<span className="w-2 h-2 bg-emerald-400 rounded-full"></span>
Quizzes (Total 5 Marks)
Quizzes (20 reduced to 10 Marks)
</h4>
<InputField name="quiz1" label="Quiz 1" placeholder="Quiz marks" value={cieMarks.quiz1} onChange={handleMarkChange} />
<InputField name="quiz2" label="Quiz 2" placeholder="Quiz marks" value={cieMarks.quiz2} onChange={handleMarkChange} />
<InputField name="quiz1" label="Quiz 1" placeholder="Out of 10" value={cieMarks.quiz1} onChange={handleMarkChange} />
<InputField name="quiz2" label="Quiz 2" placeholder="Out of 10" value={cieMarks.quiz2} onChange={handleMarkChange} />

<h4 className="col-span-full mt-4 text-lg font-semibold text-emerald-400 flex items-center gap-2 border-b border-emerald-500/30 pb-2">
<span className="w-2 h-2 bg-emerald-400 rounded-full"></span>
Tests (50 reduced to 25 Marks)
Tests (50 reduced to 20 Marks)
</h4>
<InputField name="test1" label="Test 1" placeholder="Out of 25" value={cieMarks.test1} onChange={handleMarkChange} />
<InputField name="test2" label="Test 2" placeholder="Out of 25" value={cieMarks.test2} onChange={handleMarkChange} />
Expand Down
20 changes: 20 additions & 0 deletions components/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,25 @@ const RESOURCES = [
{ title: 'CodeWithHarry (YouTube)', url: 'https://youtube.com/@CodeWithHarry', description: 'Programming tutorials in Hindi — C, Python, web dev & more' },
],
},
{
category: 'RVCE Study Materials (GitHub)',
icon: (
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.009-.868-.013-1.703-2.782.604-3.369-1.341-3.369-1.341-.454-1.155-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0112 6.836c.85.004 1.705.115 2.504.337 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.202 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.744 0 .267.18.578.688.48C19.138 20.163 22 16.418 22 12c0-5.523-4.477-10-10-10z" />
</svg>
),
color: 'purple',
items: [
{ title: 'RVCE 1st Sem C-Cycle 2025 Resources', url: 'https://github.com/shield44-project/rvce-1st-sem-c-cycle-2025-scheme-resources', description: 'C-Cycle Sem 1 study materials for the 2025 scheme' },
{ title: 'First Years Archive (2022 Scheme)', url: 'https://github.com/aditya-bhandari-cd23/FIRST-YEARS-ARCHIVE', description: 'Archived first-year resources for the 2022 scheme' },
{ title: 'Second Years Archive (2022 Scheme)', url: 'https://github.com/aditya-bhandari-cd23/SECOND-YEARS-ARCHIVE', description: 'Archived second-year resources for the 2022 scheme' },
{ title: '1st Year Resources (2022 Scheme)', url: 'https://github.com/AnanthMAthreya/1st-year-resources-2022-scheme-rvce', description: 'Notes, assignments, and materials for RVCE 1st year' },
{ title: '2nd Year Resources (2022 Scheme)', url: 'https://github.com/AnanthMAthreya/2nd-year-resources-2022-scheme-rvce', description: 'Notes, assignments, and materials for RVCE 2nd year' },
{ title: '3rd Year Resources (2022 Scheme)', url: 'https://github.com/AnanthMAthreya/3rd-year-resources-2022-scheme-rvce', description: 'Notes, assignments, and materials for RVCE 3rd year' },
{ title: '4th Year Resources (2022 Scheme)', url: 'https://github.com/AnanthMAthreya/4th_year_resources_2022_scheme_RVCE', description: 'Notes, assignments, and materials for RVCE 4th year' },
{ title: 'NPTEL Study Materials', url: 'https://github.com/AnanthMAthreya/NPTEL_Study_Materials', description: 'Curated NPTEL study materials for RVCE students' },
],
},
{
category: 'Tools & Productivity',
icon: (
Expand All @@ -75,6 +94,7 @@ const colorMap = {
teal: { icon: 'bg-teal-500/10 border-teal-500/20 text-teal-400', link: 'hover:text-teal-400', badge: 'text-teal-400' },
orange: { icon: 'bg-orange-500/10 border-orange-500/20 text-orange-400', link: 'hover:text-orange-400', badge: 'text-orange-400' },
amber: { icon: 'bg-amber-500/10 border-amber-500/20 text-amber-400', link: 'hover:text-amber-400', badge: 'text-amber-400' },
purple: { icon: 'bg-purple-500/10 border-purple-500/20 text-purple-400', link: 'hover:text-purple-400', badge: 'text-purple-400' },
};

export default function Resources() {
Expand Down
12 changes: 7 additions & 5 deletions lib/calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,19 @@ export const calculateMathsCIE = (cieMarks) => {
};

// Rubric for Kannada CIE (HS12XKB)
// 2 quizzes (5 total), 2 tests (50 reduced to 25), EL 20 = 50 CIE
// 2 quizzes (10 each, total 20 reduced to 10), 2 tests (25 each, total 50 reduced to 20), EL 20 = 50 CIE
export const calculateKannadaCIE = (cieMarks) => {
const { quiz1, quiz2, test1, test2, expLearning } = cieMarks;

// 2 quizzes, total 5 marks
const quizTotal = (Number(quiz1) || 0) + (Number(quiz2) || 0); // Out of 5
// 2 quizzes, each out of 10, total 20 reduced to 10
const quiz1Value = Number(quiz1) || 0;
const quiz2Value = Number(quiz2) || 0;
const quizTotal = ((quiz1Value + quiz2Value) / 20) * 10; // Total 20 reduced to 10

// 2 tests, each out of 25, total 50 reduced to 25
// 2 tests, each out of 25, total 50 reduced to 20
const test1Value = Number(test1) || 0; // Out of 25
const test2Value = Number(test2) || 0; // Out of 25
const testTotal = (test1Value + test2Value) * 0.5; // Total 50 reduced to 25 (multiply by 0.5)
const testTotal = ((test1Value + test2Value) / 50) * 20; // Total 50 reduced to 20

const expLearningValue = Number(expLearning) || 0; // Out of 20

Expand Down
23 changes: 4 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading