-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display statistics about genders used in the company (#782)
- Loading branch information
Showing
6 changed files
with
179 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<style lang="scss" scoped> | ||
.progress-bar { | ||
border-radius: 3px; | ||
overflow: hidden; | ||
width: 100%; | ||
span { | ||
display: block; | ||
} | ||
} | ||
.bar { | ||
background: rgba(0,0,0,0.075); | ||
width: 100% | ||
} | ||
.progress { | ||
animation: loader 8s cubic-bezier(.45,.05,.55,.95) forwards; | ||
background: #75b800; | ||
color: #fff; | ||
padding: 5px; | ||
} | ||
</style> | ||
|
||
<template> | ||
<div class="mb4"> | ||
<span class="db fw5 mb2 relative"> | ||
<span class="mr1"> | ||
👫 | ||
</span> Genders in the company | ||
</span> | ||
|
||
<div class="br3 bg-white box z-1 pa3 relative"> | ||
<!-- genders --> | ||
<div v-for="gender in genders" :key="gender.id" class="mb3"> | ||
<div class="flex justify-between mb2"> | ||
<span class="fw5"> | ||
{{ gender.label }} | ||
</span> | ||
<span class="gray f6"> | ||
{{ gender.percent }}% | ||
</span> | ||
</div> | ||
<div class="progress-bar mb2"> | ||
<span class="bar"> | ||
<span class="progress" :style="'width: ' + gender.percent + '%;'"></span> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
genders: { | ||
type: Object, | ||
default: null, | ||
}, | ||
}, | ||
}; | ||
</script> |
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