tornado-initiation-ui/components/Diamond.vue

51 lines
2.3 KiB
Vue
Raw Normal View History

2020-10-12 19:41:52 +02:00
<template>
<svg
width="60"
height="60"
viewBox="0 0 60 60"
fill="none"
class="diamond"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="30"
cy="30"
r="29.5"
fill="#111111"
:stroke="waiting ? '#FFB950' : active ? '#44F1A6' : '#3F3F3F'"
2020-10-12 19:41:52 +02:00
/>
<circle
cx="30"
cy="30"
r="23.5"
:fill="waiting ? '#674B21' : active ? '#276C4E' : '#191919'"
:stroke="waiting ? '#FFB950' : active ? '#44F1A6' : '#3F3F3F'"
2020-10-12 19:41:52 +02:00
/>
<path
d="M34.5801 15.893C34.6485 16.9078 34.4722 17.4907 34.1736 17.886C33.8637 18.2962 33.3621 18.5882 32.5885 18.8921C32.2511 19.0247 31.8702 19.1558 31.4515 19.3C29.9916 19.8026 28.0728 20.4631 25.94 21.8938C23.8639 23.2864 22.4643 25.0309 21.3363 26.4369C20.9682 26.8958 20.6291 27.3186 20.3047 27.6813C19.6245 28.4421 19.0358 28.9193 18.3942 29.0845C17.777 29.2435 17.0037 29.1381 15.8951 28.4718C13.8305 27.2309 13.4688 24.7439 14.399 21.9281C15.3227 19.1318 17.4754 16.2282 20.0662 14.4904C22.6546 12.7541 26.2741 11.849 29.2741 12.0493C30.7723 12.1494 32.0721 12.5223 33.0055 13.1619C33.9217 13.7898 34.4985 14.6808 34.5801 15.893Z"
:fill="waiting ? '#CC9440' : active ? '#3AC589' : '#2B2B2B'"
:stroke="waiting ? '#FFB950' : active ? '#44F1A6' : '#3F3F3F'"
2020-10-12 19:41:52 +02:00
/>
<path
d="M44.5653 38.8122C44.7443 38.8672 44.8454 38.9473 44.907 39.0292C44.9708 39.1138 45.019 39.2361 45.0317 39.415C45.0583 39.7898 44.922 40.3278 44.6007 40.9715C43.9648 42.2456 42.7203 43.7047 41.3387 44.6648C39.946 45.6324 38.2245 46.3213 36.8574 46.4887C36.1691 46.573 35.6284 46.5179 35.2712 46.3555C34.951 46.21 34.7622 45.9763 34.7271 45.575C34.6742 44.9706 34.7575 44.6626 34.8723 44.4788C34.987 44.2951 35.1852 44.15 35.5682 43.9855C35.7449 43.9096 35.9558 43.8332 36.195 43.7466C36.9544 43.4715 37.999 43.0931 39.141 42.2995C40.2209 41.5492 40.9829 40.7142 41.5823 40.0575C41.809 39.8091 42.0124 39.5862 42.2009 39.403C42.5596 39.0546 42.8671 38.8363 43.2057 38.7332C43.5362 38.6326 43.9552 38.6245 44.5653 38.8122Z"
:fill="waiting ? '#CC9440' : active ? '#3AC589' : '#2B2B2B'"
:stroke="waiting ? '#FFB950' : active ? '#44F1A6' : '#3F3F3F'"
2020-10-12 19:41:52 +02:00
/>
</svg>
</template>
<script>
export default {
props: {
active: {
type: Boolean,
default: false,
},
waiting: {
type: Boolean,
default: false,
},
2020-10-12 19:41:52 +02:00
},
}
</script>