Skip to content

Commit

Permalink
Navbar for not logged in users (#92)
Browse files Browse the repository at this point in the history
* Navbar for not logged in users

* Navbar for not loggen in users

* Navbar for not logged in users

* Navbar for not logged in users

* deleted package-lock.json

* ran yarn fix

Co-authored-by: allan <[email protected]>
  • Loading branch information
Amrashidd and AllanSaleh authored Nov 6, 2022
1 parent 03fe71a commit 645fbfd
Show file tree
Hide file tree
Showing 44 changed files with 1,600 additions and 849 deletions.
618 changes: 618 additions & 0 deletions dist/output.css

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.0.1",
"@testing-library/user-event": "^14.1.1",
"font-awesome": "^4.7.0",
"eslint-import-resolver-node": "^0.3.6",
"firebase": "^9.13.0",
"i18next": "^22.0.4",
Expand Down Expand Up @@ -67,10 +68,11 @@
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"jest": "^29.2.2",
"file-loader": "^6.2.0",
"postcss": "^8.4.17",
"prettier": "2.7.1",
"react-test-renderer": "^18.2.0",
"tailwindcss": "^3.1.8"
"tailwindcss": "^3.2.1",
"jest": "^29.2.2",
"react-test-renderer": "^18.2.0"
}
}
105 changes: 54 additions & 51 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React Redux App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js">
</script>
<script type="text/javascript">
(function(){
emailjs.init("XLaQi2fl8od8a1zHc");
})();
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React Redux App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js">
</script>
<script type="text/javascript">
(function(){
emailjs.init("XLaQi2fl8od8a1zHc");
})();
</script>
<script src="https://kit.fontawesome.com/ee6989c844.js" crossorigin="anonymous"></script>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
29 changes: 29 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions public/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"useTabs": false
}
9 changes: 6 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

