diff --git a/resources/scripts/TransitionRouter.tsx b/resources/scripts/TransitionRouter.tsx index eec5b4a98..10bbedab8 100644 --- a/resources/scripts/TransitionRouter.tsx +++ b/resources/scripts/TransitionRouter.tsx @@ -1,19 +1,32 @@ import React from 'react'; import { Route } from 'react-router'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; +import styled from 'styled-components'; +import { breakpoint } from 'styled-components-breakpoint'; type Props = Readonly<{ children: React.ReactNode; }>; +const ContentContainer = styled.div` + max-width: 1200px; + ${tw`mx-4`}; + + ${breakpoint('xl')` + ${tw`mx-auto`}; + `}; +`; + export default ({ children }: Props) => ( (
- {children} -
+ + {children} + +

© 2015 - 2019  ( Pterodactyl Software

-
+
diff --git a/resources/scripts/components/auth/LoginContainer.tsx b/resources/scripts/components/auth/LoginContainer.tsx index 1af30c2ba..fae4fa40d 100644 --- a/resources/scripts/components/auth/LoginContainer.tsx +++ b/resources/scripts/components/auth/LoginContainer.tsx @@ -32,8 +32,6 @@ const LoginContainer = ({ isSubmitting, setFieldValue, values, submitForm, handl handleSubmit(e); }; - console.log(values.recaptchaData); - return ( {ref.current && ref.current.render()} diff --git a/resources/scripts/components/auth/LoginFormContainer.tsx b/resources/scripts/components/auth/LoginFormContainer.tsx index 2144cb56a..68ff4a3a9 100644 --- a/resources/scripts/components/auth/LoginFormContainer.tsx +++ b/resources/scripts/components/auth/LoginFormContainer.tsx @@ -1,21 +1,40 @@ import React, { forwardRef } from 'react'; +import styled from 'styled-components'; +import { Form } from 'formik'; +import { breakpoint } from 'styled-components-breakpoint'; type Props = React.DetailedHTMLProps, HTMLFormElement>; +const LoginContainer = styled.div` + ${tw`bg-white shadow-lg rounded-lg p-6 mx-1`}; + + ${breakpoint('sm')` + ${tw`w-4/5 mx-auto`} + `}; + + ${breakpoint('md')` + ${tw`flex p-10`} + `}; + + ${breakpoint('lg')` + ${tw`w-3/5`} + `}; + + ${breakpoint('xl')` + ${tw`w-full`} + max-width: 660px; + `}; +`; + export default forwardRef(({ className, ...props }, ref) => ( -
-
- -
-
- {props.children} -
-
+
+ +
+ +
+
+ {props.children} +
+
+
)); diff --git a/resources/scripts/routers/AuthenticationRouter.tsx b/resources/scripts/routers/AuthenticationRouter.tsx index 4054f55d5..15f745e8d 100644 --- a/resources/scripts/routers/AuthenticationRouter.tsx +++ b/resources/scripts/routers/AuthenticationRouter.tsx @@ -6,7 +6,7 @@ import ResetPasswordContainer from '@/components/auth/ResetPasswordContainer'; import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer'; export default ({ match }: RouteComponentProps) => ( -
+
diff --git a/resources/scripts/routers/DashboardRouter.tsx b/resources/scripts/routers/DashboardRouter.tsx index d9312fd8c..0b218486f 100644 --- a/resources/scripts/routers/DashboardRouter.tsx +++ b/resources/scripts/routers/DashboardRouter.tsx @@ -10,13 +10,11 @@ export default ({ location }: RouteComponentProps) => ( -
- - - - - -
+ + + + +
); diff --git a/resources/scripts/routers/ServerRouter.tsx b/resources/scripts/routers/ServerRouter.tsx index ac380a9bd..6ff19fa1c 100644 --- a/resources/scripts/routers/ServerRouter.tsx +++ b/resources/scripts/routers/ServerRouter.tsx @@ -1,4 +1,4 @@ -import React, { lazy, useEffect } from 'react'; +import React, { useEffect } from 'react'; import { NavLink, Route, RouteComponentProps, Switch } from 'react-router-dom'; import NavigationBar from '@/components/NavigationBar'; import ServerConsole from '@/components/server/ServerConsole'; @@ -12,8 +12,6 @@ import FileManagerContainer from '@/components/server/files/FileManagerContainer import { CSSTransition } from 'react-transition-group'; import SuspenseSpinner from '@/components/elements/SuspenseSpinner'; import FileEditContainer from '@/components/server/files/FileEditContainer'; -import UsersContainer from '@/components/server/users/UsersContainer'; -import ScheduleContainer from '@/components/server/schedules/ScheduleContainer'; import SettingsContainer from '@/components/server/settings/SettingsContainer'; const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>) => { @@ -32,48 +30,44 @@ const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>)
-
-
- Console - File Manager - Databases - {/* User Management */} - {/* Schedules */} - Settings -
+
+ Console + File Manager + Databases + {/* User Management */} + {/* Schedules */} + Settings
-
- {!server ? -
- -
- : - - - - - ( - - - - )} - exact - /> - - {/* */} - {/* */} - - - - } -
+ {!server ? +
+ +
+ : + + + + + ( + + + + )} + exact + /> + + {/* */} + {/* */} + + + + }
diff --git a/resources/styles/components/authentication.css b/resources/styles/components/authentication.css deleted file mode 100644 index 2d841fe2e..000000000 --- a/resources/styles/components/authentication.css +++ /dev/null @@ -1,9 +0,0 @@ -.login-box { - @apply .bg-white .shadow-lg .rounded-lg .p-6; - - @screen xsx { - @apply .rounded-none; - margin-top: 25%; - box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .2), 0 -15px 30px 0 rgba(0, 0, 0, .2); - } -} diff --git a/resources/styles/components/forms.css b/resources/styles/components/forms.css index 56323d76a..b3ce4e78f 100644 --- a/resources/styles/components/forms.css +++ b/resources/styles/components/forms.css @@ -1,3 +1,7 @@ +form { + @apply .m-0; +} + textarea, select, input, button { @apply .outline-none; } diff --git a/resources/styles/main.css b/resources/styles/main.css index d77937e72..bac7986f1 100644 --- a/resources/styles/main.css +++ b/resources/styles/main.css @@ -11,7 +11,6 @@ */ @import "components/typography.css"; @import "components/animations.css"; -@import "components/authentication.css"; @import "components/forms.css"; @import "components/miscellaneous.css"; @import "components/modal.css"; diff --git a/resources/views/templates/auth/core.blade.php b/resources/views/templates/auth/core.blade.php index 0889bb3a6..775f3e43a 100644 --- a/resources/views/templates/auth/core.blade.php +++ b/resources/views/templates/auth/core.blade.php @@ -3,7 +3,5 @@ ]) @section('container') -
-
-
+
@endsection