Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a679df7c
authored
May 22, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak colors
1 parent
6c307f8e
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
66 additions
and
55 deletions
resources/css/buttons.css
resources/css/form.css
resources/js/Pages/Auth/Login.vue
resources/js/Pages/Contacts/Create.vue
resources/js/Pages/Contacts/Edit.vue
resources/js/Pages/Contacts/Index.vue
resources/js/Pages/Dashboard/Index.vue
resources/js/Pages/Organizations/Create.vue
resources/js/Pages/Organizations/Edit.vue
resources/js/Pages/Organizations/Index.vue
resources/js/Pages/Users/Create.vue
resources/js/Pages/Users/Edit.vue
resources/js/Pages/Users/Index.vue
resources/js/Shared/Layout.vue
resources/js/Shared/MainMenu.vue
resources/js/Shared/Pagination.vue
resources/js/Shared/SearchFilter.vue
resources/js/Shared/TrashedMessage.vue
resources/views/app.blade.php
tailwind.config.js
resources/css/buttons.css
View file @
a679df7
.btn-indigo
{
@apply
px-6
py-3
rounded
bg-indigo-
7
00
text-white
text-sm
font-bold
whitespace-no-wrap;
.btn-indigo
-500
{
@apply
px-6
py-3
rounded
bg-indigo-
6
00
text-white
text-sm
font-bold
whitespace-no-wrap;
&:hover,
&:focus
{
@apply
bg-orange-500
}
}
...
...
resources/css/form.css
View file @
a679df7
.form-label
{
@apply
.mb-2
.block
.text-gray-
8
00
.select-none;
@apply
.mb-2
.block
.text-gray-
7
00
.select-none;
}
.form-input
,
.form-textarea
,
.form-select
{
@apply
.p-2
.leading-normal
.block
.w-full
.border
.text-gray-
8
00
.bg-white
.font-sans
.rounded
.text-left
.appearance-none
.relative;
@apply
.p-2
.leading-normal
.block
.w-full
.border
.text-gray-
7
00
.bg-white
.font-sans
.rounded
.text-left
.appearance-none
.relative;
&:focus,
&.focus
{
@apply
.border-indigo-500;
box-shadow
:
0
0
0
1px
theme
(
'colors.indigo
.
500'
);
box-shadow
:
0
0
0
1px
theme
(
'colors.indigo
-
500'
);
}
&
::placeholder
{
@apply
.text-gray-
6
00
.opacity-100;
@apply
.text-gray-
5
00
.opacity-100;
}
}
...
...
@@ -32,15 +32,15 @@
}
.form-error
{
@apply
.text-red-
5
00
.mt-2
.text-sm;
@apply
.text-red-
7
00
.mt-2
.text-sm;
}
.form-input.error
,
.form-textarea.error
,
.form-select.error
{
@apply
.border-red-
4
00;
@apply
.border-red-
6
00;
&:focus
{
box-shadow
:
0
0
0
1px
theme
(
'colors.red.
5
00'
);
box-shadow
:
0
0
0
1px
theme
(
'colors.red.
6
00'
);
}
}
resources/js/Pages/Auth/Login.vue
View file @
a679df7
...
...
@@ -15,7 +15,7 @@
</div>
<div
class=
"px-10 py-4 bg-gray-100 border-t border-gray-200 flex justify-between items-center"
>
<a
class=
"hover:underline"
tabindex=
"-1"
href=
"#reset-password"
>
Forget password?
</a>
<loading-button
:loading=
"sending"
class=
"btn-indigo"
type=
"submit"
>
Login
</loading-button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
"
type=
"submit"
>
Login
</loading-button>
</div>
</form>
</div>
...
...
resources/js/Pages/Contacts/Create.vue
View file @
a679df7
...
...
@@ -26,7 +26,7 @@
<text-input
v-model=
"form.postal_code"
:errors=
"errors.postal_code"
class=
"pr-6 pb-8 w-full lg:w-1/2"
label=
"Postal code"
/>
</div>
<div
class=
"px-8 py-4 bg-gray-100 border-t border-gray-200 flex justify-end items-center"
>
<loading-button
:loading=
"sending"
class=
"btn-indigo"
type=
"submit"
>
Create Contact
</loading-button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
"
type=
"submit"
>
Create Contact
</loading-button>
</div>
</form>
</div>
...
...
resources/js/Pages/Contacts/Edit.vue
View file @
a679df7
...
...
@@ -30,8 +30,8 @@
<text-input
v-model=
"form.postal_code"
:errors=
"errors.postal_code"
class=
"pr-6 pb-8 w-full lg:w-1/2"
label=
"Postal code"
/>
</div>
<div
class=
"px-8 py-4 bg-gray-100 border-t border-gray-200 flex items-center"
>
<button
v-if=
"!contact.deleted_at"
class=
"text-red-
5
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"destroy"
>
Delete Contact
</button>
<loading-button
:loading=
"sending"
class=
"btn-indigo ml-auto"
type=
"submit"
>
Update Contact
</loading-button>
<button
v-if=
"!contact.deleted_at"
class=
"text-red-
7
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"destroy"
>
Delete Contact
</button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
ml-auto"
type=
"submit"
>
Update Contact
</loading-button>
</div>
</form>
</div>
...
...
resources/js/Pages/Contacts/Index.vue
View file @
a679df7
...
...
@@ -3,14 +3,14 @@
<h1
class=
"mb-8 font-bold text-3xl"
>
Contacts
</h1>
<div
class=
"mb-6 flex justify-between items-center"
>
<search-filter
v-model=
"form.search"
class=
"w-full max-w-md mr-4"
@
reset=
"reset"
>
<label
class=
"block text-gray-
8
00"
>
Trashed:
</label>
<label
class=
"block text-gray-
7
00"
>
Trashed:
</label>
<select
v-model=
"form.trashed"
class=
"mt-1 w-full form-select"
>
<option
:value=
"null"
/>
<option
value=
"with"
>
With Trashed
</option>
<option
value=
"only"
>
Only Trashed
</option>
</select>
</search-filter>
<inertia-link
class=
"btn-indigo"
:href=
"route('contacts.create')"
>
<inertia-link
class=
"btn-indigo
-500
"
:href=
"route('contacts.create')"
>
<span>
Create
</span>
<span
class=
"hidden md:inline"
>
Contact
</span>
</inertia-link>
...
...
@@ -27,7 +27,7 @@
<td
class=
"border-t"
>
<inertia-link
class=
"px-6 py-4 flex items-center focus:text-indigo-500"
:href=
"route('contacts.edit', contact.id)"
>
{{
contact
.
name
}}
<icon
v-if=
"contact.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray ml-2"
/>
<icon
v-if=
"contact.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray
-400
ml-2"
/>
</inertia-link>
</td>
<td
class=
"border-t"
>
...
...
@@ -49,7 +49,7 @@
</td>
<td
class=
"border-t w-px"
>
<inertia-link
class=
"px-4 flex items-center"
:href=
"route('contacts.edit', contact.id)"
tabindex=
"-1"
>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray"
/>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray
-400
"
/>
</inertia-link>
</td>
</tr>
...
...
resources/js/Pages/Dashboard/Index.vue
View file @
a679df7
...
...
@@ -3,8 +3,8 @@
<h1
class=
"mb-8 font-bold text-3xl"
>
Dashboard
</h1>
<p
class=
"mb-12 leading-normal"
>
Hey there! Welcome to Ping CRM, a demo app designed to help illustrate how
<a
class=
"text-indigo-500 underline hover:text-orange-600"
href=
"https://github.com/inertiajs"
>
Inertia.js
</a>
works.
</p>
<div>
<inertia-link
class=
"btn-indigo"
href=
"/500"
>
500 error
</inertia-link>
<inertia-link
class=
"btn-indigo"
href=
"/404"
>
404 error
</inertia-link>
<inertia-link
class=
"btn-indigo
-500
"
href=
"/500"
>
500 error
</inertia-link>
<inertia-link
class=
"btn-indigo
-500
"
href=
"/404"
>
404 error
</inertia-link>
</div>
</layout>
</
template
>
...
...
resources/js/Pages/Organizations/Create.vue
View file @
a679df7
...
...
@@ -21,7 +21,7 @@
<text-input
v-model=
"form.postal_code"
:errors=
"errors.postal_code"
class=
"pr-6 pb-8 w-full lg:w-1/2"
label=
"Postal code"
/>
</div>
<div
class=
"px-8 py-4 bg-gray-100 border-t border-gray-200 flex justify-end items-center"
>
<loading-button
:loading=
"sending"
class=
"btn-indigo"
type=
"submit"
>
Create Organization
</loading-button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
"
type=
"submit"
>
Create Organization
</loading-button>
</div>
</form>
</div>
...
...
resources/js/Pages/Organizations/Edit.vue
View file @
a679df7
...
...
@@ -25,8 +25,8 @@
<text-input
v-model=
"form.postal_code"
:errors=
"errors.postal_code"
class=
"pr-6 pb-8 w-full lg:w-1/2"
label=
"Postal code"
/>
</div>
<div
class=
"px-8 py-4 bg-gray-100 border-t border-gray-200 flex items-center"
>
<button
v-if=
"!organization.deleted_at"
class=
"text-red-
5
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"destroy"
>
Delete Organization
</button>
<loading-button
:loading=
"sending"
class=
"btn-indigo ml-auto"
type=
"submit"
>
Update Organization
</loading-button>
<button
v-if=
"!organization.deleted_at"
class=
"text-red-
7
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"destroy"
>
Delete Organization
</button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
ml-auto"
type=
"submit"
>
Update Organization
</loading-button>
</div>
</form>
</div>
...
...
@@ -42,7 +42,7 @@
<td
class=
"border-t"
>
<inertia-link
class=
"px-6 py-4 flex items-center focus:text-indigo-500"
:href=
"route('contacts.edit', contact.id)"
>
{{
contact
.
name
}}
<icon
v-if=
"contact.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray ml-2"
/>
<icon
v-if=
"contact.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray
-400
ml-2"
/>
</inertia-link>
</td>
<td
class=
"border-t"
>
...
...
@@ -57,7 +57,7 @@
</td>
<td
class=
"border-t w-px"
>
<inertia-link
class=
"px-4 flex items-center"
:href=
"route('contacts.edit', contact.id)"
tabindex=
"-1"
>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray"
/>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray
-400
"
/>
</inertia-link>
</td>
</tr>
...
...
resources/js/Pages/Organizations/Index.vue
View file @
a679df7
...
...
@@ -3,14 +3,14 @@
<h1
class=
"mb-8 font-bold text-3xl"
>
Organizations
</h1>
<div
class=
"mb-6 flex justify-between items-center"
>
<search-filter
v-model=
"form.search"
class=
"w-full max-w-md mr-4"
@
reset=
"reset"
>
<label
class=
"block text-gray-
8
00"
>
Trashed:
</label>
<label
class=
"block text-gray-
7
00"
>
Trashed:
</label>
<select
v-model=
"form.trashed"
class=
"mt-1 w-full form-select"
>
<option
:value=
"null"
/>
<option
value=
"with"
>
With Trashed
</option>
<option
value=
"only"
>
Only Trashed
</option>
</select>
</search-filter>
<inertia-link
class=
"btn-indigo"
:href=
"route('organizations.create')"
>
<inertia-link
class=
"btn-indigo
-500
"
:href=
"route('organizations.create')"
>
<span>
Create
</span>
<span
class=
"hidden md:inline"
>
Organization
</span>
</inertia-link>
...
...
@@ -26,7 +26,7 @@
<td
class=
"border-t"
>
<inertia-link
class=
"px-6 py-4 flex items-center focus:text-indigo-500"
:href=
"route('organizations.edit', organization.id)"
>
{{
organization
.
name
}}
<icon
v-if=
"organization.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray ml-2"
/>
<icon
v-if=
"organization.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray
-400
ml-2"
/>
</inertia-link>
</td>
<td
class=
"border-t"
>
...
...
@@ -41,7 +41,7 @@
</td>
<td
class=
"border-t w-px"
>
<inertia-link
class=
"px-4 flex items-center"
:href=
"route('organizations.edit', organization.id)"
tabindex=
"-1"
>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray"
/>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray
-400
"
/>
</inertia-link>
</td>
</tr>
...
...
resources/js/Pages/Users/Create.vue
View file @
a679df7
...
...
@@ -17,7 +17,7 @@
</select-input>
</div>
<div
class=
"px-8 py-4 bg-gray-100 border-t border-gray-200 flex justify-end items-center"
>
<loading-button
:loading=
"sending"
class=
"btn-indigo"
type=
"submit"
>
Create User
</loading-button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
"
type=
"submit"
>
Create User
</loading-button>
</div>
</form>
</div>
...
...
resources/js/Pages/Users/Edit.vue
View file @
a679df7
...
...
@@ -21,8 +21,8 @@
</select-input>
</div>
<div
class=
"px-8 py-4 bg-gray-100 border-t border-gray-200 flex items-center"
>
<button
v-if=
"!user.deleted_at"
class=
"text-red-
5
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"destroy"
>
Delete User
</button>
<loading-button
:loading=
"sending"
class=
"btn-indigo ml-auto"
type=
"submit"
>
Update User
</loading-button>
<button
v-if=
"!user.deleted_at"
class=
"text-red-
7
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"destroy"
>
Delete User
</button>
<loading-button
:loading=
"sending"
class=
"btn-indigo
-500
ml-auto"
type=
"submit"
>
Update User
</loading-button>
</div>
</form>
</div>
...
...
resources/js/Pages/Users/Index.vue
View file @
a679df7
...
...
@@ -3,20 +3,20 @@
<h1
class=
"mb-8 font-bold text-3xl"
>
Users
</h1>
<div
class=
"mb-6 flex justify-between items-center"
>
<search-filter
v-model=
"form.search"
class=
"w-full max-w-md mr-4"
@
reset=
"reset"
>
<label
class=
"block text-gray-
8
00"
>
Role:
</label>
<label
class=
"block text-gray-
7
00"
>
Role:
</label>
<select
v-model=
"form.role"
class=
"mt-1 w-full form-select"
>
<option
:value=
"null"
/>
<option
value=
"user"
>
User
</option>
<option
value=
"owner"
>
Owner
</option>
</select>
<label
class=
"mt-4 block text-gray-
8
00"
>
Trashed:
</label>
<label
class=
"mt-4 block text-gray-
7
00"
>
Trashed:
</label>
<select
v-model=
"form.trashed"
class=
"mt-1 w-full form-select"
>
<option
:value=
"null"
/>
<option
value=
"with"
>
With Trashed
</option>
<option
value=
"only"
>
Only Trashed
</option>
</select>
</search-filter>
<inertia-link
class=
"btn-indigo"
:href=
"route('users.create')"
>
<inertia-link
class=
"btn-indigo
-500
"
:href=
"route('users.create')"
>
<span>
Create
</span>
<span
class=
"hidden md:inline"
>
User
</span>
</inertia-link>
...
...
@@ -32,7 +32,7 @@
<td
class=
"border-t"
>
<inertia-link
class=
"px-6 py-4 flex items-center focus:text-indigo-500"
:href=
"route('users.edit', user.id)"
>
{{
user
.
name
}}
<icon
v-if=
"user.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray ml-2"
/>
<icon
v-if=
"user.deleted_at"
name=
"trash"
class=
"flex-shrink-0 w-3 h-3 fill-gray
-400
ml-2"
/>
</inertia-link>
</td>
<td
class=
"border-t"
>
...
...
@@ -47,7 +47,7 @@
</td>
<td
class=
"border-t w-px"
>
<inertia-link
class=
"px-4 flex items-center"
:href=
"route('users.edit', user.id)"
tabindex=
"-1"
>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray"
/>
<icon
name=
"cheveron-right"
class=
"block w-6 h-6 fill-gray
-400
"
/>
</inertia-link>
</td>
</tr>
...
...
resources/js/Shared/Layout.vue
View file @
a679df7
...
...
@@ -10,7 +10,7 @@
</inertia-link>
<dropdown
class=
"md:hidden"
placement=
"bottom-end"
>
<svg
class=
"fill-white w-6 h-6"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 20 20"
><path
d=
"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"
/></svg>
<div
slot=
"dropdown"
class=
"mt-2 px-8 py-4 shadow-xl bg-indigo-
7
00 rounded"
>
<div
slot=
"dropdown"
class=
"mt-2 px-8 py-4 shadow-xl bg-indigo-
8
00 rounded"
>
<main-menu
/>
</div>
</dropdown>
...
...
@@ -19,16 +19,16 @@
<div
class=
"mt-1 mr-4"
>
{{
$page
.
auth
.
user
.
account
.
name
}}
</div>
<dropdown
class=
"mt-1"
placement=
"bottom-end"
>
<div
class=
"flex items-center cursor-pointer select-none group"
>
<div
class=
"text-gray-
8
00 group-hover:text-indigo-600 focus:text-indigo-600 mr-1 whitespace-no-wrap"
>
<div
class=
"text-gray-
7
00 group-hover:text-indigo-600 focus:text-indigo-600 mr-1 whitespace-no-wrap"
>
<span>
{{
$page
.
auth
.
user
.
first_name
}}
</span>
<span
class=
"hidden md:inline"
>
{{
$page
.
auth
.
user
.
last_name
}}
</span>
</div>
<icon
class=
"w-5 h-5 group-hover:fill-indigo-600 fill-gray-
8
00 focus:fill-indigo-600"
name=
"cheveron-down"
/>
<icon
class=
"w-5 h-5 group-hover:fill-indigo-600 fill-gray-
7
00 focus:fill-indigo-600"
name=
"cheveron-down"
/>
</div>
<div
slot=
"dropdown"
class=
"mt-2 py-2 shadow-xl bg-white rounded text-sm"
>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo-
6
00 hover:text-white"
:href=
"route('users.edit', $page.auth.user.id)"
>
My Profile
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo-
6
00 hover:text-white"
:href=
"route('users')"
>
Manage Users
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo-
6
00 hover:text-white"
:href=
"route('logout')"
method=
"post"
>
Logout
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo-
5
00 hover:text-white"
:href=
"route('users.edit', $page.auth.user.id)"
>
My Profile
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo-
5
00 hover:text-white"
:href=
"route('users')"
>
Manage Users
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo-
5
00 hover:text-white"
:href=
"route('logout')"
method=
"post"
>
Logout
</inertia-link>
</div>
</dropdown>
</div>
...
...
resources/js/Shared/MainMenu.vue
View file @
a679df7
...
...
@@ -3,25 +3,25 @@
<div
class=
"mb-4"
>
<inertia-link
class=
"flex items-center group py-3"
:href=
"route('dashboard')"
>
<icon
name=
"dashboard"
class=
"w-4 h-4 mr-2"
:class=
"isUrl('') ? 'fill-white' : 'fill-indigo-400 group-hover:fill-white'"
/>
<div
:class=
"isUrl('') ? 'text-white' : 'text-indigo-
2
00 group-hover:text-white'"
>
Dashboard
</div>
<div
:class=
"isUrl('') ? 'text-white' : 'text-indigo-
3
00 group-hover:text-white'"
>
Dashboard
</div>
</inertia-link>
</div>
<div
class=
"mb-4"
>
<inertia-link
class=
"flex items-center group py-3"
:href=
"route('organizations')"
>
<icon
name=
"office"
class=
"w-4 h-4 mr-2"
:class=
"isUrl('organizations') ? 'fill-white' : 'fill-indigo-400 group-hover:fill-white'"
/>
<div
:class=
"isUrl('organizations') ? 'text-white' : 'text-indigo-
2
00 group-hover:text-white'"
>
Organizations
</div>
<div
:class=
"isUrl('organizations') ? 'text-white' : 'text-indigo-
3
00 group-hover:text-white'"
>
Organizations
</div>
</inertia-link>
</div>
<div
class=
"mb-4"
>
<inertia-link
class=
"flex items-center group py-3"
:href=
"route('contacts')"
>
<icon
name=
"users"
class=
"w-4 h-4 mr-2"
:class=
"isUrl('contacts') ? 'fill-white' : 'fill-indigo-400 group-hover:fill-white'"
/>
<div
:class=
"isUrl('contacts') ? 'text-white' : 'text-indigo-
2
00 group-hover:text-white'"
>
Contacts
</div>
<div
:class=
"isUrl('contacts') ? 'text-white' : 'text-indigo-
3
00 group-hover:text-white'"
>
Contacts
</div>
</inertia-link>
</div>
<div
class=
"mb-4"
>
<inertia-link
class=
"flex items-center group py-3"
:href=
"route('reports')"
>
<icon
name=
"printer"
class=
"w-4 h-4 mr-2"
:class=
"isUrl('reports') ? 'fill-white' : 'fill-indigo-400 group-hover:fill-white'"
/>
<div
:class=
"isUrl('reports') ? 'text-white' : 'text-indigo-
2
00 group-hover:text-white'"
>
Reports
</div>
<div
:class=
"isUrl('reports') ? 'text-white' : 'text-indigo-
3
00 group-hover:text-white'"
>
Reports
</div>
</inertia-link>
</div>
</div>
...
...
resources/js/Shared/Pagination.vue
View file @
a679df7
<
template
>
<div
class=
"mt-6 -mb-1 flex flex-wrap"
>
<template
v-for=
"(link, key) in links"
>
<div
v-if=
"link.url === null"
:key=
"key"
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded text-gray"
:class=
"
{ 'ml-auto': link.label === 'Next' }">
{{
link
.
label
}}
</div>
<div
v-if=
"link.url === null"
:key=
"key"
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded text-gray
-400
"
:class=
"
{ 'ml-auto': link.label === 'Next' }">
{{
link
.
label
}}
</div>
<inertia-link
v-else
:key=
"key"
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500"
:class=
"
{ 'bg-white': link.active, 'ml-auto': link.label === 'Next' }" :href="link.url">
{{
link
.
label
}}
</inertia-link>
</
template
>
</div>
...
...
resources/js/Shared/SearchFilter.vue
View file @
a679df7
...
...
@@ -3,8 +3,8 @@
<div
class=
"flex w-full bg-white shadow rounded"
>
<dropdown
class=
"px-4 md:px-6 rounded-l border-r hover:bg-gray-100 focus:border-white focus:shadow-outline focus:z-10"
placement=
"bottom-start"
>
<div
class=
"flex items-baseline"
>
<span
class=
"text-gray-
8
00 hidden md:inline"
>
Filter
</span>
<svg
class=
"w-2 h-2 fill-gray-
7
00 md:ml-2"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 961.243 599.998"
>
<span
class=
"text-gray-
7
00 hidden md:inline"
>
Filter
</span>
<svg
class=
"w-2 h-2 fill-gray-
6
00 md:ml-2"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 961.243 599.998"
>
<path
d=
"M239.998 239.999L0 0h961.243L721.246 240c-131.999 132-240.28 240-240.624 239.999-.345-.001-108.625-108.001-240.624-240z"
/>
</svg>
</div>
...
...
@@ -14,7 +14,7 @@
</dropdown>
<input
class=
"relative w-full px-6 py-3 rounded-r focus:shadow-outline"
autocomplete=
"off"
type=
"text"
name=
"search"
placeholder=
"Search…"
:value=
"value"
@
input=
"$emit('input', $event.target.value)"
>
</div>
<button
class=
"ml-3 text-sm text-gray-
600 hover:text-gray-7
00 focus:text-indigo-500"
type=
"button"
@
click=
"$emit('reset')"
>
Reset
</button>
<button
class=
"ml-3 text-sm text-gray-
500 hover:text-gray-6
00 focus:text-indigo-500"
type=
"button"
@
click=
"$emit('reset')"
>
Reset
</button>
</div>
</
template
>
...
...
resources/js/Shared/TrashedMessage.vue
View file @
a679df7
<
template
>
<div
class=
"p-4 bg-yellow-400 rounded
border border-yellow-600 flex items-center justify-between
"
>
<div
class=
"p-4 bg-yellow-400 rounded
flex items-center justify-between max-w-3xl
"
>
<div
class=
"flex items-center"
>
<icon
name=
"trash"
class=
"flex-shrink-0 w-4 h-4 fill-yellow-
7
00 mr-2"
/>
<div
class=
"text-yellow-
7
00"
>
<icon
name=
"trash"
class=
"flex-shrink-0 w-4 h-4 fill-yellow-
9
00 mr-2"
/>
<div
class=
"text-yellow-
9
00"
>
<slot
/>
</div>
</div>
<button
class=
"text-yellow-
7
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"$emit('restore')"
>
Restore
</button>
<button
class=
"text-yellow-
9
00 hover:underline"
tabindex=
"-1"
type=
"button"
@
click=
"$emit('restore')"
>
Restore
</button>
</div>
</
template
>
...
...
resources/views/app.blade.php
View file @
a679df7
...
...
@@ -7,7 +7,7 @@
<script
src=
"{{ mix('/js/app.js') }}"
defer
></script>
@routes
</head>
<body
class=
"font-sans leading-none text-gray-
8
00 antialiased"
>
<body
class=
"font-sans leading-none text-gray-
7
00 antialiased"
>
@inertia
...
...
tailwind.config.js
View file @
a679df7
...
...
@@ -9,6 +9,17 @@ module.exports = {
...
defaultTheme
.
fontFamily
.
sans
,
],
},
colors
:
{
indigo
:
{
'900'
:
'#191e38'
,
'800'
:
'#2f365f'
,
'600'
:
'#5661b3'
,
'500'
:
'#6574cd'
,
'400'
:
'#7886d7'
,
'300'
:
'#b2b7ff'
,
'100'
:
'#e6e8ff'
,
},
},
boxShadow
:
theme
=>
({
'outline'
:
'0 0 0 2px '
+
theme
(
'colors.indigo.500'
),
}),
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment