Skip to content

Commit 596e358

Browse files
enhancement:added What is medihub section in home
1 parent 6a0fcea commit 596e358

File tree

5 files changed

+53
-2
lines changed

5 files changed

+53
-2
lines changed

frontend/public/instructorImage.png

587 KB
Loading

frontend/public/studentsImage.png

1.24 MB
Loading
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import React from "react";
2+
3+
const WhatIsMedihub = () => {
4+
return (
5+
<div className="bg-light_theme p-6 text-center md:px-10 lg:px-64">
6+
<h1 className="text-4xl font-semibold mb-4 pt-12 pb-4">
7+
What is <span className="text-main_theme">MediHub?</span>
8+
</h1>
9+
<p className="text-lg text-slate-500 mb-6 px-6 md:px-12">
10+
MediHub is a web-based platform facilitating seamless management of
11+
healthcare services, including appointments, patient records, and doctor
12+
interactions.
13+
</p>
14+
<div className="flex flex-col md:flex-row justify-center gap-8 py-12">
15+
<div className="relative bg-white rounded-lg shadow-lg overflow-hidden w-full md:w-1/2 md:mr-4">
16+
<img
17+
src="/instructorImage.png"
18+
alt="Instructors"
19+
className="w-full object-cover"
20+
/>
21+
<div className="absolute inset-0 bg-black bg-opacity-25 flex flex-col items-center justify-center space-y-4">
22+
<h2 className="text-white text-2xl font-semibold">
23+
FOR INSTRUCTORS
24+
</h2>
25+
<button className="bg-transparent border border-white text-white py-2 px-4 rounded-full">
26+
Start a Class Today
27+
</button>
28+
</div>
29+
</div>
30+
31+
<div className="relative bg-white rounded-lg shadow-lg overflow-hidden w-full md:w-1/2 md:ml-4 mt-8 md:mt-0">
32+
<img
33+
src="/studentsImage.png"
34+
alt="Students"
35+
className="w-full object-cover"
36+
/>
37+
<div className="absolute inset-0 bg-black bg-opacity-25 flex flex-col items-center justify-center space-y-4">
38+
<h2 className="text-white text-2xl font-semibold">FOR STUDENTS</h2>
39+
<button className="bg-cyan-500 text-white py-2 px-4 rounded-full">
40+
Enter Access Code
41+
</button>
42+
</div>
43+
</div>
44+
</div>
45+
</div>
46+
);
47+
};
48+
49+
export default WhatIsMedihub;

frontend/src/import-export/ImportExport.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import AboutUs from "../pages/AboutUs.jsx";
1515
import Login from "../pages/Login.jsx";
1616
import Signup from "../pages/Signup.jsx";
1717
import ErrorPage from "../pages/ErrorPage.jsx";
18+
import WhatIsMedihub from "../components/WhatIsMedihub.jsx";
1819

1920

2021
import axios from "../axios/axios.jsx";
2122

22-
export { axios, Navbar, Footer, Home, Hero, WhyUs, Contributors, Appointment, AppointmentLocation, Departments, AllDoctors, AboutUs , Login , Signup , ErrorPage};
23+
export { axios, Navbar, Footer, Home, Hero, WhyUs, Contributors, Appointment, AppointmentLocation, Departments, AllDoctors, AboutUs , Login , Signup , ErrorPage,WhatIsMedihub};

frontend/src/pages/Home.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react'
2-
import { Contributors, Hero, WhyUs, } from "../import-export/ImportExport";
2+
import { Contributors, Hero, WhatIsMedihub, WhyUs, } from "../import-export/ImportExport";
33

44
function Home() {
55
return (
66
<>
77
<Hero />
88
<WhyUs />
9+
<WhatIsMedihub/>
910
<Contributors />
1011
</>
1112
)

0 commit comments

Comments
 (0)