mirror of
https://github.com/bakateam/merakiui.git
synced 2025-12-08 22:53:24 +00:00
Build full width alert 🧳
This commit is contained in:
@@ -7,6 +7,10 @@ export default [
|
||||
{ name: 'Warning pop' },
|
||||
{ name: 'Error pop' },
|
||||
{ name: 'Notification pop' },
|
||||
{ name: 'Success full width' },
|
||||
{ name: 'Info full width' },
|
||||
{ name: 'Warning full width' },
|
||||
{ name: 'Error full width' },
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
@@ -45,6 +45,10 @@ import InfoPop from "./UI/Alert/InfoPop";
|
||||
import WarningPop from "./UI/Alert/WarningPop";
|
||||
import ErrorPop from "./UI/Alert/ErrorPop";
|
||||
import NotificationPop from "./UI/Alert/NotificationPop";
|
||||
import SuccessFullWidth from "./UI/Alert/SuccessFullWidth";
|
||||
import InfoFullWidth from "./UI/Alert/InfoFullWidth";
|
||||
import WarningFullWidth from "./UI/Alert/WarningFullWidth";
|
||||
import ErrorFullWidth from "./UI/Alert/ErrorFullWidth";
|
||||
// Cards
|
||||
import ArticleCard from "./UI/Cards/ArticleCard";
|
||||
import ArticleCardWithImage from "./UI/Cards/ArticleCardWithImage";
|
||||
@@ -87,6 +91,10 @@ export default {
|
||||
WarningPop,
|
||||
ErrorPop,
|
||||
NotificationPop,
|
||||
SuccessFullWidth,
|
||||
InfoFullWidth,
|
||||
WarningFullWidth,
|
||||
ErrorFullWidth,
|
||||
|
||||
ArticleCard,
|
||||
ArticleCardWithImage,
|
||||
|
||||
31
src/components/UI/Alert/ErrorFullWidth.vue
Normal file
31
src/components/UI/Alert/ErrorFullWidth.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div :id="name | toId">
|
||||
<div class="bg-red-500 text-white">
|
||||
<div class="flex justify-between items-center container mx-auto py-4 px-6">
|
||||
<div class="flex">
|
||||
<svg viewBox="0 0 40 40" class="h-6 w-6 fill-current">
|
||||
<path d="M20 3.36667C10.8167 3.36667 3.3667 10.8167 3.3667 20C3.3667 29.1833 10.8167 36.6333 20 36.6333C29.1834 36.6333 36.6334 29.1833 36.6334 20C36.6334 10.8167 29.1834 3.36667 20 3.36667ZM19.1334 33.3333V22.9H13.3334L21.6667 6.66667V17.1H27.25L19.1334 33.3333Z"></path>
|
||||
</svg>
|
||||
|
||||
<p class="mx-3">Validation Error.</p>
|
||||
</div>
|
||||
|
||||
<button class="rounded-md p-1 hover:bg-opacity-25 hover:bg-gray-600 focus:outline-none">
|
||||
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6 18L18 6M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
name: 'Error Full Width',
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
31
src/components/UI/Alert/InfoFullWidth.vue
Normal file
31
src/components/UI/Alert/InfoFullWidth.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div :id="name | toId">
|
||||
<div class="bg-blue-500 text-white">
|
||||
<div class="flex justify-between items-center container mx-auto py-4 px-6">
|
||||
<div class="flex">
|
||||
<svg viewBox="0 0 40 40" class="h-6 w-6 fill-current">
|
||||
<path d="M20 3.33331C10.8 3.33331 3.33337 10.8 3.33337 20C3.33337 29.2 10.8 36.6666 20 36.6666C29.2 36.6666 36.6667 29.2 36.6667 20C36.6667 10.8 29.2 3.33331 20 3.33331ZM21.6667 28.3333H18.3334V25H21.6667V28.3333ZM21.6667 21.6666H18.3334V11.6666H21.6667V21.6666Z"></path>
|
||||
</svg>
|
||||
|
||||
<p class="mx-3">Update your avatar.</p>
|
||||
</div>
|
||||
|
||||
<button class="rounded-md p-1 hover:bg-opacity-25 hover:bg-gray-600 focus:outline-none">
|
||||
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6 18L18 6M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
name: 'Info Full Width',
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
31
src/components/UI/Alert/SuccessFullWidth.vue
Normal file
31
src/components/UI/Alert/SuccessFullWidth.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div :id="name | toId">
|
||||
<div class="bg-green-500 text-white">
|
||||
<div class="flex justify-between items-center container mx-auto py-4 px-6">
|
||||
<div class="flex">
|
||||
<svg viewBox="0 0 40 40" class="h-6 w-6 fill-current">
|
||||
<path d="M20 3.33331C10.8 3.33331 3.33337 10.8 3.33337 20C3.33337 29.2 10.8 36.6666 20 36.6666C29.2 36.6666 36.6667 29.2 36.6667 20C36.6667 10.8 29.2 3.33331 20 3.33331ZM16.6667 28.3333L8.33337 20L10.6834 17.65L16.6667 23.6166L29.3167 10.9666L31.6667 13.3333L16.6667 28.3333Z"></path>
|
||||
</svg>
|
||||
|
||||
<p class="mx-3">You are finished the tasks.</p>
|
||||
</div>
|
||||
|
||||
<button class="rounded-md p-1 hover:bg-opacity-25 hover:bg-gray-600 focus:outline-none">
|
||||
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6 18L18 6M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
name: 'Success Full Width',
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
31
src/components/UI/Alert/WarningFullWidth.vue
Normal file
31
src/components/UI/Alert/WarningFullWidth.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div :id="name | toId">
|
||||
<div class="bg-yellow-500 text-white">
|
||||
<div class="flex justify-between items-center container mx-auto py-4 px-6">
|
||||
<div class="flex">
|
||||
<svg viewBox="0 0 40 40" class="h-6 w-6 fill-current">
|
||||
<path d="M20 3.33331C10.8 3.33331 3.33337 10.8 3.33337 20C3.33337 29.2 10.8 36.6666 20 36.6666C29.2 36.6666 36.6667 29.2 36.6667 20C36.6667 10.8 29.2 3.33331 20 3.33331ZM21.6667 28.3333H18.3334V25H21.6667V28.3333ZM21.6667 21.6666H18.3334V11.6666H21.6667V21.6666Z"></path>
|
||||
</svg>
|
||||
|
||||
<p class="mx-3">This version is not support.</p>
|
||||
</div>
|
||||
|
||||
<button class="rounded-md p-1 hover:bg-opacity-25 hover:bg-gray-600 focus:outline-none">
|
||||
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6 18L18 6M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
name: 'Warning Full Width',
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user