-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathLoginMenuDropDown.tsx
More file actions
78 lines (69 loc) · 2.62 KB
/
LoginMenuDropDown.tsx
File metadata and controls
78 lines (69 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import React from "react";
import { Link } from "react-router-dom";
import { classNames } from "../../utils/classNames";
interface LoginMenuDropDownProps {
showLoginMenu: boolean;
handleLoginMenu: () => void;
}
const LoginMenuDropDown: React.FC<LoginMenuDropDownProps> = ({
showLoginMenu,
}) => {
return (
<>
<LoginMenu show={showLoginMenu} />
<div
className={classNames(
"flex flex-col items-center justify-center gap-y-3 text-md no-print",
showLoginMenu
? "fixed right-0 top-0 z-[200] h-full w-[100%] border-l border-l-gray-900 bg-white p-16 duration-1000 ease-in-out md:w-[65%] lg:w-[35%]"
: "fixed right-[-500%] duration-500 ease-in-out md:right-[-500%]"
)}
>
<span className="select-none relative group font-quicksand text-4xl font-bold text-transparent lg:text-3xl bg-gradient-to-r from-blue-500 via-blue-700 to-blue-300 bg-clip-text">
Balancer
<span className="absolute inset-0 -z-10 bg-gradient-to-r from-blue-500/30 via-blue-700/30 to-blue-300/30 rounded-md blur-lg opacity-0 group-hover:opacity-100 transition duration-300"></span>
</span>
<p className="mb-4">
Balancer is an interactive and user-friendly research tool for bipolar
medications, powered by Code for Philly volunteers.
</p>
<p className="mb-4">
We built Balancer{" "}
<b>
to improve the health and well-being of people with bipolar
disorder.
</b>
</p>
<p className="mb-4">
Balancer is currently still being developed, so do not take any
information on the test site as actual medical advice.
</p>
{/* <p className="mb-4">
You can log in or sign up for a Balancer account using your email,
gmail or Facebook account.
</p> */}
<Link to="/login">
<button
type="submit"
className="rounded-xl w-full bg-blue-500 font-bold text-xl md:text-lg px-24 py-2 text-white hover:bg-blue-600 text-nowrap"
>
Log in
</button>
</Link>
{/* <Link to="/register">
<button
type="submit"
className=" mt-1 w-80 rounded-xl bg-blue-500 px-24 py-2 text-white hover:bg-blue-600"
>
Sign up
</button>
</Link> */}
</div>
</>
);
};
const LoginMenu = ({ show }: { show: boolean }) => {
if (!show) return null;
return <div className="inset-0 z-[100] bg-gray-900 opacity-50 md:fixed" />;
};
export default LoginMenuDropDown;