forked from justboil/admin-one-vue-tailwind
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
11,887 additions
and
16,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
export const colorsBg = { | ||
white: ['bg-white text-black'], | ||
light: ['bg-gray-100 text-black'], | ||
success: ['bg-green-500 text-white'], | ||
danger: ['bg-red-500 text-white'], | ||
warning: ['bg-yellow-500 text-white'], | ||
info: ['bg-blue-500 text-white'] | ||
} | ||
|
||
export const colorsBorders = { | ||
white: ['border-gray-300'], | ||
light: ['border-gray-200'], | ||
success: ['border-green-600'], | ||
danger: ['border-red-600'], | ||
warning: ['border-yellow-600'], | ||
info: ['border-blue-600'] | ||
} | ||
|
||
export const colorsText = { | ||
light: ['text-gray-700'], | ||
success: ['text-green-500'], | ||
danger: ['text-red-500'], | ||
warning: ['text-yellow-500'], | ||
info: ['text-blue-500'] | ||
} | ||
|
||
export const colorsOutline = { | ||
white: [...colorsBg.white, ...colorsBorders.white], | ||
light: [...colorsText.light, ...colorsBorders.light], | ||
success: [...colorsText.success, ...colorsBorders.success], | ||
danger: [...colorsText.danger, ...colorsBorders.danger], | ||
warning: [...colorsText.warning, ...colorsBorders.warning], | ||
info: [...colorsText.info, ...colorsBorders.info] | ||
} | ||
|
||
export const colorsButtons = { | ||
white: ['hover:bg-gray-50', ...colorsBg.white, ...colorsBorders.white], | ||
light: ['hover:bg-gray-200', ...colorsBg.light, ...colorsBorders.light], | ||
success: ['hover:bg-green-600', ...colorsBg.success, ...colorsBorders.success], | ||
danger: ['hover:bg-red-600', ...colorsBg.danger, ...colorsBorders.danger], | ||
warning: ['hover:bg-yellow-600', ...colorsBg.warning, ...colorsBorders.warning], | ||
info: ['hover:bg-blue-600', ...colorsBg.info, ...colorsBorders.info] | ||
} | ||
|
||
export const colorsButtonsOutline = { | ||
white: colorsButtons.white, | ||
light: ['hover:bg-gray-100', ...colorsText.light, ...colorsBorders.light], | ||
success: ['hover:bg-green-500 hover:text-white', ...colorsText.success, ...colorsBorders.success], | ||
danger: ['hover:bg-red-500 hover:text-white', ...colorsText.danger, ...colorsBorders.danger], | ||
warning: ['hover:bg-yellow-500 hover:text-white', ...colorsText.warning, ...colorsBorders.warning], | ||
info: ['hover:bg-blue-500 hover:text-white', ...colorsText.info, ...colorsBorders.info] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<template> | ||
<titled-section> | ||
<h1 class="flex items-center justify-center flex-col md:flex-row text-2xl text-gray-500 mb-12"> | ||
<span class="md:mr-3">Please star this project on</span> | ||
<a | ||
href="https://github.com/justboil/admin-one-vue-tailwind" | ||
class="inline-flex items-center justify-center text-blue-500" | ||
target="_blank" | ||
> | ||
<icon :path="mdiGithub" size="36" class="mr-1" /> | ||
<span>GitHub</span> | ||
</a> | ||
</h1> | ||
<h1 class="text-2xl text-gray-500"> | ||
Check out other components and layouts at<br> | ||
<template v-for="(screen, index) in screens" :key="screen.path"> | ||
<router-link | ||
:to="screen.path" | ||
class="text-blue-500" | ||
>{{ screen.title }}</router-link> | ||
<template v-if="index + 1 < screens.length">, </template> | ||
</template> | ||
<br> | ||
screen samples | ||
</h1> | ||
</titled-section> | ||
</template> | ||
|
||
<script> | ||
import { useRouter } from 'vue-router' | ||
import { mdiGithub } from '@mdi/js' | ||
import TitledSection from '@/components/TitledSection' | ||
import Icon from '@/components/Icon' | ||
export default { | ||
name: 'BottomOtherPagesSection', | ||
components: { | ||
TitledSection, | ||
Icon | ||
}, | ||
setup () { | ||
const router = useRouter() | ||
const routes = router.getRoutes() | ||
const screens = [] | ||
for (const routeIndex in routes) { | ||
const path = routes[routeIndex].path | ||
const title = routes[routeIndex].meta && routes[routeIndex].meta.title ? routes[routeIndex].meta.title : null | ||
if (title) { | ||
screens.push({ | ||
path, | ||
title | ||
}) | ||
} | ||
} | ||
return { | ||
screens, | ||
mdiGithub | ||
} | ||
} | ||
} | ||
</script> |
Oops, something went wrong.