Skip to content

Commit a0efc82

Browse files
committed
hopefully improve the button colours
1 parent 0ac72ed commit a0efc82

2 files changed

Lines changed: 29 additions & 25 deletions

File tree

components/HatcheryView.vue

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,9 @@
3030
<option value="300">5 minutes</option>
3131
</select>
3232
<ClientOnly>
33-
<button
34-
v-if="refreshing"
35-
type="button"
36-
class="btn- col-span-full sm:col-span-2 md:col-auto bg-rose-900 text-white"
37-
@click="pause()"
38-
>
39-
<font-awesome-icon :icon="['fas', 'pause']" />
40-
Pause
41-
</button>
42-
<button
43-
v-else
44-
type="button"
45-
class="btn- col-span-full sm:col-span-2 md:col-auto bg-emerald-900 text-white motion-safe:animate-pulse"
46-
@click="
47-
() => {
48-
resume();
49-
fetchHatchery();
50-
}
51-
"
52-
>
53-
<font-awesome-icon :icon="['fas', 'play']" />
54-
Continue
55-
</button>
5633
<button
5734
type="button"
58-
class="col-span-full sm:col-span-2 md:col-auto btn-primary"
35+
class="col-span-full sm:col-span-2 md:col-auto btn-secondary"
5936
@click="
6037
() => {
6138
if (refreshing) {
@@ -80,6 +57,29 @@
8057
<font-awesome-icon v-else class="mr-1" :icon="['fas', 'rotate']" />
8158
Reload
8259
</button>
60+
<button
61+
v-if="refreshing"
62+
type="button"
63+
class="btn-primary col-span-full sm:col-span-2 md:col-auto"
64+
@click="pause()"
65+
>
66+
<font-awesome-icon :icon="['fas', 'pause']" />
67+
Pause
68+
</button>
69+
<button
70+
v-else
71+
type="button"
72+
class="btn-primary col-span-full sm:col-span-2 md:col-auto motion-safe:animate-pulse"
73+
@click="
74+
() => {
75+
resume();
76+
fetchHatchery();
77+
}
78+
"
79+
>
80+
<font-awesome-icon :icon="['fas', 'play']" />
81+
Continue
82+
</button>
8383
</ClientOnly>
8484
</div>
8585
<div

components/ScrollToolbar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
Reload
3636
</button>
3737

38-
<button type="submit" class="btn-primary" @click="emit('submit')">
38+
<button
39+
type="submit"
40+
class="btn- bg-amber-700 dark:bg-indigo-900"
41+
@click="emit('submit')"
42+
>
3943
<LoadingIcon v-if="saveScrollStatus === 'pending'" class="ml-1 size-4" />
4044
<font-awesome-icon v-else :icon="['fas', 'dragon']" class="ml-1 size-4" />
4145
Submit

0 commit comments

Comments
 (0)