mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-17 05:24:06 +00:00
Nice blank state messages
This commit is contained in:
33
frontend/src/components/blankstate.svelte
Normal file
33
frontend/src/components/blankstate.svelte
Normal file
@ -0,0 +1,33 @@
|
||||
<script>
|
||||
export let label = 'No items';
|
||||
export let image = '/empty.svg';
|
||||
</script>
|
||||
|
||||
<div class="blankstate">
|
||||
<div class="content">
|
||||
<img src={image} alt="">
|
||||
<p>{label}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.blankstate {
|
||||
display: flex;
|
||||
}
|
||||
.content {
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 100px;
|
||||
width: auto;
|
||||
filter: grayscale(1);
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 2rem;
|
||||
color: #777;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user