-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Saba-Var/feat/toastification
feat: toastification
- Loading branch information
Showing
9 changed files
with
176 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,62 @@ | ||
* { | ||
word-break: break-all; | ||
} | ||
|
||
.toast { | ||
top: 3rem; | ||
} | ||
|
||
.scale-in-center { | ||
-webkit-animation: scale-in-center 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; | ||
animation: scale-in-center 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; | ||
} | ||
|
||
.scale-out-center { | ||
-webkit-animation: scale-out-center 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both; | ||
animation: scale-out-center 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both; | ||
} | ||
|
||
@keyframes scale-in-center { | ||
0% { | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
opacity: 1; | ||
} | ||
100% { | ||
-webkit-transform: scale(1); | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@-webkit-keyframes scale-out-center { | ||
0% { | ||
-webkit-transform: scale(1); | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
100% { | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes scale-out-center { | ||
0% { | ||
-webkit-transform: scale(1); | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
100% { | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.toast { | ||
top: 3.2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
import '@/assets/main.css' | ||
import { createApp } from 'vue' | ||
import 'vue-toastification/dist/index.css' | ||
import Toast from 'vue-toastification' | ||
import { createPinia } from 'pinia' | ||
import { createApp } from 'vue' | ||
import '@/assets/main.css' | ||
|
||
import App from '@/App.vue' | ||
import router from '@/router' | ||
|
||
const pinia = createPinia() | ||
const app = createApp(App) | ||
|
||
const toastOptions = { | ||
pauseOnHover: false, | ||
timeout: 3000, | ||
toastClassName: 'toast' | ||
} | ||
|
||
app.use(pinia) | ||
app.use(router) | ||
app.use(Toast, toastOptions) | ||
|
||
app.mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters