-
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.
- Loading branch information
ChienNM3
committed
Feb 5, 2024
1 parent
14526dc
commit 7e5e47f
Showing
5 changed files
with
75 additions
and
34 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -11,11 +11,31 @@ templ layout(title string) { | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta name="htmx-config" content='{"includeIndicatorStyles": false}'/> | ||
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"/> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"/> | ||
<link href="/static/style/output.css" rel="stylesheet"/> | ||
<script src="https://kit.fontawesome.com/aff606e071.js" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected]" integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/htmx.org/dist/ext/debug.js"></script> | ||
<title>{ title }</title> | ||
<script> | ||
document.addEventListener('htmx:responseError', function (event) { | ||
Toastify({ | ||
text: event.detail.xhr.response, | ||
duration: 3000, | ||
newWindow: true, | ||
close: true, | ||
gravity: "top", | ||
position: "right", | ||
className: "toast", | ||
style: { | ||
background: "linear-gradient(to right, #44403c, #57534e)", | ||
color: "#f8fafc", | ||
radiusBorder: "0.25rem", | ||
}, | ||
stopOnFocus: true, | ||
}).showToast(); | ||
}); | ||
</script> | ||
</head> | ||
<body | ||
class="box-border flex min-h-screen w-full flex-col bg-stone-800 text-slate-100" | ||
|
@@ -33,6 +53,7 @@ templ layout(title string) { | |
</nav> | ||
{ children... } | ||
</body> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script> | ||
</html> | ||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.