Merge pull request #8 from sct/feature/ch41

Login Page (Design/Route)
pull/11/head
Alex Zoitos 4 years ago committed by GitHub
commit 1647f8c049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,26 @@
import React from 'react';
import PlexLoginButton from '../PlexLoginButton';
const Login: React.FC = () => {
return (
<div className="w-full pt-10">
<form className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
<div className="flex justify-center text-gray-900 font-bold text-xl mb-2">
Overseerr
</div>
<div className="flex justify-center text-gray-900 text-sm pb-6 mb-2">
would like to sign in to your Plex account
</div>
<div className="flex items-center justify-center">
<PlexLoginButton
onAuthToken={(authToken) =>
console.log(`auth token is: ${authToken}`)
}
/>
</div>
</form>
</div>
);
};
export default Login;

@ -5,7 +5,10 @@ import Layout from '../components/Layout';
class CoreApp extends App {
public render(): JSX.Element {
const { Component, pageProps } = this.props;
const { Component, pageProps, router } = this.props;
if (router.asPath === '/login') {
return <Component {...pageProps} />;
}
return (
<Layout>
<Component {...pageProps} />

@ -0,0 +1,9 @@
import React from 'react';
import { NextPage } from 'next';
import Login from '../components/Login';
const LoginPage: NextPage = () => {
return <Login />;
};
export default LoginPage;
Loading…
Cancel
Save