-
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 upcoming new hires in team page (#785)
- Loading branch information
Showing
8 changed files
with
186 additions
and
1 deletion.
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,69 @@ | ||
<style lang="scss" scoped> | ||
.avatar { | ||
left: 1px; | ||
top: 5px; | ||
width: 35px; | ||
} | ||
.person { | ||
padding-left: 44px; | ||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
.avatar { | ||
top: 2px; | ||
} | ||
} | ||
</style> | ||
|
||
<template> | ||
<div class="mb4"> | ||
<span class="db fw5 mb2 relative"> | ||
<span class="mr1"> | ||
😎 | ||
</span> {{ $t('team.hires_next_week_title') }} | ||
</span> | ||
|
||
<div class="br3 bg-white box z-1 pa3 relative"> | ||
<ul v-if="hires.length != 0" class="list pl0 ma0"> | ||
<li v-for="hire in hires" :key="hire.id" class="mb3 pl3 db relative person"> | ||
<avatar :avatar="hire.avatar" :size="35" :class="'br-100 absolute avatar'" /> | ||
|
||
<!-- normal mode --> | ||
<inertia-link :href="hire.url" class="mb2"> | ||
{{ hire.name }} | ||
</inertia-link> | ||
|
||
<!-- position --> | ||
<span class="title db f7 mt1 lh-copy"> | ||
{{ hire.hired_at }} | ||
</span> | ||
</li> | ||
</ul> | ||
|
||
<!-- blank state --> | ||
<div v-if="hires.length == 0" class="tc f6"> | ||
{{ $t('company.new_hires_blank') }} | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Avatar from '@/Shared/Avatar'; | ||
export default { | ||
components: { | ||
Avatar, | ||
}, | ||
props: { | ||
hires: { | ||
type: Array, | ||
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
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