Codice che avremmo dovuto usare:
<head>
...
<style>
body {
margin-top: 200px !important;
}
.alert {
display: flex;
max-width: 24rem;
margin: 0 auto;
padding: 1.5rem;
border-radius: 0.5rem;
background-color: #fff;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.alert-logo-wrap {
flex-shrink: 0;
}
.alert-logo {
height: 3rem;
width: 3rem;
}
.alert-body {
margin-left: 1.5rem;
padding-top: 0.25rem;
}
.alert-title {
color: #1a202c;
font-size: 1.25rem;
line-height: 1.25;
font-weight: 500;
}
.alert-message {
color: #718096;
font-size: 1rem;
line-height: 1.5;
}
</style>
</head>
<body>
<!-- HTML/CSS Version -->
<div class="alert">
<div class="alert-logo-wrap">
<img class="alert-logo" src="../assets/img/warning.svg" alt="alert" />
</div>
<div class="alert-body">
<h4 class="alert-title">Are You Sure?</h4>
<p class="alert-message">You are about to delete a post</p>
</div>
</div>
</body>
Con Tailwind: