Skip to content

Commit

Permalink
close icon added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole Zonnenberg committed Jun 14, 2023
1 parent 127fd40 commit 9a3aaea
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
7 changes: 7 additions & 0 deletions frontend/src/assets/stylesheets/components/alerts.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.v-alert-title {
text-transform: capitalize !important;
}

.v-alert__close {
.v-icon:before {
position: relative;
content: "";
}
}
20 changes: 14 additions & 6 deletions frontend/src/components/shared/AlertItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<template>
<v-alert
v-model="alert"
border="start"
variant="tonal"
closable
close-label="Close Alert"
color="deep-purple-accent-4"
title="Closable Alert"
>
Aenean imperdiet. Quisque id odio. Cras dapibus. Pellentesque ut neque. Cras dapibus.

Vivamus consectetuer hendrerit lacus. Sed mollis, eros et ultrices tempus, mauris ipsum aliquam libero, non adipiscing dolor urna a orci. Sed mollis, eros et ultrices tempus, mauris ipsum aliquam libero, non adipiscing dolor urna a orci. Curabitur blandit mollis lacus. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo.
</v-alert>
<!-- <v-alert
v-if="alert"
border="start"
variant="tonal"
Expand All @@ -9,7 +22,7 @@
:text="alert?.message"
:type="alert?.type"
:icon="alert?.icon"
/>
/> -->
</template>

<script lang="ts" setup>
Expand All @@ -18,9 +31,4 @@ import { useAlertStore } from "@/store";
const alertStore = useAlertStore();
const { alert } = storeToRefs(alertStore);
const icon = (type) => {
console.log(`$${type}`)
return `$${type}`;
}
</script>
11 changes: 10 additions & 1 deletion frontend/src/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,27 @@ import { loadFonts } from './webfontloader'
import vuetify from './vuetify'
import { createPinia } from 'pinia'
import router from '@/router'
import VueDatePicker from '@vuepic/vue-datepicker';

import VueDatePicker from '@vuepic/vue-datepicker'
import { library } from "@fortawesome/fontawesome-svg-core"
import { fas } from "@fortawesome/free-solid-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"

import '@vuepic/vue-datepicker/dist/main.css'
import '@fortawesome/fontawesome-free/css/all.css'

import { Vue3Mq } from "vue3-mq";

library.add(fas)

// Types
import type { App } from 'vue'

export function registerPlugins (app: App) {
loadFonts()
app
.component('VueDatePicker', VueDatePicker)
.component("font-awesome-icon", FontAwesomeIcon)
.use(vuetify)
.use(router)
.use(Vue3Mq, {
Expand Down

0 comments on commit 9a3aaea

Please sign in to comment.