Skip to content

Commit c2ce84d

Browse files
committed
improves responsiveness of create-monitor.blade.php
1 parent 4171aae commit c2ce84d

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

resources/views/livewire/auth/create-monitor.blade.php

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -112,38 +112,40 @@ public function switchTo()
112112

113113
<div class="flex flex-col items-center w-full h-full bg-gray-100">
114114
<div class="flex flex-col justify-center mt-10">
115-
<div class="flex gap-1 items-center mt-16 mb-2 sm:mt-10">
116-
<div class="w-[30px] h-[30px] rounded-full bg-primary-blue"></div>
117-
<div class="w-2 h-1 bg-primary-blue"></div>
118-
<div class="w-[30px] h-[30px] bg-primary-blue rounded-full"></div>
119-
</div>
120-
121-
<div class="flex flex-wrap gap-2">
122-
<div class="px-10 pt-8 pb-8 mx-auto w-96 max-w-full bg-white rounded-lg border border-border-color">
123-
<h1 class="mb-8 text-6xl uppercase font-koulen text-primary-blue">Create Monitor</h1>
124-
125-
<form wire:submit.prevent="create" class="flex flex-col gap-2">
126-
<sl-input size="medium" required wire:model.defer="project_url" placeholder="Your Project URL" type="text"></sl-input>
127-
<sl-input size="medium" wire:model.defer="pat_token" placeholder="Your PAT Token (Optional)" type="text"></sl-input>
128-
<sl-switch class="pt-1 text-secondary-grey" size="medium" wire:click="switchTo()">Open Source</sl-switch>
129-
130-
<div class="flex justify-between items-end mt-5">
131-
<a class="text-sm no-underline text-primary-blue hover:underline"
132-
href="{{ url('join') }}">
133-
Already have a monitor?
134-
</a>
135-
136-
<sl-button size="medium" wire:click="on_create">Create</sl-button>
137-
</div>
138-
</form>
115+
<div class="flex flex-wrap gap-2 justify-center mt-16">
116+
<div>
117+
<div class="flex gap-1 items-center mb-2 sm:mt-10">
118+
<div class="w-[30px] h-[30px] rounded-full bg-primary-blue"></div>
119+
<div class="w-2 h-1 bg-primary-blue"></div>
120+
<div class="w-[30px] h-[30px] bg-primary-blue rounded-full"></div>
121+
</div>
139122

140-
@if($create_monitor_error)
141-
<sl-alert variant="danger" open closable class="mt-4">
142-
<sl-icon wire:ignore slot="icon" name="patch-exclamation"></sl-icon>
143-
<strong>{{ $error_head }}</strong><br/>
144-
{{ $create_monitor_error }}
145-
</sl-alert>
146-
@endif
123+
<div class="px-10 pt-8 pb-8 mx-auto w-96 max-w-full bg-white rounded-lg border border-border-color">
124+
<h1 class="mb-8 text-6xl uppercase font-koulen text-primary-blue">Create Monitor</h1>
125+
126+
<form wire:submit.prevent="create" class="flex flex-col gap-2">
127+
<sl-input size="medium" required wire:model.defer="project_url" placeholder="Your Project URL" type="text"></sl-input>
128+
<sl-input size="medium" wire:model.defer="pat_token" placeholder="Your PAT Token (Optional)" type="text"></sl-input>
129+
<sl-switch class="pt-1 text-secondary-grey" size="medium" wire:click="switchTo()">Open Source</sl-switch>
130+
131+
<div class="flex justify-between items-end mt-5">
132+
<a class="text-sm no-underline text-primary-blue hover:underline"
133+
href="{{ url('join') }}">
134+
Already have a monitor?
135+
</a>
136+
137+
<sl-button size="medium" wire:click="on_create">Create</sl-button>
138+
</div>
139+
</form>
140+
141+
@if($create_monitor_error)
142+
<sl-alert variant="danger" open closable class="mt-4">
143+
<sl-icon wire:ignore slot="icon" name="patch-exclamation"></sl-icon>
144+
<strong>{{ $error_head }}</strong><br/>
145+
{{ $create_monitor_error }}
146+
</sl-alert>
147+
@endif
148+
</div>
147149
</div>
148150

149151
<div class="p-4 w-96 max-w-full bg-white border shadow-lg dark:bg-gray-800 border-border-color sm:rounded-lg">

0 commit comments

Comments
 (0)