Skip to content

Commit

Permalink
Merge pull request #54 from skye8-tech/Volunteer
Browse files Browse the repository at this point in the history
create a different branch for the volunteer page
  • Loading branch information
spykelionel authored Aug 20, 2024
2 parents 9941b9d + 70d90a2 commit 79b269f
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Faqs from "./pages/faqs/Faqs";
import CareerDetails from "./pages/careerdetails/CareerDetails";
import Blog from "./pages/Blog/Blog";
import BlogDetails from "./pages/Blog/BlogDetails";
import Volunteer from "./pages/volunteer/Volunteer"
import Event from "./pages/event/Event";
import EventDetails from "./pages/event/EventDetails";
import ApplyCareer from "./pages/applycareer/ApplyCareer";
Expand All @@ -33,13 +34,17 @@ function App() {
<Route path="/donners" element={<Donners />} />
<Route path="/causes/:id" element={<CauseDetails />} />
<Route path="/donate" element={<DonatePage />} />

<Route path="/blog" element={<Blog/>}/>
<Route path="/blog/:id" element={<BlogDetails/>}/>
<Route path="/volunteer" element={<Volunteer/>}/>

<Route path="/careerdetails" element={<CareerDetails />} />
<Route path="/blog" element={<Blog />} />
<Route path="/blog/:id" element={<BlogDetails />} />
<Route path="/event" element={<Event />} />
<Route path="/event/:id" element={<EventDetails />} />
<Route path="/applycareer" element={<ApplyCareer />} />

</Routes>
</BrowserRouter>
);
Expand Down
40 changes: 40 additions & 0 deletions src/pages/volunteer/Volunteer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from 'react'
import Header from '../../components/layout/Header'
import Footer from '../../components/layout/Footer'
import StatisticsSection from '../../components/layout/StatisticsSection'
import VolunteerForm from './components/VolunteerForm'
import Hero1 from '../../components/layout/Hero1'

const Volunteer = () => {
return (
<div>
<Header/>
<Hero1
title="Become Volunteer"
text="Home"
span="Become Volunteer"
/>


<VolunteerForm
text="Jion With Us As A Volunteer "
info="Personal"
fN=" First Name"
LN="Last Name"
Email="Email Address"
number="Phone Number"
age ="Age"
region="Region"
message="Message"



/>

<StatisticsSection/>
<Footer></Footer>
</div>
)
}

export default Volunteer
132 changes: 132 additions & 0 deletions src/pages/volunteer/components/VolunteerForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import React from "react";

function VolunteerForm (props){
const text = props.text
const info = props.info
const fN = props.fN
const LN = props.LN
const Email = props.Email
const number = props.number
const age = props.age
const region = props.region
const message = props.message



return (


<div className="bg-primary-color mt-20 mx-[420px] w-[900px] h-[700px] text-slate-200">
<h1 className="font-bold text-3xl pt-6 mx-14 ">{text}</h1>
<h2 className="font-semibold text-xl mt-3 mb-3 mx-14">{info}</h2>

<div className=" mx-14">
<form className="flex-col">
<div className="flex gap-5">
<div className="">
<label className="text-xl">{fN}</label>
<div className="pt-3">
<input
type=" text"
name="name"
placeholder="First Name "
className="bg-primary-color w-96 text-sm p-1 border rounded-md px-2 focus:outline-none"
/>
</div>
</div>

<div className="">
<label className="inline-block text-xl">{LN}</label>
<div className="pt-3">
<input
type=" text"
name="name"
placeholder="Last Name"
className="bg-primary-color w-96 text-sm p-1 border rounded-md px-2 focus:outline-none"
/>
</div>
</div>
</div>

<div className="flex gap-5 pt-6">
<div>
<label className="text-xl">{Email}</label>
<div className="pt-3">
<input
type=" text"
name="email"
placeholder="Email Address "
className="bg-primary-color w-96 text-sm p-1 border rounded-md px-2 focus:outline-none"
/>
</div>
</div>

<div>
<label className="inline-block text-xl">{number}</label>
<div className="pt-3">
<input
type=" text"
name=""
placeholder="Phone Number "
className="bg-primary-color w-96 text-sm p-1 border rounded-md px-2 focus:outline-none"
/>
</div>
</div>
</div>

<div className="flex gap-5 pt-6">
<div>
<label className="text-xl">{age}</label>
<div className="pt-3">
<input
type=" text"
name=""
placeholder="Age "
className="bg-primary-color w-96 text-sm p-1 border rounded-md px-2 focus:outline-none"
/>
</div>
</div>

<div>
<label className="inline-block text-xl">{region}</label>
<div className="pt-3">
<input
type=" text"
name=""
placeholder="Region "
className="bg-primary-color w-96 text-sm p-1 border rounded-md px-2 focus:outline-none"
/>
</div>
</div>
</div>


<div className="grid pt-6">
<label form="message" className="text-xl">
{message}
</label>

<div className="inline-block pt-3">
<textarea
name="message"
placeholder="message....."
className=" bg-primary-color w-full h-40 text-sm p-1 border rounded-md px-2 focus:outline-none"
></textarea>

</div>

</div>



<a href="#" className="border w-20 p-1 rounded mt-5 mb-3 flex">
Submit
<i className="fa fa-angle-right pr-2 px-2 pt-1"></i>
</a>
</form>
</div>
</div>
);
};

export default VolunteerForm;

0 comments on commit 79b269f

Please sign in to comment.