Skip to content

Commit 29bad2b

Browse files
committed
subjects cleanup
1 parent 3c9dfe9 commit 29bad2b

35 files changed

+2656
-764
lines changed

src/components/cards/FacultySelector.tsx

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,28 @@ import { data } from '@/data/faculty';
88
import { fullCourseData } from '@/lib/type';
99
import AlertModal from '../ui/AlertModal';
1010

11-
const schools = ['SCOPE', 'SELECT', 'SCORE', 'SMEC', 'SBST', 'SCHEME', 'SENSE', 'SCE', 'MID_5YEAR'];
11+
const schools = [
12+
'SCOPE',
13+
'SCORE',
14+
'SELECT',
15+
'SMEC',
16+
'SBST',
17+
'SCHEME',
18+
'SENSE',
19+
'SCE',
20+
'SHINE',
21+
'MTech',
22+
'SCOPE (Fresher)',
23+
'SCORE (Fresher)',
24+
'SELECT (Fresher)',
25+
'SMEC (Fresher)',
26+
'SBST (Fresher)',
27+
'SCHEME (Fresher)',
28+
'SENSE (Fresher)',
29+
'SCE (Fresher)',
30+
'SHINE (Fresher)',
31+
'MTech (Fresher)',
32+
];
1233

1334
type SelectFieldProps = {
1435
label: string;
@@ -632,19 +653,21 @@ export default function FacultySelector({
632653
<div>
633654
<div className="relative inline-block mb-20">
634655
<div className="font-poppins relative bg-[#A7D5D7] rounded-4xl border-3 border-black shadow-[4px_4px_0_0_black] mx-auto overflow-hidden">
635-
<div className="flex items-center gap-4 pt-4 px-4 m-4">
636-
<span className="font-semibold text-lg mr-2">Select School:</span>
637-
{schools.map(school => (
638-
<button
639-
key={school}
640-
onClick={() => handleSchoolChange(school)}
641-
className={`px-3 py-1 rounded-full text-sm font-bold border-2 shadow-[2px_2px_0_0_black] border-black cursor-pointer transition duration-100 active:shadow-[1px_1px_0_0_black] active:translate-x-[1px] active:translate-y-[1px] ${
642-
selectedSchool === school ? 'bg-[#FFEA79]' : 'bg-white'
643-
}`}
644-
>
645-
{school == 'MID_5YEAR' ? 'SCOPE(MID)' : school}
646-
</button>
647-
))}
656+
<div className="flex flex-col items-center justify-center gap-4 pt-4 px-4 m-4 text-center">
657+
{/* <span className="font-semibold text-lg">Select School:</span> */}
658+
<div className="flex flex-wrap justify-center items-center gap-2 mb-4">
659+
{schools.map(school => (
660+
<button
661+
key={school}
662+
onClick={() => handleSchoolChange(school)}
663+
className={`px-3 py-1 rounded-full text-sm font-bold border-2 shadow-[2px_2px_0_0_black] border-black cursor-pointer transition duration-100 active:shadow-[1px_1px_0_0_black] active:translate-x-[1px] active:translate-y-[1px] ${
664+
selectedSchool === school ? 'bg-[#FFEA79]' : 'bg-white'
665+
}`}
666+
>
667+
{school == 'MID_5YEAR' ? 'SCOPE (MID)' : school}
668+
</button>
669+
))}
670+
</div>
648671
</div>
649672

650673
<div className="grid grid-cols-3 gap-4 m-4 px-4">
File renamed without changes.

src/data/SCOPE/OpenElective.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
export const ScopeOpenElective = {
2+
'BHUM111L - Happiness and Well-being': [
3+
{ slot: 'A2+TA2', venue: 'SJT627', faculty: 'POONAM SHARMA' },
4+
{ slot: 'A2+TA2', venue: 'SJT802', faculty: 'TONY P JOSE' },
5+
],
26
'BHUM201L - Mass Communication': [
37
{ slot: 'E1+TE1', venue: 'SMV104', faculty: 'PRABAKAR S' },
48
{ slot: 'E2+TE2', venue: 'SMV104', faculty: 'PRABAKAR S' },
@@ -72,6 +76,12 @@ export const ScopeOpenElective = {
7276
{ slot: 'B1+TB1', venue: 'PRP126', faculty: 'SHAHID HAMID RAINA' },
7377
{ slot: 'F1+TF1', venue: 'SJT102', faculty: 'SAVITHA N' },
7478
],
79+
'BMEE201L - Engineering Mechanics': [
80+
{ slot: 'B2+TB2', venue: 'MB229', faculty: 'SREEJA SADASIVAN' },
81+
],
82+
'BMEE203L - Engineering Thermodynamics': [
83+
{ slot: 'C2+TC2', venue: 'MB306A', faculty: 'PORPATHAM E' },
84+
],
7585
'BPHY201L - Optics': [{ slot: 'F1+TF1', venue: 'PRP532', faculty: 'RAMBABU YALAVARTHI' }],
7686
'BPHY202L - Classical Mechanics': [
7787
{ slot: 'G1+TG1', venue: 'PRP534', faculty: 'SATHYA SWAROOP N.R' },

src/data/SCOPE/SE_Blockchain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const SE_Blockchain = {
1+
export const SE_BKT = {
22
'BCSE324L - Foundations of Blockchain Technology': [
33
{ slot: 'C2+TC2', venue: 'SJT421', faculty: 'MANOOV R' },
44
{ slot: 'C1+TC1', venue: 'SJT423', faculty: 'DEEPIKAA S' },

src/data/SCOPE/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import { ScopeDisciplineCore } from './DiscliplineCore';
44
import { ScopeFoundationCore } from './FoundationCore';
55
import { ScopeOpenElective } from './OpenElective';
66
import { SE_AIML } from './SE_AIML';
7-
import { SE_Blockchain } from './SE_Blockchain';
7+
import { SE_BKT } from './SE_Blockchain';
88
import { SE_DS } from './SE_DS';
99
import { SE_IOT } from './SE_IOT';
1010
import { SE_IS } from './SE_IS';
1111
import { SE_BCB } from './SE_BCB';
1212

1313
export const SCOPE_LIST = {
1414
FoundationCore: ScopeFoundationCore,
15-
OpenElective: ScopeOpenElective,
15+
DisciplineLinkedEngineeringSciences: ScopeDisciplineLinked,
1616
DisciplineElective: ScopeDisciplineElective,
1717
DisciplineCore: ScopeDisciplineCore,
18-
DisciplineLinkedEngineeringSciences: ScopeDisciplineLinked,
19-
'SpecializationElective - BCI': SE_IS,
20-
'SpecializationElective - BAI': SE_AIML,
21-
'SpecializationElective - BDS': SE_DS,
22-
'SpecializationElective - BCT': SE_IOT,
23-
'SpecializationElective - BKT': SE_Blockchain,
24-
'SpecializationElective - BCB': SE_BCB,
18+
OpenElective: ScopeOpenElective,
19+
'Specialization Elective - BCI': SE_IS,
20+
'Specialization Elective - BAI': SE_AIML,
21+
'Specialization Elective - BDS': SE_DS,
22+
'Specialization Elective - BCT': SE_IOT,
23+
'Specialization Elective - BKT': SE_BKT,
24+
'Specialization Elective - BCB': SE_BCB,
2525
};

0 commit comments

Comments
 (0)