2022-04-15 14:24:30 +00:00
|
|
|
|
<template>
|
2022-05-10 23:01:48 +00:00
|
|
|
|
<div class="screen-empty-state" data-testid="screen-empty-state">
|
2022-04-15 14:24:30 +00:00
|
|
|
|
<div>
|
|
|
|
|
<span class="jumbo-icon">
|
2022-07-15 07:23:55 +00:00
|
|
|
|
<slot name="icon">☕️</slot>
|
2022-04-15 14:24:30 +00:00
|
|
|
|
</span>
|
|
|
|
|
<div class="text">
|
|
|
|
|
<slot>Placeholder text goes here.</slot>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2022-04-21 18:12:11 +00:00
|
|
|
|
<style lang="scss">
|
|
|
|
|
.screen-empty-state {
|
2022-04-15 14:24:30 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
place-content: center;
|
|
|
|
|
place-items: center;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: rgba(255, 255, 255, .5);
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
> div {
|
|
|
|
|
max-width: 75%;
|
2022-04-30 13:21:05 +00:00
|
|
|
|
padding: 0 2rem var(--header-height); // visually more balanced
|
|
|
|
|
margin: auto 0;
|
2022-04-15 14:24:30 +00:00
|
|
|
|
|
|
|
|
|
@media only screen and (max-width: 768px) {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.jumbo-icon {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 6em;
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
opacity: .7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
font-size: 2em;
|
|
|
|
|
font-weight: 200;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
color: rgba(255, 255, 255, .8);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.secondary {
|
2022-04-21 18:12:11 +00:00
|
|
|
|
margin-top: .2rem;
|
2022-04-15 14:24:30 +00:00
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|