From 3b636ef0225e59ecdd89aba44a9ec54c44e51b9f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 16 May 2023 20:47:59 +0200 Subject: [PATCH] css sprinkle --- resources/css/app.css | 15 ++++-- .../components/applications/navbar.blade.php | 10 ++-- .../views/components/inputs/button.blade.php | 2 +- resources/views/components/layout.blade.php | 2 +- resources/views/components/navbar.blade.php | 12 ++--- .../views/livewire/force-upgrade.blade.php | 2 +- .../project/application/deploy.blade.php | 2 +- .../environment-variable/add.blade.php | 4 +- .../environment-variable/all.blade.php | 11 ++--- .../project/application/general.blade.php | 8 ++-- .../application/poll-deployment.blade.php | 8 ++-- .../views/livewire/server/form.blade.php | 25 ++++++++++ .../views/livewire/server/proxy.blade.php | 10 ++-- .../application/configuration.blade.php | 18 +++---- .../project/application/deployment.blade.php | 2 +- .../project/application/deployments.blade.php | 2 +- resources/views/server/show.blade.php | 48 +++---------------- 17 files changed, 87 insertions(+), 94 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 930542922..5806bf240 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -6,12 +6,15 @@ body { @apply bg-coolgray-100 text-white font-sans; } +label { + @apply text-sm pb-2 font-bold tracking-wider; +} input, textarea { - @apply border-none p-2 bg-coolgray-200 text-white disabled:text-neutral-600 read-only:text-neutral-600 read-only:select-none outline-none; + @apply border border-solid border-coolgray-500 rounded p-2 px-4 bg-transparent text-white disabled:text-neutral-600 read-only:text-neutral-600 read-only:select-none outline-none focus:bg-coolgray-200/50 transition-all hover:bg-coolgray-200/50; } select { - @apply border-none p-2 bg-coolgray-200 text-white disabled:text-neutral-600 read-only:select-none outline-none; + @apply border border-solid border-coolgray-400 rounded p-2 px-4 bg-transparent text-white disabled:text-neutral-600 read-only:select-none outline-none; } button { @@ -45,6 +48,10 @@ h2 { h3 { @apply text-lg font-bold pb-4; } -.box { - @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs-100 p-2; +a { + @apply m-2 hover:text-coollabs; +} + +.box { + @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs-100 hover:text-white p-2 hover:no-underline; } diff --git a/resources/views/components/applications/navbar.blade.php b/resources/views/components/applications/navbar.blade.php index e34d57df0..599b1e4ef 100644 --- a/resources/views/components/applications/navbar.blade.php +++ b/resources/views/components/applications/navbar.blade.php @@ -1,14 +1,11 @@ diff --git a/resources/views/components/inputs/button.blade.php b/resources/views/components/inputs/button.blade.php index 93dcace54..34d4dfab0 100644 --- a/resources/views/components/inputs/button.blade.php +++ b/resources/views/components/inputs/button.blade.php @@ -3,7 +3,7 @@ 'isBold' => false, 'disabled' => null, 'defaultClass' => 'text-white hover:bg-coollabs h-10 rounded transition-colors', - 'defaultWarningClass' => 'text-white bg-red-500 hover:bg-red-600 h-10 rounded', + 'defaultWarningClass' => 'text-red-500 hover:text-white hover:bg-red-600 h-10 rounded', 'disabledClass' => 'text-neutral-400 h-10 rounded', 'loadingClass' => 'text-black bg-green-500 h-10 rounded', 'confirm' => null, diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 54fc23500..bef871e9c 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -22,7 +22,7 @@ @livewireStyles - + @livewireScripts diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 1d133c683..e97f36e46 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -3,20 +3,20 @@
@@ -28,7 +28,7 @@
@csrf - Logout +
diff --git a/resources/views/livewire/force-upgrade.blade.php b/resources/views/livewire/force-upgrade.blade.php index bcf75191a..caa322a8f 100644 --- a/resources/views/livewire/force-upgrade.blade.php +++ b/resources/views/livewire/force-upgrade.blade.php @@ -1,5 +1,5 @@
@if (auth()->user()->teams->contains(0)) - Force Upgrade + @endif
diff --git a/resources/views/livewire/project/application/deploy.blade.php b/resources/views/livewire/project/application/deploy.blade.php index 6ad3f5a71..ae5e75e2d 100644 --- a/resources/views/livewire/project/application/deploy.blade.php +++ b/resources/views/livewire/project/application/deploy.blade.php @@ -3,7 +3,7 @@ @if ($application->status === 'running') Rebuild Force Rebuild - Stop + Stop @else Start Start (no cache) diff --git a/resources/views/livewire/project/application/environment-variable/add.blade.php b/resources/views/livewire/project/application/environment-variable/add.blade.php index 7a85b80e4..23b0128cb 100644 --- a/resources/views/livewire/project/application/environment-variable/add.blade.php +++ b/resources/views/livewire/project/application/environment-variable/add.blade.php @@ -1,6 +1,6 @@
- - + +
diff --git a/resources/views/livewire/project/application/environment-variable/all.blade.php b/resources/views/livewire/project/application/environment-variable/all.blade.php index 270efa283..a6b5aac26 100644 --- a/resources/views/livewire/project/application/environment-variable/all.blade.php +++ b/resources/views/livewire/project/application/environment-variable/all.blade.php @@ -1,11 +1,10 @@

Environment Variables

- @forelse ($application->environment_variables as $env) + @foreach ($application->environment_variables as $env) - @empty -

There are no environment variables for this application.

- @endforelse -

Add new environment variable

- + @endforeach +
+ +
diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php index 55c065d75..3a9593365 100644 --- a/resources/views/livewire/project/application/general.blade.php +++ b/resources/views/livewire/project/application/general.blade.php @@ -1,9 +1,9 @@

General

-
+
- + @@ -29,10 +29,9 @@ @else @endif -
- + Submit @@ -47,6 +46,5 @@ -
diff --git a/resources/views/livewire/project/application/poll-deployment.blade.php b/resources/views/livewire/project/application/poll-deployment.blade.php index 53a5987d6..fc19dc8a1 100644 --- a/resources/views/livewire/project/application/poll-deployment.blade.php +++ b/resources/views/livewire/project/application/poll-deployment.blade.php @@ -1,6 +1,4 @@ -
-
{{ \App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($activity) }}
+
+
{{ \App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($activity) }}
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index 47cbf8b8d..f7301568e 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -1,4 +1,5 @@
+

General

@@ -49,4 +50,28 @@ @endisset
+ +
+
Destinations
+
+ @foreach ($server->standaloneDockers as $docker) + + {{ data_get($docker, 'network') }} + + @endforeach +
+ + Add + +
diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index 69a245c18..713662566 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -2,8 +2,8 @@ @if ($server->settings->is_validated) -
-

Proxy

+
+

Proxy

{{ $server->extra_attributes->proxy_status }}
@@ -35,15 +35,15 @@ @isset($proxy_settings)

Configuration

@if ($selectedProxy->value === 'TRAEFIK_V2') -

traefik.conf

- -
+
Save Reset Configuration
+

traefik.conf

+ @endif @endisset diff --git a/resources/views/project/application/configuration.blade.php b/resources/views/project/application/configuration.blade.php index e4e5a0c52..edd72a8a7 100644 --- a/resources/views/project/application/configuration.blade.php +++ b/resources/views/project/application/configuration.blade.php @@ -1,27 +1,27 @@ -

Configuration

+

Configuration

- diff --git a/resources/views/project/application/deployment.blade.php b/resources/views/project/application/deployment.blade.php index 39be4e283..7e2b4b200 100644 --- a/resources/views/project/application/deployment.blade.php +++ b/resources/views/project/application/deployment.blade.php @@ -1,5 +1,5 @@ -

Deployment

+

Deployment

diff --git a/resources/views/project/application/deployments.blade.php b/resources/views/project/application/deployments.blade.php index 0714e23eb..ed9c09c86 100644 --- a/resources/views/project/application/deployments.blade.php +++ b/resources/views/project/application/deployments.blade.php @@ -1,6 +1,6 @@ -

Deployments

+

Deployments

@forelse ($deployments as $deployment) diff --git a/resources/views/server/show.blade.php b/resources/views/server/show.blade.php index 1e546c3fd..3e1a0fded 100644 --- a/resources/views/server/show.blade.php +++ b/resources/views/server/show.blade.php @@ -1,54 +1,20 @@
Server
-
-
+
+ -
-

General Configurations

- -
-
-
-

Private Keys

- - Change - + -
-
-

Destinations

- - Add a new - +
+
- @if ($server->standaloneDockers->count() > 0) - @foreach ($server->standaloneDockers as $docker) - - {{ data_get($docker, 'network') }} - - @endforeach - @else -

No destinations found

- @endif -
-
-