diff --git a/resources/assets/styles/components/miscellaneous.css b/resources/assets/styles/components/miscellaneous.css index e5ae73578..a778c58cf 100644 --- a/resources/assets/styles/components/miscellaneous.css +++ b/resources/assets/styles/components/miscellaneous.css @@ -26,3 +26,45 @@ code { animation: offlineblink 2s infinite alternate; } } + +/** + * Usage indicator labels for the server listing. + */ +.usage { + @apply .flex-1 .text-center .relative; + + & > .indicator-title { + @apply .text-xs .uppercase .font-hairline .bg-white .absolute .text-grey; + margin-top:-9px; + padding: 0 8px; + left: 50%; + transform: translate(-50%, 0); + } +} + +/** + * Flex boxes for server listing on user dashboard. + */ +.server-box { + @apply .pb-4; + + @screen smx { + @apply .w-1/2 .pr-4; + + &:nth-of-type(2n) { + padding-right: 0; + } + } + + @screen md { + @apply .w-1/3 .pr-4; + + &:nth-of-type(3n) { + padding-right: 0; + } + } + + & > .content { + @apply .border .border-grey-light .bg-white .rounded .p-4 .justify-between .leading-normal; + } +} diff --git a/resources/themes/pterodactyl/templates/base/core.blade.php b/resources/themes/pterodactyl/templates/base/core.blade.php index e3a75fe5d..5cee9b6df 100644 --- a/resources/themes/pterodactyl/templates/base/core.blade.php +++ b/resources/themes/pterodactyl/templates/base/core.blade.php @@ -33,27 +33,33 @@ @endsection @section('container') -
+
@foreach($servers as $server) -
-
+
+
- {{--@if ($server->owner_id !== Auth::user()->id)--}} - {{--

--}} - {{----}} - {{----}} - {{----}} - {{--Restricted Access--}} - {{--

--}} - {{--@endif--}}
{{ $server->name }}
- {{--
--}} - {{--
68%
--}} - {{--
124 / 1024 Mb
--}} - {{--
--}} +
+
+
+
CPU
+
+
+
Memory
+
+
+
+
+ {{ rand(1, 200) }} + % +
+
+ {{ rand(128, 2048) }} + Mb +
@@ -65,7 +71,7 @@
@endforeach
-
+

{!! trans('strings.copyright', ['year' => date('Y')]) !!}

diff --git a/tailwind.js b/tailwind.js index a42c60520..93b293244 100644 --- a/tailwind.js +++ b/tailwind.js @@ -171,6 +171,10 @@ module.exports = { 'md': '768px', 'lg': '992px', 'xl': '1200px', + + 'smx': {'max': '767px'}, + 'mdx': {'max': '991px'}, + 'lgx': {'max': '1999px'}, },