Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
lyove authored Jan 12, 2024
1 parent 0cb50e3 commit 4ef13bd
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 36 deletions.
68 changes: 53 additions & 15 deletions resources/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -334,34 +334,72 @@ input:checked ~ .dot {
line-height: 1;
}

.rounded-t-none {
/*
* Additional styles
*/

.position-sticky {
position: sticky;
}

.custom__rounded-t-none {
border-top-left-radius: 0;
border-top-right-radius: 0
}

.rounded-b-none {
.custom__rounded-b-none {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0
}

.sticky {
position: sticky;
}
@media (min-width: 1440px) {
.custom__xxl\:w-1\/3 {
width: 33.333333%
}

.right-1rem {
right: 1rem;
.custom__xxl\:w-3\/4 {
width: 75%
}
}

.right-2rem {
right: 2rem;
}
@media (max-width: 641px) {
.custom__sm\:mx-1 {
margin-left: 0.5rem;
margin-right: 0.5rem;
}

@media (min-width: 1440px) {
.xxl\:w-1\/3 {
width: 33.333333%
.custom__sm\:mx-2 {
margin-left: 1rem;
margin-right: 1rem;
}

.custom__sm\:my-1 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

.xxl\:w-3\/4 {
width: 75%
.custom__sm\:my-2 {
margin-top: 1rem;
margin-bottom: 1rem;
}

.custom__sm\:px-1 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}

.custom__sm\:px-2 {
padding-left: 1rem;
padding-right: 1rem;
}

.custom__sm\:py-1 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}

.custom__sm\:py-2 {
padding-top: 1rem;
padding-bottom: 1rem;
}
}
2 changes: 1 addition & 1 deletion resources/js/pages/Profile.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="app__profile">
<div class="w-full xxl:w-3/4 m-auto mt-5 px-4">
<div class="w-full custom__xxl:w-3/4 m-auto mt-5 px-4">
<div class="w-full p-4 flex border-b">
<div class="w-full">
<div class="text-xl font-bold">
Expand Down
8 changes: 4 additions & 4 deletions resources/js/pages/Projects/Content/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

<template #content>
<div v-if="isSavingEnable">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-b-none" @click.native="saveEdit(false, 'close')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-b-none" @click.native="saveEdit(false, 'close')">
<div class="text-gray-600 text-sm text-left">Save and close</div>
</ui-button>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-t-none" @click.native="saveEdit(false, 'new')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-t-none" @click.native="saveEdit(false, 'new')">
<div class="text-gray-600 text-sm text-left">Save and create new</div>
</ui-button>
</div>
Expand All @@ -43,10 +43,10 @@
</template>

<template #content>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-b-none" @click.native="saveEdit(true, 'close')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-b-none" @click.native="saveEdit(true, 'close')">
<div class="text-gray-600 text-sm text-left">Save, publish and close</div>
</ui-button>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-t-none" @click.native="saveEdit(true, 'new')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-t-none" @click.native="saveEdit(true, 'new')">
<div class="text-gray-600 text-sm text-left">Save, publish and create new</div>
</ui-button>
</template>
Expand Down
8 changes: 4 additions & 4 deletions resources/js/pages/Projects/Content/New.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
</template>

<template #content>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-b-none" @click.native="saveNew(false, 'close')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-b-none" @click.native="saveNew(false, 'close')">
<div class="text-gray-600 text-sm text-left">Save and close</div>
</ui-button>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-t-none" @click.native="saveNew(false, 'new')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-t-none" @click.native="saveNew(false, 'new')">
<div class="text-gray-600 text-sm text-left">Save and create new</div>
</ui-button>
</template>
Expand All @@ -43,10 +43,10 @@
</template>

<template #content>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-b-none" @click.native="saveNew(true, 'close')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-b-none" @click.native="saveNew(true, 'close')">
<div class="text-gray-600 text-sm text-left">Save, publish and close</div>
</ui-button>
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full rounded-t-none" @click.native="saveNew(true, 'new')">
<ui-button type="button" color="white" hover="gray-200" class="w-full h-full custom__rounded-t-none" @click.native="saveNew(true, 'new')">
<div class="text-gray-600 text-sm text-left">Save, publish and create new</div>
</ui-button>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<i v-if="listOptions.orderBy == 'published_by' && listOptions.criteria == 'DESC'" class="fa fa-sort-amount-down-alt text-indigo-500 ml-2"></i>
</div>
</th>
<th v-if="listOptions.getItems !== 'trashed'" scope="col" class="sticky right-0 px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase shadow-sm bg-gray-100">
<th v-if="listOptions.getItems !== 'trashed'" scope="col" class="position-sticky right-0 px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase shadow-sm bg-gray-100">
<span class="inline-block">Action</span>
</th>
</tr>
Expand Down Expand Up @@ -244,7 +244,7 @@
<td v-if="columns.published_by" class="px-6 py-3 text-sm w-px whitespace-nowrap text-gray-600">
<div v-if="item.published_by !== null" class="bg-green-500 text-white p-2 text-md rounded-full text-center mr-2 w-9" v-tooltip="item.published_by.name"><div class="w-full text-center">{{ getUserNameInitials(item.published_by.name) }}</div></div>
</td>
<td v-if="listOptions.getItems != 'trashed'" class="sticky right-0 px-2 py-4 text-sm w-28 whitespace-nowrap text-center shadow-sm bg-white">
<td v-if="listOptions.getItems != 'trashed'" class="position-sticky right-0 px-2 py-4 text-sm w-28 whitespace-nowrap text-center shadow-sm bg-white">
<div class="py-2">
<router-link :to="{name: 'projects.content.edit', params: { project_id: $route.params.project_id, col_id: collection_id, content_id: item.id } }" class="text-indigo-500 p-2 px-3 rounded-md hover:bg-gray-100 cursor-pointer bg-gray-50">
<i class="fa fa-pencil-alt"></i>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/confirm-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
<x-app-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/forgot-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
<x-app-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<x-auth-card>
<x-slot name="logo">
<a href="/" class="block">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
<x-app-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
<x-app-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/reset-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
<x-app-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/verify-email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
<x-app-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>

Expand Down
4 changes: 4 additions & 0 deletions resources/views/components/app-logo.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<span class="flex items-center justify-center text-center text-3xl">
<img src="{{ config('app.url') . '/images/logo.svg'}}" />
<span>{{ env('APP_NAME') }}</span>
</span>
3 changes: 0 additions & 3 deletions resources/views/components/application-logo.blade.php

This file was deleted.

2 changes: 1 addition & 1 deletion resources/views/components/auth-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100">
<div class="h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 custom__sm:px-2">
<div class="w-full sm:max-w-md">
{{ $logo }}
</div>
Expand Down

0 comments on commit 4ef13bd

Please sign in to comment.