From 2f321da3f29d180598574eac86046ea4e02eacef Mon Sep 17 00:00:00 2001 From: sarthak503 Date: Wed, 22 Dec 2021 22:29:56 +0530 Subject: [PATCH] added pg, phd pages and updated the programs page --- src/App.js | 11 ++++- src/json/navbar_data.json | 8 ++++ src/pages/pg/index.js | 76 ++++++++++++++++++++++++++++++++ src/pages/phd/index.js | 76 ++++++++++++++++++++++++++++++++ src/pages/programs/index.js | 12 +---- src/pages/undergraduate/index.js | 37 +--------------- 6 files changed, 172 insertions(+), 48 deletions(-) create mode 100644 src/pages/pg/index.js create mode 100644 src/pages/phd/index.js diff --git a/src/App.js b/src/App.js index 90bfbb2..94cc50c 100644 --- a/src/App.js +++ b/src/App.js @@ -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, @@ -296,6 +303,8 @@ function App() { + + diff --git a/src/json/navbar_data.json b/src/json/navbar_data.json index a0e224b..3a6527d 100644 --- a/src/json/navbar_data.json +++ b/src/json/navbar_data.json @@ -134,6 +134,14 @@ "text": "Undergraduate", "link": "/undergraduate" }, + { + "text": "Postgraduate", + "link": "/pg" + }, + { + "text": "PhD Programs", + "link": "/phd" + }, { "text": "FAQ's", "link": "/faq" diff --git a/src/pages/pg/index.js b/src/pages/pg/index.js new file mode 100644 index 0000000..ae073f0 --- /dev/null +++ b/src/pages/pg/index.js @@ -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 ( +
+ + + + + + + Postgraduates + + +
+ M.Tech Regulations + + Download M.Tech regulations + +
+
+
+
+ ); +} diff --git a/src/pages/phd/index.js b/src/pages/phd/index.js new file mode 100644 index 0000000..6e6264e --- /dev/null +++ b/src/pages/phd/index.js @@ -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 ( +
+ + + + + + + Ph.D programs + + +
+ Ph.D Regulations + + Download Ph.D regulations + +
+
+
+
+ ); +} diff --git a/src/pages/programs/index.js b/src/pages/programs/index.js index dd7f661..4a8dd0c 100644 --- a/src/pages/programs/index.js +++ b/src/pages/programs/index.js @@ -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 ( @@ -106,10 +104,7 @@ export default function AdmissionFeeStructure() { Postgraduate Program - M.Tech Regulations - - Download M.Tech regulations - + IIIT Tiruchirappalli offers the following two  @@ -150,11 +145,6 @@ export default function AdmissionFeeStructure() { - Ph.D Regulations - - Download Ph.D regulations - - IIIT Tiruchirappalli offers the   diff --git a/src/pages/undergraduate/index.js b/src/pages/undergraduate/index.js index ad26de4..954c2ae 100644 --- a/src/pages/undergraduate/index.js +++ b/src/pages/undergraduate/index.js @@ -71,42 +71,7 @@ export default function Undergraduate() { Undergraduate (B. Tech.) - - 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. - - - IIIT Trichy offers the following two  - - Undergraduate Programs - - : - -
    -
  • - - Computer Science and Engineering (4 years, Bachelor of - Technology) - -
  • -
  • - - Electronics and Communication Engineering (4 years, Bachelor of - Technology) - -
  • -
+ Rules and Regulations for B.Tech.(CSE/ECE/IT)