Skip to content

Commit

Permalink
added pg, phd pages and updated the programs page
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthak503 committed Dec 22, 2021
1 parent 481cddc commit 2f321da
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 48 deletions.
11 changes: 10 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,14 @@ function App() {
loader: () => import("./pages/undergraduate/index"),
loading: () => loading,
});

const Postgraduate = Loadable({
loader: () => import("./pages/pg/index"),
loading: () => loading,
});
const PHDprogram = Loadable({
loader: () => import("./pages/phd/index"),
loading: () => loading,
});
const Faq = Loadable({
loader: () => import("./pages/faqs/index"),
loading: () => loading,
Expand Down Expand Up @@ -296,6 +303,8 @@ function App() {
<Route path="/calendar" component={Calendar} />
<Route path="/holidays" component={Holidays} />
<Route path="/undergraduate" component={Undergraduate} />
<Route path="/pg" component={Postgraduate} />
<Route path="/phd" component={PHDprogram} />
<Route path="/faq" component={Faq} />
<Route path="/festivals" component={Festivals} />
<Route path="/clubs" component={Clubs} />
Expand Down
8 changes: 8 additions & 0 deletions src/json/navbar_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@
"text": "Undergraduate",
"link": "/undergraduate"
},
{
"text": "Postgraduate",
"link": "/pg"
},
{
"text": "PhD Programs",
"link": "/phd"
},
{
"text": "FAQ's",
"link": "/faq"
Expand Down
76 changes: 76 additions & 0 deletions src/pages/pg/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import React, { useEffect, useState } from "react";
import Navbar from "../../components/navbar/index";
import Footer from "../../components/footer/index";
import { Typography, Grid, Box } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";

const createStyles = makeStyles({
container: {
padding: "1rem 1rem",
},
themeText: {
color: "#2e8b57",
},
text: {
fontSize: "1.3rem",
},
subText: {
fontSize: "1.2rem",
},
list: {
listStylePosition: "inside",
marginBottom: "1rem",
},
link: {
textDecoration: "none",
display: "inline-block",
fontWeight: "500",
width: "auto",
"&:hover": {
textTecoration: "underline",
color: "blueviolet",
},
},
download: {
marginRight: "0.3rem",
position: "relative",
top: "0.3rem",
},
});

export default function Undergraduate() {
useEffect(() => {
document.getElementsByTagName("title")[0].innerHTML = "Undergraduate";
}, []);

useEffect(() => {
return () => {
document.getElementsByTagName("title")[0].innerHTML = "IIIT Trichy";
};
}, []);

const classes = createStyles();
const file = "Btech_regulations_2021.pdf";

return (
<div className="page-container">
<Navbar />
<Grid container className={classes.container}>
<Grid item xs={false} sm={1} />
<Grid item xs={12} sm={10}>
<Typography variant="h5" className={classes.themeText} gutterBottom>
<Box component="span" fontWeight="fontWeightBold">
Postgraduates
</Box>
</Typography>
<br />
<Typography variant="h6">M.Tech Regulations</Typography>
<a href={require(`../../docs/${file}`)} download={`${file}`}>
<Typography variant="h6">Download M.Tech regulations</Typography>
</a>
</Grid>
</Grid>
<Footer />
</div>
);
}
76 changes: 76 additions & 0 deletions src/pages/phd/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import React, { useEffect, useState } from "react";
import Navbar from "../../components/navbar/index";
import Footer from "../../components/footer/index";
import { Typography, Grid, Box } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";

const createStyles = makeStyles({
container: {
padding: "1rem 1rem",
},
themeText: {
color: "#2e8b57",
},
text: {
fontSize: "1.3rem",
},
subText: {
fontSize: "1.2rem",
},
list: {
listStylePosition: "inside",
marginBottom: "1rem",
},
link: {
textDecoration: "none",
display: "inline-block",
fontWeight: "500",
width: "auto",
"&:hover": {
textTecoration: "underline",
color: "blueviolet",
},
},
download: {
marginRight: "0.3rem",
position: "relative",
top: "0.3rem",
},
});

export default function Undergraduate() {
useEffect(() => {
document.getElementsByTagName("title")[0].innerHTML = "Undergraduate";
}, []);

useEffect(() => {
return () => {
document.getElementsByTagName("title")[0].innerHTML = "IIIT Trichy";
};
}, []);

const classes = createStyles();
const file = "Ph.D_regulations_IIITT_final_2020.pdf";

return (
<div className="page-container">
<Navbar />
<Grid container className={classes.container}>
<Grid item xs={false} sm={1} />
<Grid item xs={12} sm={10}>
<Typography variant="h5" className={classes.themeText} gutterBottom>
<Box component="span" fontWeight="fontWeightBold">
Ph.D programs
</Box>
</Typography>
<br />
<Typography variant="h6">Ph.D Regulations</Typography>
<a href={require(`../../docs/${file}`)} download={`${file}`}>
<Typography variant="h6">Download Ph.D regulations</Typography>
</a>
</Grid>
</Grid>
<Footer />
</div>
);
}
12 changes: 1 addition & 11 deletions src/pages/programs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export default function AdmissionFeeStructure() {
};
}, []);

const file = "Ph.D_regulations_IIITT_final_2020.pdf";
const file1 = "M.Tech_Rules_2021_22_aligned.pdf";
const classes = createStyles();

return (
Expand Down Expand Up @@ -106,10 +104,7 @@ export default function AdmissionFeeStructure() {
Postgraduate Program
</Box>
</Typography>
<Typography variant="h6">M.Tech Regulations</Typography>
<a href={require(`../../docs/${file1}`)} download={`${file1}`}>
<Typography variant="h6">Download M.Tech regulations</Typography>
</a>

<Typography className={classes.sectionPadding}>
<Box component="span" fontSize="1.2rem">
IIIT Tiruchirappalli offers the following two&nbsp;
Expand Down Expand Up @@ -150,11 +145,6 @@ export default function AdmissionFeeStructure() {
</Box>
</Typography>

<Typography variant="h6">Ph.D Regulations</Typography>
<a href={require(`../../docs/${file}`)} download={`${file}`}>
<Typography variant="h6">Download Ph.D regulations</Typography>
</a>

<Typography className={classes.sectionPadding}>
<Box component="span" fontSize="1.2rem">
IIIT Tiruchirappalli offers the &nbsp;
Expand Down
37 changes: 1 addition & 36 deletions src/pages/undergraduate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,42 +71,7 @@ export default function Undergraduate() {
Undergraduate (B. Tech.)
</Box>
</Typography>
<Typography className={classes.text} gutterBottom>
The admission to Undergraduate Programs is done through JEE Mains.
The JEE-Mains qualified candidates are admitted to UG program
through Centralized Seat Allocation Board (CSAB) and Joint Seat
Allocation Authority (JoSAA) following the reservation policy of
Government of India.
</Typography>
<Typography className={classes.text} gutterBottom>
IIIT Trichy offers the following two&nbsp;
<Box component="span" fontWeight="fontWeightBold">
Undergraduate Programs
</Box>
:
</Typography>
<ul className={classes.list}>
<li>
<Box
component="span"
fontWeight="fontWeightBold"
className={classes.subText}
>
Computer Science and Engineering (4 years, Bachelor of
Technology)
</Box>
</li>
<li>
<Box
component="span"
fontWeight="fontWeightBold"
className={classes.subText}
>
Electronics and Communication Engineering (4 years, Bachelor of
Technology)
</Box>
</li>
</ul>

<Typography variant="h5" className={classes.themeText} gutterBottom>
<Box component="span" fontWeight="fontWeightBold">
Rules and Regulations for B.Tech.(CSE/ECE/IT)
Expand Down

0 comments on commit 2f321da

Please sign in to comment.