-
@@ -30,10 +33,11 @@
import _ from 'lodash';
import Flash from '../Flash';
import ServerBox from './ServerBox';
+ import Navigation from '../core/Navigation';
export default {
name: 'dashboard',
- components: { ServerBox, Flash },
+ components: { Navigation, ServerBox, Flash },
data: function () {
return {
backgroundedAt: DateTime.local(),
diff --git a/resources/assets/scripts/routes.js b/resources/assets/scripts/routes.js
index df2440e3f..0affefe2f 100644
--- a/resources/assets/scripts/routes.js
+++ b/resources/assets/scripts/routes.js
@@ -17,7 +17,7 @@ export const routes = [
}
},
- { name : 'index', path: '/', component: Dashboard },
+ { name : 'dashboard', path: '/', component: Dashboard },
{ name : 'account', path: '/account', component: Account },
{ name : 'account.api', path: '/account/api', component: Account },
{ name : 'account.security', path: '/account/security', component: Account },
diff --git a/resources/assets/styles/components/miscellaneous.css b/resources/assets/styles/components/miscellaneous.css
index 23bec3473..ad52cbbb5 100644
--- a/resources/assets/styles/components/miscellaneous.css
+++ b/resources/assets/styles/components/miscellaneous.css
@@ -49,11 +49,7 @@ code {
@apply .pb-4;
@screen smx {
- @apply .w-1/2 .pr-4;
-
- &:nth-of-type(2n) {
- padding-right: 0;
- }
+ @apply .w-full;
}
@screen md {
diff --git a/resources/assets/styles/components/navigation.css b/resources/assets/styles/components/navigation.css
index cc1146c4d..16f0f6dcc 100644
--- a/resources/assets/styles/components/navigation.css
+++ b/resources/assets/styles/components/navigation.css
@@ -4,11 +4,18 @@
& > .logo {
@apply .mx-8 .font-sans .font-thin .text-2xl .text-white .inline-block .pt-2;
+
+ & a {
+ color: inherit;
+ text-decoration: none;
+ }
+
+ @screen xsx {
+ @apply .hidden
+ }
}
& > .menu {
- @apply .float-right .mx-8 .inline-block;
-
& > ul {
@apply .list-reset;
& > li {
@@ -19,10 +26,21 @@
&:hover {
@apply .bg-blue-dark;
+ }
+ & .feather {
+ @apply .h-4;
}
}
}
}
+
+ @screen xsx {
+ @apply .w-full .text-center;
+ }
+
+ @screen sm {
+ @apply .float-right .mx-8 .inline-block;
+ }
}
}
diff --git a/resources/assets/styles/main.css b/resources/assets/styles/main.css
index cfbd00666..4a42cd267 100644
--- a/resources/assets/styles/main.css
+++ b/resources/assets/styles/main.css
@@ -25,5 +25,11 @@
* Assorted Other CSS
*/
body {
- @apply .font-sans;
+ @apply .font-sans;
+}
+
+.container {
+ @screen xsx {
+ @apply .px-2;
+ }
}
diff --git a/resources/themes/pterodactyl/templates/base/core.blade.php b/resources/themes/pterodactyl/templates/base/core.blade.php
index b9ad7ebb3..14caa41fc 100644
--- a/resources/themes/pterodactyl/templates/base/core.blade.php
+++ b/resources/themes/pterodactyl/templates/base/core.blade.php
@@ -1,40 +1,8 @@
@extends('templates/wrapper')
-@section('above-container')
-
-@endsection
-
@section('container')
-
+
{!! trans('strings.copyright', ['year' => date('Y')]) !!}
diff --git a/resources/themes/pterodactyl/templates/wrapper.blade.php b/resources/themes/pterodactyl/templates/wrapper.blade.php
index 81bb3a0ee..cb5bee759 100644
--- a/resources/themes/pterodactyl/templates/wrapper.blade.php
+++ b/resources/themes/pterodactyl/templates/wrapper.blade.php
@@ -16,11 +16,13 @@
@include('layouts.scripts')
- @yield('above-container')
-
- @yield('container')
-
- @yield('below-container')
+ @section('content')
+ @yield('above-container')
+
+ @yield('container')
+
+ @yield('below-container')
+ @show
@section('scripts')
{!! $asset->js('assets/scripts/bundle.js') !!}
@show
diff --git a/tailwind.js b/tailwind.js
index 93b293244..922789e2a 100644
--- a/tailwind.js
+++ b/tailwind.js
@@ -172,6 +172,7 @@ module.exports = {
'lg': '992px',
'xl': '1200px',
+ 'xsx': {'max': '575px'},
'smx': {'max': '767px'},
'mdx': {'max': '991px'},
'lgx': {'max': '1999px'},