diff --git a/components/Curriculum/SubjCard.js b/components/Curriculum/SubjCard.js index 182e24cc..47079871 100644 --- a/components/Curriculum/SubjCard.js +++ b/components/Curriculum/SubjCard.js @@ -1,11 +1,46 @@ import styles from "@styles/scss/subjcard.module.scss"; import Link from "next/link"; +import Avatar from '@mui/material/Avatar'; +// import InitialsAvatar from /'react-initials-avatar'; +// import 'react-initials-avatar/lib/ReactInitialsAvatar.css'; + +function stringToColor(string) { + let hash = 0; + let i; + + /* eslint-disable no-bitwise */ + for (i = 0; i < string.length; i += 1) { + hash = string.charCodeAt(i) + ((hash << 5) - hash); + } + + let color = '#'; + + for (i = 0; i < 3; i += 1) { + const value = (hash >> (i * 8)) & 0xff; + color += `00${value.toString(16)}`.slice(-2); + } + /* eslint-enable no-bitwise */ + + return color; +} + +function stringAvatar(name) { + return { + sx: { + bgcolor: stringToColor(name), + }, + children: `${name.split(' ')[0][0]}${name.split(' ')[0][1]}`, + }; +} const SubjCard = ({ details }) => { + return (
Computer Engineering
+ + @@ -58,6 +62,8 @@ export default function BTech() {Electronics Engineering
+ + Electrical Engineering + + Mechanical Engineering + + Engineering + + Chemical Engineering + + - diff --git a/pages/courses/mbbs/index.js b/pages/courses/mbbs/index.js new file mode 100644 index 00000000..c430df3e --- /dev/null +++ b/pages/courses/mbbs/index.js @@ -0,0 +1,61 @@ +import Header from "components/common/Header/Header"; +import styles from "@styles/Btech.module.css"; +import Footer from "components/common/Footer"; + +export default function BTech() { + const image = "/images/btech/top_bg.jpg"; + return ( + <> ++MBBS stands for "Bachelor of Medicine, Bachelor of Surgery." It is an undergraduate degree awarded to students upon completion of medical school in countries following the tradition of the United Kingdom. The MBBS program typically lasts five to six years and covers a broad range of subjects essential for a career in medicine, including anatomy, biochemistry, pharmacology, pathology, and clinical skills. +
+B.Tech
+B.Tech/B.E
B.E
+M.B.B.S