Skip to content

Commit 623c82d

Browse files
feat: added route for contact page in app.jsx
- added contact page (responsive)
1 parent 5a9be47 commit 623c82d

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

src/App.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import About from './pages/About';
1010
import Landing from './pages/Home';
1111
import Student from './pages/Student';
1212
import Album_Image from './pages/Album_Image';
13+
import ContactUs from './components/ContactUs';
1314
const App = () => {
1415
return (
1516
<>
@@ -27,6 +28,10 @@ const App = () => {
2728
path='/about'
2829
element={<About />}
2930
></Route>
31+
<Route
32+
path='/contact'
33+
element={<ContactUs />}
34+
></Route>
3035
<Route
3136
path='/student'
3237
element={<Student />}

src/components/ContactUs.jsx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import React from 'react'
2+
3+
const ContactUs = () => {
4+
return (
5+
<div className='w-full flex h-fit bg-[#D7D7D726] py-[10%] max-[550px]:pt-[20%] px-[6vw] justify-between max-[800px]:flex-col '>
6+
<div className='w-[40%] max-[800px]:w-full p-2 '>
7+
<h1 className='text-[3rem] font-semibold'>About Us</h1>
8+
<p>Welcome to [Institute Name], an institution dedicated to fostering innovation, knowledge, and personal growth. Our mission is to shape tomorrow’s leaders by offering exceptional educational opportunities and encouraging intellectual exploration.
9+
</p>
10+
11+
12+
<h2 className='font-semibold text-[1.2rem] mt-[.8rem] mb-[.5rem]'>Location</h2>
13+
<p>Welcome to [Institute Name], an institution dedicated to fostering innovation, knowledge, and personal growth. O</p>
14+
15+
<h2 className='font-semibold text-[1.2rem] mt-[.8rem] mb-[.5rem]'>Our Principle</h2>
16+
<p>Muhammad Muneeb and vice Principle Sammer Khan</p>
17+
18+
<h2 className='font-semibold text-[1.2rem] mt-[.8rem] mb-[.5rem]'>Phone Number</h2>
19+
<p>+92 315 4488695</p>
20+
21+
22+
<h2 className='font-semibold text-[1.2rem] mt-[.8rem] mb-[.5rem]'>Social Media Accounts</h2>
23+
<div className='flex'>
24+
insta, facebook
25+
</div>
26+
</div>
27+
28+
29+
<div className='bg-white rounded-xl w-[40%] max-[800px]:w-full h-fit p-10'>
30+
<h1 className='text-[1.2rem] font-semibold'>Feel free to ask any query</h1>
31+
<p className='text-sm w-[89%] mt-1 mb-[1vw]'> Welcome to [Institute Name], an institution dedicated to fostering innovation, knowledge, and personal growth. </p>
32+
<form >
33+
<input type="text" className='border-b p-1 w-full border-black outline-none' placeholder='Name:' />
34+
<input type="email" className='border-b p-1 w-full border-black my-10 outline-none' placeholder='Email:' />
35+
<input type="text" className='border-b p-1 w-full border-black outline-none' placeholder='Phone Number:' />
36+
37+
38+
<textarea className='p-4 bg-[#F9F9F9] outline-none w-full h-[7rem] rounded-lg my-[2vw] border border-[#D7D7D7]' placeholder='Message:' name="" id=""></textarea>
39+
40+
<button className='text-center bg-[#333333] w-full text-white py-3 text-xl rounded-lg'>Submit</button>
41+
</form>
42+
</div>
43+
</div>
44+
)
45+
}
46+
47+
export default ContactUs

0 commit comments

Comments
 (0)