Skip to content

Commit 1f5b50f

Browse files
committed
chore: wip
chore: wip chore: wip
1 parent 723cd19 commit 1f5b50f

File tree

9 files changed

+87
-168
lines changed

9 files changed

+87
-168
lines changed

resources/components/Dashboard/Deployments/DeploymentList.stx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<dl class="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3">
1010
<div class="relative overflow-hidden rounded-lg bg-white px-4 pt-5 shadow sm:px-6 sm:pt-6">
1111
<dt>
12-
<div class="absolute rounded-md bg-indigo-500 p-3">
12+
<div class="absolute rounded-md bg-blue-500 p-3">
1313
<svg class="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1414
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" />
1515
</svg>
@@ -32,15 +32,15 @@
3232

3333
<!-- <div class="absolute inset-x-0 bottom-0 bg-gray-50 px-4 py-4 sm:px-6">
3434
<div class="text-sm">
35-
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">View all<span class="sr-only"> Deployments</span></a>
35+
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">View all<span class="sr-only"> Deployments</span></a>
3636
</div>
3737
</div> -->
3838
</dd>
3939
</div>
4040

4141
<div class="relative overflow-hidden rounded-lg bg-white px-4 pt-5 shadow sm:px-6 sm:pt-6">
4242
<dt>
43-
<div class="absolute rounded-md bg-indigo-500 p-3">
43+
<div class="absolute rounded-md bg-blue-500 p-3">
4444
<svg class="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
4545
<path stroke-linecap="round" stroke-linejoin="round" d="M21.75 9v.906a2.25 2.25 0 01-1.183 1.981l-6.478 3.488M2.25 9v.906a2.25 2.25 0 001.183 1.981l6.478 3.488m8.839 2.51l-4.66-2.51m0 0l-1.023-.55a2.25 2.25 0 00-2.134 0l-1.022.55m0 0l-4.661 2.51m16.5 1.615a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V8.844a2.25 2.25 0 011.183-1.98l7.5-4.04a2.25 2.25 0 012.134 0l7.5 4.04a2.25 2.25 0 011.183 1.98V19.5z" />
4646
</svg>
@@ -65,15 +65,15 @@
6565

6666
<!-- <div class="absolute inset-x-0 bottom-0 bg-gray-50 px-4 py-4 sm:px-6">
6767
<div class="text-sm">
68-
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">View all<span class="sr-only"> Average Deploy Time</span></a>
68+
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">View all<span class="sr-only"> Average Deploy Time</span></a>
6969
</div>
7070
</div> -->
7171
</dd>
7272
</div>
7373

7474
<div class="relative overflow-hidden rounded-lg bg-white px-4 pt-5 shadow sm:px-6 sm:pt-6">
7575
<dt>
76-
<div class="absolute rounded-md bg-indigo-500 p-3">
76+
<div class="absolute rounded-md bg-blue-500 p-3">
7777
<svg class="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
7878
<path stroke-linecap="round" stroke-linejoin="round" d="M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59" />
7979
</svg>
@@ -98,7 +98,7 @@
9898

9999
<!-- <div class="absolute inset-x-0 bottom-0 bg-gray-50 px-4 py-4 sm:px-6">
100100
<div class="text-sm">
101-
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">View all<span class="sr-only"> Success Rate</span></a>
101+
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">View all<span class="sr-only"> Success Rate</span></a>
102102
</div>
103103
</div> -->
104104
</dd>
@@ -118,7 +118,7 @@
118118
</p>
119119
</div>
120120
<div class="mt-4 sm:ml-16 sm:mt-0 sm:flex-none">
121-
<button type="button" class="block rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
121+
<button type="button" class="block rounded-md bg-blue-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600">
122122
Deploy
123123
</button>
124124
</div>
@@ -195,7 +195,7 @@
195195
</td>
196196

197197
<td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
198-
<a href="#" class="text-indigo-600 hover:text-indigo-900">View<span class="sr-only">, Deployment</span></a>
198+
<a href="#" class="text-blue-600 hover:text-blue-900">View<span class="sr-only">, Deployment</span></a>
199199
</td>
200200
</tr>
201201
</tbody>

