Update page with new ✔ style

This commit is contained in:
Benjamin Beganović 2020-06-24 17:44:18 +02:00
parent 7fce0335d9
commit e48ff3e631
2 changed files with 16 additions and 11 deletions

View File

@ -15,8 +15,9 @@
</dt> </dt>
<dd class="text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> <dd class="text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
@foreach($check['extensions'] as $extension) @foreach($check['extensions'] as $extension)
<span class="alert py-1 {{ $extension[key($extension)] == true ? 'alert-success' : 'alert-failure' }} block w-full"> <span class="alert py-1 {{ $extension[key($extension)] == true ? 'alert-success' : 'alert-failure' }} block w-full flex justify-between items-center">
{{ $extension[key($extension)] == true ? '✔' : '❌' }} {{ key($extension) }} <span>{{ key($extension) }}</span>
<span>{{ $extension[key($extension)] == true ? '✔' : '❌' }}</span>
</span> </span>
@endforeach @endforeach
</dd> </dd>
@ -27,15 +28,17 @@
</dt> </dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
@if($check['php_version']['is_okay']) @if($check['php_version']['is_okay'])
<span class="alert alert-success block"> <span class="alert alert-success block flex justify-between items-center">
{{ strtoupper(ctrans('texts.ok')) }} <span>{{ strtoupper(ctrans('texts.ok')) }}</span>
<span></span>
</span> </span>
@else @else
<span class="alert block"> <span class="alert block">
{{ ctrans('texts.minumum_php_version') }}: {{ $check['php_version']['minimum_php_version'] }} {{ ctrans('texts.minumum_php_version') }}: {{ $check['php_version']['minimum_php_version'] }}
</span> </span>
<span class="alert alert-failure block"> <span class="alert alert-failure block flex justify-between items-center">
{{ ctrans('texts.current') }}: {{ $check['php_version']['current_php_version'] }} <span>{{ ctrans('texts.current') }}: {{ $check['php_version']['current_php_version'] }}</span>
<span></span>
</span> </span>
@endif @endif
</dd> </dd>
@ -46,12 +49,14 @@
</dt> </dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2"> <dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
@if($check['env_writable']) @if($check['env_writable'])
<span class="alert alert-success block"> <span class="alert alert-success block flex justify-between items-center">
{{ strtoupper(ctrans('texts.ok')) }} <span>{{ strtoupper(ctrans('texts.ok')) }}</span>
<span></span>
</span> </span>
@else @else
<span class="alert alert-failure block"> <span class="alert alert-failure block flex justify-between items-center">
{{ ctrans('texts.env_not_writable') }} <span>{{ ctrans('texts.env_not_writable') }}</span>
<span></span>
</span> </span>
@endif @endif
</dd> </dd>

View File

@ -7,7 +7,7 @@
@endpush @endpush
@section('body') @section('body')
<div class="container mx-auto mb-10"> <div class="container mx-auto mb-10 mt-4">
<form action="{{ url('/setup') }}" method="post"> <form action="{{ url('/setup') }}" method="post">
@csrf @csrf