<!--Contains the component to display status when connection is not connected-->
<!--Show panel in middle of screen to display status-->

<template>
  <div class="center panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">{{ status }}</h3>
    </div>
    <div class="panel-body">
      <slot name="statusOverride">
        {{ message }}
      </slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'ConnectionStatus',
    props: ['status', 'options', 'message']
  }
</script>

<style>
  .center{
    margin: auto;
    position: relative;
    top: 0; left: 0; bottom: 0; right: 0;
    height: 125px;
    width: 400px;
    background-color: #e8e8e8;
  }

  .guac-client-loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: guac-client-spin 2s linear infinite;
  }

  @keyframes guac-client-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
</style>