resources/components/Dashboard/Modals/ToastWrapper.stx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function closeToast() {
5959
<div class="flex flex-shrink-0 ml-4">
6060
<button
6161
type="button"
62-
class="inline-flex text-gray-400 rounded-md hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
62+
class="inline-flex text-gray-400 rounded-md hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
6363
@click="closeToast()"
6464
>
6565
<span class="sr-only">Close</span>

resources/components/Dashboard/Navbar.stx

Lines changed: 35 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<script setup lang="ts">
2-
import { ref, watch } from 'vue'
3-
4-
import { useDark, useToggle } from '@vueuse/core'
5-
62
const profileModal = ref(false)
73
const isDark = useDark()
84
const theme = ref(isDark.value ? 'dark' : 'light')
@@ -24,31 +20,21 @@ watch(theme, (currentVal) => {
2420

2521
<template>
2622
<div class="sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 dark:border-gray-600 dark:border-gray-600 bg-white dark:bg-blue-gray-900 px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8">
27-
<button
28-
type="button"
29-
class="-m-2.5 p-2.5 text-gray-700 lg:hidden"
30-
>
23+
<button type="button" class="-m-2.5 p-2.5 text-gray-700 lg:hidden">
3124
<span class="sr-only">Open sidebar</span>
32-
3325
<div class="i-heroicons-bars-3 h-6 w-6" />
3426
</button>
3527

3628
<!-- Separator -->
37-
<div
38-
class="h-6 w-px bg-gray-200 lg:hidden"
39-
aria-hidden="true"
40-
/>
29+
<div class="h-6 w-px bg-gray-200 lg:hidden" aria-hidden="true" />
4130

4231
<div class="flex flex-1 gap-x-4 self-stretch lg:gap-x-6">
4332
<form
4433
class="relative flex flex-1"
4534
action="#"
4635
method="GET"
4736
>
48-
<label
49-
for="search-field"
50-
class="sr-only"
51-
>Search</label>
37+
<label for="search-field" class="sr-only">Search</label>
5238

5339
<div class="i-heroicons-magnifying-glass pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400" />
5440
<input
@@ -65,21 +51,11 @@ watch(theme, (currentVal) => {
6551
class="-m-2.5 p-2.5 text-gray-400 hover:text-blue-gray-500"
6652
>
6753
<span class="sr-only">View Health Page</span>
68-
<RouterLink
69-
to="/health"
70-
class="sidebar-links group"
71-
>
54+
<RouterLink to="/health">
7255
<div class="i-heroicons-heart w-6 h-6 transition duration-150 ease-in-out" />
7356
</RouterLink>
74-
<!-- <div class="i-heroicons-heart w-6 h-6" /> -->
75-
</button>
76-
<button
77-
type="button"
78-
class="-m-2.5 p-2.5 text-gray-400 hover:text-blue-gray-500"
79-
>
80-
<span class="sr-only">View Documentation</span>
81-
<div class="i-heroicons-document-text w-6 h-6" />
8257
</button>
58+
8359
<button
8460
type="button"
8561
class="-m-2.5 p-2.5 text-gray-400 hover:text-blue-gray-500"
@@ -95,118 +71,51 @@ watch(theme, (currentVal) => {
9571
/>
9672

9773
<!-- Profile dropdown -->
98-
<div class="relative">
99-
<button
100-
id="user-menu-button"
101-
type="button"
102-
class="-m-1.5 flex items-center p-1.5"
103-
aria-expanded="false"
104-
aria-haspopup="true"
105-
@click="toggleProfileModal()"
106-
>
107-
<span class="sr-only">Open user menu</span>
108-
<img
109-
class="h-8 w-8 rounded-full bg-gray-50"
110-
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
111-
alt=""
112-
>
113-
<span class="hidden lg:flex lg:items-center">
114-
<div class="i-heroicons-chevron-down w-5 h-5 ml-2 text-gray-400" />
115-
</span>
116-
</button>
117-
118-
<!--
119-
Dropdown menu, show/hide based on menu state.
74+
<div class="relative ml-3">
75+
<div>
76+
<button id="user-menu-button" type="button" class="relative flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800" aria-expanded="false" aria-haspopup="true">
77+
<span class="absolute -inset-1.5" />
78+
<span class="sr-only">Open user menu</span>
79+
<img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
80+
</button>
81+
</div>
12082

121-
Entering: "transition ease-out duration-100"
122-
From: "transform opacity-0 scale-95"
123-
To: "transform opacity-100 scale-100"
124-
Leaving: "transition ease-in duration-75"
125-
From: "transform opacity-100 scale-100"
126-
To: "transform opacity-0 scale-95"
127-
-->
128-
<div
129-
v-if="profileModal"
130-
class="absolute right-0 z-10 mt-2.5 w-64 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none dark:bg-blue-gray-700"
131-
role="menu"
132-
aria-orientation="vertical"
133-
aria-labelledby="user-menu-button"
134-
tabindex="-1"
135-
>
136-
<!-- Active: "bg-gray-50", Not Active: "" -->
83+
<!--
84+
Dropdown menu, show/hide based on menu state.
85+
86+
Entering: "transition ease-out duration-100"
87+
From: "transform opacity-0 scale-95"
88+
To: "transform opacity-100 scale-100"
89+
Leaving: "transition ease-in duration-75"
90+
From: "transform opacity-100 scale-100"
91+
To: "transform opacity-0 scale-95"
92+
-->
93+
<div class="absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" role="menu" aria-orientation="vertical" aria-labelledby="user-menu-button" tabindex="-1">
94+
<!-- Active: "bg-gray-100", Not Active: "" -->
95+
<a id="user-menu-item-0" href="#" class="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1">Your Profile</a>
96+
<a id="user-menu-item-1" href="#" class="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1">Settings</a>
97+
<a id="user-menu-item-2" href="#" class="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1">Sign out</a>
13798
<a
138-
id="user-menu-item-0"
99+
id="user-menu-item-4"
139100
href="#"
140-
class="block px-3 py-1 text-sm leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600 dark:text-gray-300"
101+
class="flex justify-between px-4 py-2 text-sm my-1 leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600"
141102
role="menuitem"
142103
tabindex="-1"
143104
>
144-
<p class="font-bold ">
145-
John Doe
146-
</p>
147-
<p>
148-
johndoe@email.com
149-
</p>
150-
</a>
105+
<label for="small" class="self-center mr-2 text-sm text-gray-500 dark:text-gray-300">
106+
Theme
107+
</label>
151108

152-
<a
153-
id="user-menu-item-0"
154-
href="#"
155-
class="block px-3 py-1 text-sm leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600 dark:text-gray-300"
156-
role="menuitem"
157-
tabindex="-1"
158-
>
159-
Dashboard
160-
</a>
161-
<a
162-
id="user-menu-item-0"
163-
href="#"
164-
class="block px-3 py-1 text-sm leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600 dark:text-gray-300"
165-
role="menuitem"
166-
tabindex="-1"
167-
>Teams</a>
168-
<RouterLink
169-
to="/settings/billing"
170-
class="block px-3 py-1 text-sm leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600 dark:text-gray-300"
171-
role="menuitem"
172-
tabindex="-1"
173-
>
174-
Billing Settings
175-
</RouterLink>
176-
<a
177-
id="user-menu-item-0"
178-
href="#"
179-
class="flex px-3 py-2 border-t border-b text-sm my-1 leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600"
180-
role="menuitem"
181-
tabindex="-1"
182-
>
183-
<label
184-
for="small"
185-
class="self-center mr-2 text-sm text-gray-500 dark:text-gray-300"
186-
>Theme</label>
187109
<select
188110
id="small"
189111
v-model="theme"
190112
class="text-sm text-gray-500 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-blue-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
191113
>
192114
<option value="light">Light</option>
193-
194-
<option
195-
value="dark"
196-
>Dark</option>
197-
198-
<option
199-
value="light"
200-
>Auto</option>
115+
<option value="dark">Dark</option>
116+
<option value="light">Auto</option>
201117
</select>
202118
</a>
203-
<a
204-
id="user-menu-item-1"
205-
href="#"
206-
class="block px-3 py-1 text-sm leading-6 text-gray-500 dark-hover:bg-gray-600 hover:bg-blue-gray-50 hover:text-blue-gray-600 dark:text-gray-300"
207-
role="menuitem"
208-
tabindex="-1"
209-
>Log out</a>
210119
</div>
211120
</div>
212121
</div>

resources/components/Dashboard/Sidebar.stx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<div class="flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 dark:border-gray-600 dark:border-gray-600 dark:bg-blue-gray-900 bg-white px-6 pb-4">
77
<div class="flex h-16 shrink-0 items-center">
88
<img
9-
class="h-12 rounded-md mt-4 w-auto"
9+
class="h-12 rounded-lg mt-4 w-auto"
1010
src="/logo.svg"
11-
alt="Your Company"
11+
alt="Stacks"
1212
>
1313
</div>
1414
<nav class="flex flex-1 flex-col">
@@ -83,7 +83,7 @@
8383
<li>
8484
<!-- Current: "bg-gray-50 text-blue-600", Default: "text-gray-700 hover:text-blue-600 hover:bg-gray-50" -->
8585
<RouterLink
86-
to="/models/users"
86+
to="/dns"
8787
class="sidebar-links"
8888
>
8989
<!-- <span class="flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white text-gray-400 border-gray-200 dark:border-gray-600 group-hover:border-blue-600 group-hover:text-blue-600">U</span> -->
@@ -111,6 +111,16 @@
111111
<span class="truncate">Secrets</span>
112112
</RouterLink>
113113
</li>
114+
115+
<li>
116+
<RouterLink
117+
to="/settings/billing"
118+
class="sidebar-links"
119+
>
120+
<div class="i-heroicons-cog-6-tooth text-gray-500 w-6 h-6 dark:text-gray-200 group-hover:text-gray-700 transition duration-150 ease-in-out" />
121+
<span class="truncate">Settings</span>
122+
</RouterLink>
123+
</li>
114124
</ul>
115125
</li>
116126

0 commit comments

Comments
 (0)