add svg animation of received state
This commit is contained in:
parent
47809b013f
commit
dd319b343e
|
@ -7,6 +7,11 @@ JobsItemComponent = Ember.Component.extend
|
||||||
classNameBindings: ['job.state']
|
classNameBindings: ['job.state']
|
||||||
classNames: ['tile', 'tile--jobs', 'row']
|
classNames: ['tile', 'tile--jobs', 'row']
|
||||||
|
|
||||||
|
isBooting: (->
|
||||||
|
if @get('job.state') == 'received'
|
||||||
|
return true
|
||||||
|
).property('job.state')
|
||||||
|
|
||||||
languages: (->
|
languages: (->
|
||||||
output = []
|
output = []
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
@import "app/components/sync-button";
|
@import "app/components/sync-button";
|
||||||
@import "app/components/loading-indicator";
|
@import "app/components/loading-indicator";
|
||||||
|
|
||||||
|
@import "app/animations/booting-state";
|
||||||
|
|
||||||
@import "app/modules/section";
|
@import "app/modules/section";
|
||||||
@import "app/modules/loader";
|
@import "app/modules/loader";
|
||||||
@import "app/modules/tiles";
|
@import "app/modules/tiles";
|
||||||
|
|
18
app/styles/app/animations/booting-state.sass
Normal file
18
app/styles/app/animations/booting-state.sass
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
.svg-booting
|
||||||
|
.bubble
|
||||||
|
transform-origin: center center
|
||||||
|
animation: bubbleScale 1.2s infinite linear
|
||||||
|
|
||||||
|
.bubble:nth-of-type(2)
|
||||||
|
animation-delay: 0.35s
|
||||||
|
|
||||||
|
.bubble:nth-of-type(3)
|
||||||
|
animation-delay: 0.7s
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes bubbleScale
|
||||||
|
0%, 80%, 100%
|
||||||
|
transform: scale(0)
|
||||||
|
|
||||||
|
40%
|
||||||
|
transform: scale(1.0)
|
|
@ -38,6 +38,9 @@
|
||||||
.tile-status--job
|
.tile-status--job
|
||||||
width: 2em
|
width: 2em
|
||||||
|
|
||||||
|
.svg-booting
|
||||||
|
margin: 0.7em 0.3em
|
||||||
|
|
||||||
.jobs-item
|
.jobs-item
|
||||||
padding: .1em 0
|
padding: .1em 0
|
||||||
.icon
|
.icon
|
||||||
|
|
|
@ -134,7 +134,6 @@
|
||||||
background-image: inline-image('svg/icon-job-errored.svg')
|
background-image: inline-image('svg/icon-job-errored.svg')
|
||||||
.icon--job.started,
|
.icon--job.started,
|
||||||
.icon--job.created,
|
.icon--job.created,
|
||||||
.icon--job.received,
|
|
||||||
.icon--job.queued,
|
.icon--job.queued,
|
||||||
.icon--started-yellow
|
.icon--started-yellow
|
||||||
background-image: inline-image('svg/icon-job-started.svg')
|
background-image: inline-image('svg/icon-job-started.svg')
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
{{#link-to "job" repo job}}
|
{{#link-to "job" repo job}}
|
||||||
<div class="tile-status tile-status--job">
|
<div class="tile-status tile-status--job">
|
||||||
<span class="icon icon--job {{job.state}}"></span>
|
{{#if isBooting}}
|
||||||
|
<svg class="svg-booting" version="1.1" width="30" height="12" viewBox="0 0 10 10" preserveAspectRatio="xMinYMid meet">
|
||||||
|
<g>
|
||||||
|
<circle class="bubble" fill="#CDBC2C" cx="7.686" cy="7.369" r="2"/>
|
||||||
|
<circle class="bubble" fill="#D6C826" cx="13.143" cy="7.369" r="2"/>
|
||||||
|
<circle class="bubble" fill="#D6C826" cx="2.232" cy="7.369" r="2"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
{{else}}
|
||||||
|
<span class="icon icon--job {{job.state}}"></span>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="job-id jobs-item build-status">
|
<p class="job-id jobs-item build-status">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user