initial upload
This commit is contained in:
parent
987c99d00b
commit
bb6c0147db
44 changed files with 1884 additions and 131 deletions
33
assets/vue/grid.vue
Normal file
33
assets/vue/grid.vue
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<template>
|
||||
<div :class="[
|
||||
'grid',
|
||||
'grid-cols-1',
|
||||
'md:grid-cols-2',
|
||||
'lg:grid-cols-' + columns,
|
||||
'gap-6',
|
||||
'relative'
|
||||
]">
|
||||
<div v-if="title" class="col-span-full">
|
||||
<h5 class="font-medium text-gray-700 dark:text-gray-300 text-2xl">{{ title }}</h5>
|
||||
</div>
|
||||
<button v-if="this.$root.modeEdit" type="button" title="Edit Element"
|
||||
class="text-white bg-blue-700 hover:bg-blue-800 outline-none rounded-lg text-center dark:bg-blue-600 dark:hover:bg-blue-700 absolute top-2 right-2">
|
||||
<i class="ti ti-edit mx-3 my-2 block"></i>
|
||||
</button>
|
||||
<slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
props: {
|
||||
columns: Number,
|
||||
title: String
|
||||
},
|
||||
};
|
||||
</script>
|
||||
28
assets/vue/jumbotron.vue
Normal file
28
assets/vue/jumbotron.vue
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<template>
|
||||
<section class="w-full relative">
|
||||
<button v-if="this.$root.modeEdit" type="button" title="Edit Element" class="text-white bg-blue-700 hover:bg-blue-800 outline-none rounded-lg text-center dark:bg-blue-600 dark:hover:bg-blue-700 absolute top-2 right-2">
|
||||
<i class="ti ti-edit mx-3 my-2 block"></i>
|
||||
</button>
|
||||
<div class="py-4 px-4 mx-auto max-w-screen-xl text-center">
|
||||
<h1 class="my-4 font-extrabold tracking-tight leading-none text-4xl md:text-5xl lg:text-6xl">
|
||||
{{ title }}
|
||||
</h1>
|
||||
<p class="my-4 text-lg font-normal text-gray-500 lg:text-xl sm:px-16 lg:px-48">
|
||||
<slot>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
props: {
|
||||
title: String
|
||||
},
|
||||
};
|
||||
</script>
|
||||
25
assets/vue/link.vue
Normal file
25
assets/vue/link.vue
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<template>
|
||||
<a :href="link" target="_blank" class="p-8 border rounded-md bg-gray-50 dark:bg-gray-700 border-gray-200 dark:border-gray-600 hover:border-blue-400 ">
|
||||
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-gray-100">
|
||||
{{ title }}
|
||||
</h5>
|
||||
<p class="font-normal text-gray-500 dark:text-gray-400 text-md">
|
||||
{{ description }}
|
||||
</p>
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
props: {
|
||||
link: String,
|
||||
title: String,
|
||||
description: String
|
||||
},
|
||||
};
|
||||
</script>
|
||||
45
assets/vue/root.vue
Normal file
45
assets/vue/root.vue
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<template>
|
||||
<template v-for="(element, elementIndex) in elements">
|
||||
<div class="container flex justify-end">
|
||||
<button v-if="this.$root.modeEdit" type="button" class="text-white bg-blue-700 hover:bg-blue-800 outline-none rounded-lg text-center dark:bg-blue-600 dark:hover:bg-blue-700 absolute top-2 right-2" title="Edit Element">
|
||||
<i class="ti ti-edit mx-3 my-2 block"></i>
|
||||
</button>
|
||||
</div>
|
||||
<tailwind-jumbotron v-if="element.type == 'jumbotron'" :title="element.title">
|
||||
{{ element.text }}
|
||||
</tailwind-jumbotron>
|
||||
<tailwind-grid v-if="element.type == 'grid'" :columns="element.columns" :title="element.title">
|
||||
<dynamic-root :elements="element.elements"></dynamic-root>
|
||||
</tailwind-grid>
|
||||
<tailwind-link v-if="element.type == 'link'" :link="element.link" :title="element.title" :description="element.description">
|
||||
|
||||
</tailwind-link>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
props: {
|
||||
elements: Array
|
||||
},
|
||||
components: {
|
||||
TailwindJumbotron: Vue.defineAsyncComponent(() =>
|
||||
loadModule('/vue/jumbotron.vue', options)
|
||||
),
|
||||
TailwindGrid: Vue.defineAsyncComponent(() =>
|
||||
loadModule('/vue/grid.vue', options)
|
||||
),
|
||||
TailwindLink: Vue.defineAsyncComponent(() =>
|
||||
loadModule('/vue/link.vue', options)
|
||||
),
|
||||
DynamicRoot: Vue.defineAsyncComponent(() =>
|
||||
loadModule('/vue/root.vue', options)
|
||||
),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue