-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Leire Aguirre <[email protected]>
- Loading branch information
1 parent
6cd6121
commit 1eb44cb
Showing
8 changed files
with
172 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 18 additions & 12 deletions
30
argilla-frontend/components/features/annotation/progress/TeamProgress.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
argilla-frontend/components/features/annotation/progress/status-counter/StatusCounter.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<li class="status-counter"> | ||
<span> | ||
<span class="color-bullet" :style="{ backgroundColor: color }"></span> | ||
<label class="status-counter__name" v-text="name" /> | ||
</span> | ||
<span class="status-counter__counter" v-text="value" /> | ||
</li> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
color: { | ||
type: String, | ||
required: true, | ||
}, | ||
name: { | ||
type: String, | ||
required: true, | ||
}, | ||
value: { | ||
type: Number, | ||
required: true, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
$bullet-size: 8px; | ||
.color-bullet { | ||
display: inline-flex; | ||
height: $bullet-size; | ||
width: $bullet-size; | ||
margin-right: 4px; | ||
border-radius: $border-radius-rounded; | ||
} | ||
.status-counter { | ||
display: flex; | ||
flex-direction: row; | ||
gap: $base-space; | ||
padding: $base-space; | ||
background: $black-3; | ||
border-radius: $border-radius; | ||
&__name { | ||
text-transform: capitalize; | ||
color: $black-54; | ||
@include font-size(12px); | ||
} | ||
&__counter { | ||
font-weight: 600; | ||
color: $black-87; | ||
@include font-size(14px); | ||
} | ||
} | ||
</style> |
32 changes: 32 additions & 0 deletions
32
...frontend/components/features/annotation/progress/status-counter/StatusCounterSkeleton.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div class="status-counter"></div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
$progressBackgroundColor: #f2f2f2; | ||
.status-counter { | ||
background: $black-3; | ||
border-radius: $border-radius; | ||
animation-duration: 0.5s; | ||
animation-fill-mode: forwards; | ||
animation-iteration-count: infinite; | ||
animation-name: skeletonBg; | ||
animation-timing-function: cubic-bezier(0.2, 0.7, 0.8, 0.7); | ||
background: linear-gradient( | ||
to right, | ||
$progressBackgroundColor 0%, | ||
darken($progressBackgroundColor, 3%) 50%, | ||
$progressBackgroundColor 100% | ||
); | ||
background-size: 200% 100%; | ||
@keyframes skeletonBg { | ||
0% { | ||
background-position: 100% 0; | ||
} | ||
100% { | ||
background-position: -100% 0; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters