Fan website of IMMORTAL: Gates of Pyre.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

61 lines
1.3 KiB

<div class="alertContainer @Type.ToString().ToLower()">
@if (Title != null) {
<div class="alertTitle">
@Title
</div>
}
@if (Message != null) {
<div>
@Message
</div>
}
</div>
<style>
.alertContainer {
border: 4px solid;
border-radius: 4px;
padding: 16px;
display: flex;
flex-direction: column;
justify-items: stretch;
width: 100%;
}
.alertContainer.@SeverityType.Warning.ToString().ToLower() {
border-color: #2a2000;
background-color: #ffbf0029;
}
.alertContainer.@SeverityType.Error.ToString().ToLower() {
border-color: #290102;
background-color: #4C2C33;
}
.alertContainer.@SeverityType.Information.ToString().ToLower() {
border-color: #030129;
background-color: #2c3a4c;
}
.alertContainer.@SeverityType.Success.ToString().ToLower() {
border-color: #042901;
background-color: #2E4C2C;
}
.alertTitle {
font-weight: 800;
}
</style>
@code {
[Parameter]
public RenderFragment? Title { get; set; }
[Parameter]
public RenderFragment? Message { get; set; }
[Parameter]
public SeverityType Type { get; set; } = SeverityType.Warning;
}