import React from 'react';
import { useTranslation } from 'react-i18next';
import Navbar from "./components/Navbar/Navbar";
import AboutUsComponent from './components/AboutUsComponent/AboutUsComponent';
import Hero from './components/Hero/Hero';
import Localize from './Localize';
Expand Down Expand Up @@ -94,14 +96,15 @@ function App() {
const { t } = useTranslation();
return (
<div className="App">
<Navbar />
<Hero />
<SaveButton/>
<Categories/>
<SaveButton />
<Categories />
<WyChooseUs />
<GetInTouchForm />
<JobsShowcase showcaseArray={showcaseData} />
<Categories />
<h1>{t('hello')}</h1>
<h1>{t("hello")}</h1>
<Localize />
<HowItWorks />
<CompanyShowcaseComponent showCaseData={showCaseData} />
Expand Down
2 changes: 1 addition & 1 deletion src/Components/AboutUsComponent/AboutUsComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React from "react";

function AboutUsComponent() {
return (
Expand Down
6 changes: 3 additions & 3 deletions src/Components/AboutUsComponent/AboutUsComponent.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import renderer from 'react-test-renderer';
import renderer from "react-test-renderer";

import AboutUsComponent from './AboutUsComponent';
import AboutUsComponent from "./AboutUsComponent";

it('renders correctly when the component matches the snapshot', () => {
it("renders correctly when the component matches the snapshot", () => {
const tree = renderer.create(<AboutUsComponent />).toJSON();
expect(tree).toMatchSnapshot();
});
16 changes: 8 additions & 8 deletions src/app/store.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { configureStore } from '@reduxjs/toolkit';
import counterReducer from '../features/counter/counterSlice';

export const store = configureStore({
reducer: {
counter: counterReducer,
},
});
import { configureStore } from '@reduxjs/toolkit';
import counterReducer from '../features/counter/counterSlice';

export const store = configureStore({
reducer: {
counter: counterReducer,
},
});
116 changes: 58 additions & 58 deletions src/components/About/HowItWorks/HowItWorks.jsx
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faFileLines,
faHandshake,
faPen,
} from '@fortawesome/free-solid-svg-icons';

function HowItWorks() {
return (
<div className="container px-20 ">
<div>
<h1 className="text-left text-5xl font-inter text-secondary py-10 font-bold">
How it Works
</h1>
</div>
<div className="text-left flex justify-center flex-nowrap content-center text- font-inter gap-20 small:flex-col small:items-center medium:flex-col pb-9">
<div className=" ">
<div className="rounded-full bg-dark-gray h-16 w-16 flex items-center justify-center ">
<FontAwesomeIcon
icon={faFileLines}
className="text-3xl text-accent"
/>
</div>
<h1 className="text-3xl py-3 small:text-left">Create your resume </h1>
<p className="text-justify small:text-justify small:text-xl">
Create your resume and add your skills and experience to your
profile. You can also add your education and work experience to your
profile.
</p>
</div>
<div className=" ">
<div className="rounded-full bg-dark-gray h-16 w-16 flex items-center justify-center">
<FontAwesomeIcon icon={faPen} className="text-3xl text-accent" />
</div>
<h1 className="text-3xl py-3 small:text-left">Apply for jobs</h1>
<p className="text-justify small:text-justify small:text-xl">
Search for jobs and apply for them. You can also search for
companires and apply for their jobs.
</p>
</div>
<div className=" ">
<div className="rounded-full bg-secondary h-16 w-16 flex items-center justify-center">
<FontAwesomeIcon
icon={faHandshake}
className="text-3xl text-accent"
/>
</div>
<h1 className="text-3xl py-3">Get Hired</h1>
<p className="text-justify small:text-justify small:text-xl">
Once you have applied for a job you will be notified when the
employer has responded to your application.
</p>
</div>
</div>
</div>
);
}
export default HowItWorks;
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faFileLines,
faHandshake,
faPen,
} from "@fortawesome/free-solid-svg-icons";

function HowItWorks() {
return (
<div className="container px-20 ">
<div>
<h1 className="text-left text-5xl font-inter text-secondary py-10 font-bold">
How it Works
</h1>
</div>
<div className="text-left flex justify-center flex-nowrap content-center text- font-inter gap-20 small:flex-col small:items-center medium:flex-col pb-9">
<div className=" ">
<div className="rounded-full bg-dark-gray h-16 w-16 flex items-center justify-center ">
<FontAwesomeIcon
icon={faFileLines}
className="text-3xl text-accent"
/>
</div>
<h1 className="text-3xl py-3 small:text-left">Create your resume </h1>
<p className="text-justify small:text-justify small:text-xl">
Create your resume and add your skills and experience to your
profile. You can also add your education and work experience to your
profile.
</p>
</div>
<div className=" ">
<div className="rounded-full bg-dark-gray h-16 w-16 flex items-center justify-center">
<FontAwesomeIcon icon={faPen} className="text-3xl text-accent" />
</div>
<h1 className="text-3xl py-3 small:text-left">Apply for jobs</h1>
<p className="text-justify small:text-justify small:text-xl">
Search for jobs and apply for them. You can also search for
companires and apply for their jobs.
</p>
</div>
<div className=" ">
<div className="rounded-full bg-secondary h-16 w-16 flex items-center justify-center">
<FontAwesomeIcon
icon={faHandshake}
className="text-3xl text-accent"
/>
</div>
<h1 className="text-3xl py-3">Get Hired</h1>
<p className="text-justify small:text-justify small:text-xl">
Once you have applied for a job you will be notified when the
employer has responded to your application.
</p>
</div>
</div>
</div>
);
}
export default HowItWorks;
8 changes: 4 additions & 4 deletions src/components/About/HowItWorks/__tests__/HowItWorks.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import renderer from 'react-test-renderer';
import HowItWorks from '../HowItWorks';
it('renders Custom button correctly', () => {
import React from "react";
import renderer from "react-test-renderer";
import HowItWorks from "../HowItWorks";
it("renders Custom button correctly", () => {
const tree = renderer.create(<HowItWorks />).toJSON();
expect(tree).toMatchSnapshot();
});
Loading

0 comments on commit 645fbfd

Please sign in to comment.