forked from geolba/tethys.frontend
- switch to tailwind
This commit is contained in:
parent
c6469b00b4
commit
e997c0e1a1
17 changed files with 723 additions and 329 deletions
30
src/components/SectionBanner.vue
Normal file
30
src/components/SectionBanner.vue
Normal file
|
@ -0,0 +1,30 @@
|
|||
<script setup lang="ts">
|
||||
import { computed } from "vue";
|
||||
import { gradientBgPurplePink, gradientBgPinkRed, gradientBgGreenBlue } from "@/colors";
|
||||
|
||||
const props = defineProps({
|
||||
bg: {
|
||||
type: String,
|
||||
required: true,
|
||||
validator: (value) => ["purplePink", "pinkRed", "greenBlue"].includes(value),
|
||||
},
|
||||
});
|
||||
|
||||
const colorClass = computed(() => {
|
||||
switch (props.bg) {
|
||||
case "purplePink":
|
||||
return gradientBgPurplePink;
|
||||
case "pinkRed":
|
||||
return gradientBgPinkRed;
|
||||
case "greenBlue":
|
||||
return gradientBgGreenBlue;
|
||||
}
|
||||
|
||||
return "";
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<div v-bind:class="colorClass" class="mt-6 mb-6 rounded-2xl py-12 px-6 text-center">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue