Convert styling and layout to bootstrap

This commit is contained in:
Jan Eitzinger 2023-06-23 10:20:48 +02:00
parent 3c26deda30
commit 34f15cc407

View File

@ -1,42 +1,17 @@
{{define "content"}}
<div class="row">
<div class="col messageCol">
<div class="alert messageCard {{.MsgType}}" role="alert">
<div class="row justify-content-center">
<div class="col-4">
<div class="alert {{.MsgType}} p-3 text-center fs-3" role="alert">
{{if eq .MsgType "alert-info"}}
<i class="bi-info-circle-fill messageIcon"></i>
<b>{{.Message}}</b>
<i class="bi-info-circle-fill me-3"></i>
{{else if eq .MsgType "alert-warning"}}
<i class="bi-question-circle-fill messageIcon"></i>
<b>{{.Message}}</b>
<i class="bi-question-circle-fill me-3"></i>
{{else if eq .MsgType "alert-danger"}}
<i class="bi-exclamation-circle-fill messageIcon"></i>
<b>{{.Message}}</b>
<i class="bi-exclamation-circle-fill me-3"></i>
{{end}}
{{.Message}}
</div>
</div>
</div>
{{end}}
{{define "stylesheets"}}
<style>
.messageCol {
display: flex;
justify-content: center;
}
.messageCard {
display: flex;
justify-content: center;
align-items: center;
width: 50%;
padding-top: 2rem;
padding-bottom: 2rem;
}
.messageIcon {
font-size: 2rem;
margin-right:1rem;
}
</style>
{{end}}