-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from CodeForPhilly/paul/login-page
Paul/login page
- Loading branch information
Showing
27 changed files
with
531 additions
and
200 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import App from "./App.tsx"; | ||
import { Provider } from "react-redux"; | ||
import { createBrowserRouter, RouterProvider } from "react-router-dom"; | ||
import routes from "./routes/routes"; | ||
|
||
import { store } from "./services/store.tsx"; | ||
import { store } from "./services/store"; | ||
|
||
const router = createBrowserRouter(routes); | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
<React.StrictMode> | ||
<Provider store={store}> | ||
<App /> | ||
<RouterProvider router={router} /> | ||
</Provider> | ||
</React.StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import linkIcon from './link.svg' | ||
import loader from './loader.svg' | ||
import copy from './copy.svg' | ||
import logo from './logo.svg' | ||
import tick from './tick.svg' | ||
// TODO: swap in react-icons instead of svg? | ||
|
||
export { | ||
linkIcon, | ||
loader, | ||
copy, | ||
logo, | ||
tick | ||
} | ||
import linkIcon from "./link.svg"; | ||
import loader from "./loader.svg"; | ||
import copy from "./copy.svg"; | ||
import logo from "./logo.svg"; | ||
import tick from "./tick.svg"; | ||
|
||
export { linkIcon, loader, copy, logo, tick }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import logo from "../../assets/balancer.png"; | ||
import { Link } from "react-router-dom"; | ||
import { useLocation } from "react-router-dom"; | ||
|
||
const Header = () => { | ||
const { pathname } = useLocation(); | ||
|
||
return ( | ||
<header className="w-full flex justify-center items-center flex-col"> | ||
<nav className="flex justify-between items-center w-full pt-3"> | ||
<Link to="/"> | ||
<img src={logo} alt="logo" className="w-28 object-contain" /> | ||
</Link> | ||
{pathname === "/" && ( | ||
<> | ||
<Link to="/login" className="hover:text-blue-600 font-bold"> | ||
Login | ||
</Link> | ||
<Link to="/register" className="hover:text-blue-600 font-bold"> | ||
Register | ||
</Link> | ||
</> | ||
)} | ||
<a | ||
href="https://codeforphilly.org/" | ||
target="_blank" | ||
className="black_btn"> | ||
Code for Philly | ||
</a> | ||
</nav> | ||
|
||
<h1 className="head_text"> | ||
{/* AI-powered Bipolar Medication: <br className="max-md:hidden" /> */} | ||
<span className="orange_gradient">Balancer</span> | ||
</h1> | ||
<h2 className="desc"> | ||
Balancer is an innovative AI-powered web application designed to assist | ||
psychiatrists in selecting the most appropriate bipolar medication for | ||
first-time patients. It is open-source and free to use | ||
</h2> | ||
</header> | ||
); | ||
}; | ||
|
||
export default Header; |
Oops, something went wrong.