<template>
  <div class="message-container">
    <div class="message">
      <div class="icon">
        <slot name="icon" />
      </div>
      <h3>{{ message }}</h3>
      <p>{{ description }}</p>
      <slot name="extras"/>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    message: {
      type: String,
      required: true
    },
    description: {
      type: String,
      required: false,
      default: ""
    }
  }
};
</script>


<style lang="scss" scoped>
.message-container {
  margin: 10vh auto;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0px 1px 2px #b4b4b494;

  .icon > * {
    font-size: 3rem;
  }

  > * {
    margin: 1rem 0;
  }
}
</style>

