Skip to content

Commit

Permalink
added login page template
Browse files Browse the repository at this point in the history
  • Loading branch information
XSTRANGER-7 committed Feb 24, 2024
1 parent da6d4c7 commit ceb18f6
Show file tree
Hide file tree
Showing 67 changed files with 2,014 additions and 106 deletions.
110 changes: 110 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.0.1",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^6.22.1",
"react-router-hash-link": "^2.4.3",
"react-scripts": "5.0.1",
"sass": "^1.71.1",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

61 changes: 43 additions & 18 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,49 @@
import logo from './logo.svg';
import './App.css';
import React from "react";
import Header from "./components/Header";
import Home from "./components/Home";
import Footer from "./components/Footer";
import {BrowserRouter as Router ,Routes, Route} from "react-router-dom";
import QuestionForm from "./components2/QuestionForm";
import Memory from "./components2/Memory";
import Sleep from "./components2/Sleep";
import YourBody from "./components2/YourBody";
import Digestion from "./components2/Digestion";
import Pain from "./components2/Pain";
import Relationship from "./components2/Relationship";
import Skin from "./components2/Skin";
import ResultPage from "./components2/ResultPage";
import Login from "./components/Login";
import Register from "./components/Register";
import "./styles/App.scss";
import "./styles/header.scss";
import "./styles/login.scss";
import "./styles/register.scss";
import "./styles/header.scss";
import "./styles/home.scss";
import "./styles/Footer.scss";
import "./styles2/questionform.css";
import "./styles/mediaquries.scss";

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<Router>
<Header/>
<Routes>
<Route path="/" element = {<Home/>}/>
<Route path="/login" element = {<Login/>}/>
<Route path="/register" element = {<Register/>}/>
<Route path="/question" element = {<QuestionForm/>}/>
<Route path="/memory" element = {<Memory/>}/>
<Route path="/sleep" element = {<Sleep/>}/>
<Route path="/yourbody" element = {<YourBody/>}/>
<Route path="/digestion" element = {<Digestion/>}/>
<Route path="/pain" element = {<Pain/>}/>
<Route path="/relationship" element = {<Relationship/>}/>
<Route path="/skin" element = {<Skin/>}/>
<Route path="/result" element = {<ResultPage/>}/>
</Routes>
<Footer/>
</Router>
);
}

Expand Down
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

Binary file added src/assets/img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img17.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img19.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img15.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img17.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets2/img2.jpg
Binary file added src/assets2/img3.jpg
Binary file added src/assets2/img4.jpg
Binary file added src/assets2/img5.jpg
Binary file added src/assets2/img6.jpg
Binary file added src/assets2/img7.jpg
Binary file added src/assets2/img8.jpg
Binary file added src/assets2/img9.jpg
24 changes: 24 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from "react";
import { AiOutlineGithub, AiOutlineInstagram, AiOutlineLinkedin, AiOutlineMail, AiOutlineTwitter, AiOutlineWhatsApp } from "react-icons/ai";
const Footer = () => {
return (
<footer>
<div className="lefty">
<h2>MentalHealth</h2>
<p>@all rights reserved</p>
<h3>Follow us on </h3>
<p>[email protected]</p>
</div>
<div className="righty">
<AiOutlineMail />
<AiOutlineWhatsApp />
<AiOutlineTwitter/>
<AiOutlineGithub/>
<AiOutlineInstagram/>
<AiOutlineLinkedin/>
</div>
</footer>
);
};

export default Footer;
22 changes: 22 additions & 0 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';
// import {Link} from "react-router-dom";
import {HashLink} from "react-router-hash-link";

const Header = () => {
return (
<nav>
<h1>MentalHealth</h1>
<main>
<HashLink to = {"/#home"}>Home</HashLink>
<HashLink to = {"/#blogs"}>Blogs</HashLink>
<HashLink to = {"/question"}>Your Score</HashLink>
<HashLink to = {"/#about"}>About</HashLink>
<HashLink to = {"/#contact"}>Contact</HashLink>
<HashLink id='register' to = {"/register"}>Register</HashLink>
<HashLink id='login' to = {"/login"}>Login</HashLink>
</main>
</nav>
)
}

export default Header;
Loading

0 comments on commit ceb18f6

Please sign in to comment.