From c3c6f4491a6d0801ab145dee8a7c65f87e61f936 Mon Sep 17 00:00:00 2001 From: chaitanya-codes Date: Sun, 22 Sep 2024 01:34:51 +0530 Subject: [PATCH] MAJOR CHANGES --- src/app/components/Categories.tsx | 3 - src/app/components/ResearchProjects.tsx | 11 +-- src/app/components/hero.tsx | 3 - src/app/components/project.tsx | 11 +++ src/app/research/page.tsx | 107 ++++++++++++------------ src/app/research/project/page.tsx | 40 +++++++++ 6 files changed, 108 insertions(+), 67 deletions(-) create mode 100644 src/app/components/project.tsx create mode 100644 src/app/research/project/page.tsx diff --git a/src/app/components/Categories.tsx b/src/app/components/Categories.tsx index 3ab3cb5..d31e05d 100644 --- a/src/app/components/Categories.tsx +++ b/src/app/components/Categories.tsx @@ -40,9 +40,6 @@ function getCategories(categories) { export const Categories = () => { return (
-
-

Latest Research projects opening

-

Explore by category

{getCategories(["AI/ML", "NLP", "Electronics", "Automotive", diff --git a/src/app/components/ResearchProjects.tsx b/src/app/components/ResearchProjects.tsx index 806fcb0..3b35333 100644 --- a/src/app/components/ResearchProjects.tsx +++ b/src/app/components/ResearchProjects.tsx @@ -1,14 +1,6 @@ "use client"; import React from 'react' - - -function openPage(project: string){ - if(typeof window !== "undefined"){ - alert("you clicked "+project) - } -} - function Capsule(text) { return (
{text}
@@ -47,6 +39,9 @@ function getProjects() { const ResearchProjects = () => { return (
+
+

Latest Research projects opening

+
{getProjects()}
diff --git a/src/app/components/hero.tsx b/src/app/components/hero.tsx index 7967148..c9d55db 100644 --- a/src/app/components/hero.tsx +++ b/src/app/components/hero.tsx @@ -37,9 +37,6 @@ const Hero = () => { loop: true, }} /> - {/*

500+ Internships,

-

Research opportunities

-

& Alumni Connection

*/}

Great platform for the opportunity seeker

that searching for new career heights and passionate about startups.

diff --git a/src/app/components/project.tsx b/src/app/components/project.tsx new file mode 100644 index 0000000..93c79f7 --- /dev/null +++ b/src/app/components/project.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +const project = () => { + return ( +
+ LOOOOOL +
+ ) +} + +export default project \ No newline at end of file diff --git a/src/app/research/page.tsx b/src/app/research/page.tsx index f41c943..28ebc14 100644 --- a/src/app/research/page.tsx +++ b/src/app/research/page.tsx @@ -1,70 +1,71 @@ "use client"; import Navbar from "../components/Navbar"; import SearchBar from "../components/SearchBar"; - +import { useRouter } from "next/navigation"; export default function NextPage() { - return ( -
- -
-

Find Your Dream Research Opportutinies

-
- - -
- ); - } -function selectProject(project: string) { - if (typeof window !== "undefined") { - alert("YOU CLICKED " + project + " !") + const router = useRouter(); + function selectProject(project: string) { + if (typeof window !== "undefined") { + router.push("/research/project") + } } -} -function Capsule(text) { - return ( -
{text}
- ) -} + function Capsule(text) { + return ( +
{text}
+ ) + } -function getProjects() { - const projects = ["Quantum Dot-Assisted Photonic Signal ", "AI-Driven Traffic Flow Optimization", "Biosensor-Enhanced Disease Detection", "Graphene-Based Flexible Electronics", - "Data-Driven Predictive Healthcare", "Cognitive Load Assessment Virtual Reality", "CRISPR-Cas9 Mediated Gene Editing", "Smart City Development Through IoT"]; + function getProjects() { + const projects = ["Quantum Dot-Assisted Photonic Signal ", "AI-Driven Traffic Flow Optimization", "Biosensor-Enhanced Disease Detection", "Graphene-Based Flexible Electronics", + "Data-Driven Predictive Healthcare", "Cognitive Load Assessment Virtual Reality", "CRISPR-Cas9 Mediated Gene Editing", "Smart City Development Through IoT"]; - return projects.map((project, index) => ( -
- - - - - - - - - - - - - - -
- {Capsule('Full-Time')} - {Capsule('Chemistry')} + return projects.map((project, index) => ( +
+ + + + + + + + + + + + + + +
+ {Capsule('Full-Time')} + {Capsule('Chemistry')} +
+
+ )) + } + const ResearchProjects = () => { + return ( +
+
+ {getProjects()} +
-
- )) -} + ) + } + -const ResearchProjects = () => { return (
-
- {getProjects()} + +
+

Find Your Dream Research Opportutinies

+ +
- ) + ); } - diff --git a/src/app/research/project/page.tsx b/src/app/research/project/page.tsx new file mode 100644 index 0000000..39b75a0 --- /dev/null +++ b/src/app/research/project/page.tsx @@ -0,0 +1,40 @@ +import React from 'react' +import Navbar from '@/app/components/Navbar' +import Footer from '@/app/components/Footer' + +const project = () => { + return ( +
+ +
+
+
+
+
+
Chemistry Research Professor
+
Dr. Sumit Rajdev • VIT Vellore • Part-Time
+
+ + + + + + + + + + + + + + + +
+
+
+ +
+ ) +} + +export default project \ No newline at end of file