[Website] Add Auth0 when ready (#440)

* Add auth0

* Style tweaks in line with wp
This commit is contained in:
Jimmy Merritello authored and GitHub committed 2020-09-25 14:12:35 -05:00
1 parent ed16401aca
commit f7ac991d32
4 files changed
+19 -12

No files matched your search

@@ -3,7 +3,7 @@
bottom: 0;
width: 100vw;
z-index: 3;
padding: 1rem;
padding: 1rem 2rem;
text-align: center;
background: var(--black);
color: var(--white);
@@ -16,10 +16,9 @@
}
}
.loadingIconSpin {
transform: translateY(-100px);
}
.loggedInText {
margin: 0 1rem;
margin: 1rem 1rem;
@media (--medium-up) {
margin: 0 1rem;
}
}
+1 -4
View File
@@ -1,13 +1,10 @@
import { signOut, useSession } from 'next-auth/client'
import LoadingIcon from './loading.svg?include'
import InlineSvg from '@hashicorp/react-inline-svg'
import styles from './auth-indicator.module.css'
import Button from '@hashicorp/react-button'
export default function AuthIndicator() {
const [session, loading] = useSession()
if (loading)
return <InlineSvg className={styles.loadingIconSpin} src={LoadingIcon} />
if (loading) return `Loading...`
return (
<div className={styles.authIndicator}>
{session && (