diff --git a/assets/app.js b/assets/app.js index c5b1619..ba85c0d 100644 --- a/assets/app.js +++ b/assets/app.js @@ -7,9 +7,327 @@ import './bootstrap.js'; */ // any CSS you import will output into a single css file (app.css in this case) -import './styles/global.scss'; +import './styles/tailwind.css'; import './styles/app.css'; -// Import Bootstrap and make it globally available -import * as bootstrap from 'bootstrap'; -window.bootstrap = bootstrap; +// Notification System +class NotificationSystem { + constructor() { + this.container = null; + this.init(); + } + + init() { + // Create notification container if it doesn't exist + this.container = document.getElementById('notification-container'); + if (!this.container) { + this.container = document.createElement('div'); + this.container.id = 'notification-container'; + this.container.className = 'notification-container'; + document.body.appendChild(this.container); + } + } + + show(message, type = 'info', title = '', duration = 5000) { + const notification = document.createElement('div'); + notification.className = `notification ${type}`; + + const icon = this.getIcon(type); + const closeIcon = this.getCloseIcon(); + + notification.innerHTML = ` +
+