Update Alert Components

This commit is contained in:
khatabwedaa 2020-06-11 17:02:39 +02:00
parent 2db9ba7f29
commit efb4b3d046
7 changed files with 21 additions and 21 deletions

View file

@ -2,10 +2,10 @@ export default [
{
name: 'Alert',
components: [
{ name: 'Success alert' },
{ name: 'Info alert' },
{ name: 'Warning alert' },
{ name: 'Error alert' },
{ name: 'Success pop' },
{ name: 'Info pop' },
{ name: 'Warning pop' },
{ name: 'Error pop' },
{ name: 'Notification pop' },
],

View file

@ -40,10 +40,10 @@
<script>
// Alerts
import SuccessAlert from "./UI/Alert/SuccessAlert";
import InfoAlert from "./UI/Alert/InfoAlert";
import WarningAlert from "./UI/Alert/WarningAlert";
import ErrorAlert from "./UI/Alert/ErrorAlert";
import SuccessPop from "./UI/Alert/SuccessPop";
import InfoPop from "./UI/Alert/InfoPop";
import WarningPop from "./UI/Alert/WarningPop";
import ErrorPop from "./UI/Alert/ErrorPop";
import NotificationPop from "./UI/Alert/NotificationPop";
// Cards
import ArticleCard from "./UI/Cards/ArticleCard";
@ -82,10 +82,10 @@ import ViewComponent from "./Utilities/ViewComponent";
export default {
components: {
SuccessAlert,
InfoAlert,
WarningAlert,
ErrorAlert,
SuccessPop,
InfoPop,
WarningPop,
ErrorPop,
NotificationPop,
ArticleCard,

View file

@ -1,6 +1,6 @@
<template>
<div class="px-3" :id="name | toId">
<div class="flex max-w-sm mx-auto bg-white rounded-lg overflow-hidden">
<div class="flex max-w-sm mx-auto bg-white shadow-md rounded-lg overflow-hidden">
<div class="flex justify-center items-center w-12 bg-red-500">
<svg class="h-6 w-6 fill-current text-white" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<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"/>
@ -21,7 +21,7 @@
export default {
data() {
return {
name: 'Error Alert',
name: 'Error Pop',
}
}
}

View file

@ -1,6 +1,6 @@
<template>
<div class="px-3" :id="name | toId">
<div class="flex max-w-sm mx-auto bg-white rounded-lg overflow-hidden">
<div class="flex max-w-sm mx-auto bg-white shadow-md rounded-lg overflow-hidden">
<div class="flex justify-center items-center w-12 bg-blue-500">
<svg class="h-6 w-6 fill-current text-white" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<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"/>
@ -21,7 +21,7 @@
export default {
data() {
return {
name: 'Info Alert',
name: 'Info Pop',
}
}
}

View file

@ -1,6 +1,6 @@
<template>
<div class="px-3" :id="name | toId">
<div class="flex max-w-sm bg-white shadow-lg rounded-lg overflow-hidden mx-auto">
<div class="flex max-w-sm bg-white shadow-md rounded-lg overflow-hidden mx-auto">
<div class="w-2 bg-gray-800"></div>
<div class="flex items-center px-2 py-3">
<img class="w-10 h-10 object-cover rounded-full" alt="User avatar" src="https://images.unsplash.com/photo-1477118476589-bff2c5c4cfbb?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=200&q=200">

View file

@ -1,6 +1,6 @@
<template>
<div class="px-3" :id="name | toId">
<div class="flex max-w-sm mx-auto bg-white rounded-lg overflow-hidden">
<div class="flex max-w-sm mx-auto bg-white shadow-md rounded-lg overflow-hidden">
<div class="flex justify-center items-center w-12 bg-green-500">
<svg class="h-6 w-6 fill-current text-white" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<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"/>
@ -21,7 +21,7 @@
export default {
data() {
return {
name: 'Success Alert',
name: 'Success Pop',
}
}
}

View file

@ -1,6 +1,6 @@
<template>
<div class="px-3" :id="name | toId">
<div class="flex max-w-sm mx-auto bg-white rounded-lg overflow-hidden">
<div class="flex max-w-sm mx-auto bg-white shadow-md rounded-lg overflow-hidden">
<div class="flex justify-center items-center w-12 bg-yellow-500">
<svg class="h-6 w-6 fill-current text-white" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<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"/>
@ -21,7 +21,7 @@
export default {
data() {
return {
name: 'Warning Alert',
name: 'Warning Pop',
}
}
}