Skip to content

Commit

Permalink
Home page (#112)
Browse files Browse the repository at this point in the history
* completed about us component

* add test and snapshot

* upadeted with being responsive

* added padding

* added padding

* updated index

* new index

* renamed to index

* delete Components

* added the homepage to the routing

Co-authored-by: Allan <[email protected]>
Co-authored-by: allan <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2022
1 parent b905d39 commit 8bfe196
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import Navbar from "./components/Navbar/Navbar";
import SignUp from "./components/signup/SignUp";
import Login from "./components/Login/Login";
import AboutPage from "./pages/about-us";
import Index from "./pages/index";

function App() {
return (
<div>
<Navbar />
<Routes>
<Route path="/" element={<h1>Home page</h1>} />
<Route path="/" element={<Index />} />
<Route path="/sign-up" element={<SignUp />} />
<Route path="/login" element={<Login />} />
<Route path="/about-us" element={<AboutPage />} />
Expand Down
36 changes: 36 additions & 0 deletions src/components/AboutUsComponent.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from "react";

function AboutUsComponent() {
return (
<div className=" large:space-x-10 medium:space-x-10 pt-8 pb-6 small:pt-6">
<div className="small:text-center medium:text-center large:text-center small:mb-6 medium:pt-4 medium:mb-4">
<h1 className="font-semibold text-5xl ml-56 small:ml-8 medium:ml-8 large:ml-8 text-green-600 ">
{" "}
About <span className="text-secondary ">Us?</span>
</h1>
</div>

<div className="md:flex small:pr-3 small:pl-3 md:p-8 text-center md:text-left space-y-4 pb-12 space-x-19 medium:space-x-19 large:space-x-1 ">
<img
className="ml-56 large:ml-36 mx-auto md:w-96 medium:mb-3 small:ml-0 medium:ml-0 large:ml-0 medium:justify-start"
src="/aboutus.jpg"
alt=""
/>

<p className="w-3/6 medium:pr-3 text-justify small:justify small:w-fit small:ml-3 small:mr-3 medium:justify medium:w-fit medium:ml-3 medium:mr-3 ">
Our Mission is to build a bridge those who need a job and the ones who
needs someone to do the job for them this platform makes connections
easier and faster, in a community where the tech sector is growing
rapidly the demand for tech professionals is geowing as well we strive
to put job seekers first giving them free access to search for jobs
post resumes and research companies. Every day we connect millions of
people to new opportunities. but of courde this also allows companies
find the right candidate faster putting themselves out there and
allowing job seekers to see their open positions.
</p>
</div>
</div>
);
}

export default AboutUsComponent;
8 changes: 8 additions & 0 deletions src/components/AboutUsComponent.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import renderer from "react-test-renderer";

import AboutUsComponent from "./AboutUsComponent";

it("renders correctly when the component matches the snapshot", () => {
const tree = renderer.create(<AboutUsComponent />).toJSON();
expect(tree).toMatchSnapshot();
});
37 changes: 37 additions & 0 deletions src/components/__snapshots__/AboutUsComponent.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders correctly when the component matches the snapshot 1`] = `
<div
className=" large:space-x-10 medium:space-x-10 pt-8 pb-6 small:pt-6"
>
<div
className="small:text-center medium:text-center large:text-center small:mb-6 medium:pt-4 medium:mb-4"
>
<h1
className="font-semibold text-5xl ml-56 small:ml-8 medium:ml-8 large:ml-8 text-green-600 "
>
About
<span
className="text-secondary "
>
Us?
</span>
</h1>
</div>
<div
className="md:flex small:pr-3 small:pl-3 md:p-8 text-center md:text-left space-y-4 pb-12 space-x-19 medium:space-x-19 large:space-x-1 "
>
<img
alt=""
className="ml-56 large:ml-36 mx-auto md:w-96 medium:mb-3 small:ml-0 medium:ml-0 large:ml-0 medium:justify-start"
src="/aboutus.jpg"
/>
<p
className="w-3/6 medium:pr-3 text-justify small:justify small:w-fit small:ml-3 small:mr-3 medium:justify medium:w-fit medium:ml-3 medium:mr-3 "
>
Our Mission is to build a bridge those who need a job and the ones who needs someone to do the job for them this platform makes connections easier and faster, in a community where the tech sector is growing rapidly the demand for tech professionals is geowing as well we strive to put job seekers first giving them free access to search for jobs post resumes and research companies. Every day we connect millions of people to new opportunities. but of courde this also allows companies find the right candidate faster putting themselves out there and allowing job seekers to see their open positions.
</p>
</div>
</div>
`;
Empty file removed src/pages/contact-us/index.js
Empty file.
94 changes: 94 additions & 0 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import React from "react";
import Categories from "../components/Categories/Categories";
import CompanyShowcaseComponent from "../components/companyShowcaseComponent/CompanyShowcaseComponent";
import Hero from "../components/Hero/Hero";
import JobsShowcase from "../components/JobsShowcase/JobsShowcase";
import LatestJobs from "../components/LatestJob/LatestJobs";
import { showCaseData } from "../data/showCaseData";
import { showcaseData } from "../data";

const data = [
{
position: "Web Developer f",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: true,
partTime: false,
remote: false,
id: 1,
},
{
position: "Web Developer p",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: false,
partTime: true,
remote: false,
id: 2,
},
{
position: "Web Developer fr",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: true,
partTime: false,
remote: true,
id: 3,
},
{
position: "Web Developer pr",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: false,
partTime: true,
remote: true,
id: 4,
},
{
position: "Web Developer fr",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: true,
partTime: false,
remote: true,
id: 5,
},
{
position: "Web Developer r",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: false,
partTime: false,
remote: true,
id: 6,
},
{
position: "Web Developer fp",
salary: "2000$-3000$",
date: "10/10/2022",
fullTime: true,
partTime: true,
remote: false,
id: 7,
},
];
const header = [
{ title: "Position", id: 1 },
{ title: "Salary", id: 2 },
{ title: "Date", id: 3 },
{ title: "", id: 4 },
];

function Index() {
return (
<div>
<Hero />
<JobsShowcase showcaseArray={showcaseData} />
<Categories />
<LatestJobs data={data} headers={header} />
<CompanyShowcaseComponent showCaseData={showCaseData} />
</div>
);
}

export default Index;
13 changes: 11 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,16 @@
debug "^4.1.0"
globals "^11.1.0"

"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
version "7.20.0"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.0.tgz#52c94cf8a7e24e89d2a194c25c35b17a64871479"
integrity sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==
dependencies:
"@babel/helper-string-parser" "^7.19.4"
"@babel/helper-validator-identifier" "^7.19.1"
to-fast-properties "^2.0.0"

"@babel/types@^7.20.2":
version "7.20.2"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.2.tgz#67ac09266606190f496322dbaff360fdaa5e7842"
integrity sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==
Expand Down Expand Up @@ -8691,7 +8700,7 @@ react-i18next@^12.0.0:

"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.0.0, react-is@^18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"
resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz"
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==

react-is@^16.13.1, react-is@^16.7.0:
Expand Down

0 comments on commit 8bfe196

Please sign in to comment.