-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(groups): create group member management view
- Loading branch information
1 parent
efe952b
commit 5d07b82
Showing
18 changed files
with
536 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$card-width: 320px; | ||
$card-height: 261px; | ||
$card-content-height: $card-height; | ||
$card-background: $color-tertiary-lightest; | ||
$card-background: $color-white; |
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
49 changes: 49 additions & 0 deletions
49
src/components/specific/groups/group-member-card/GroupMemberCard.scss
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,49 @@ | ||
@import "./GroupMemberCard.vars.scss"; | ||
|
||
.group-member-card { | ||
position: relative; | ||
min-width: $card-width; | ||
width: $card-width; | ||
height: $card-height; | ||
transition-duration: 0.35s; | ||
|
||
&__btn-menu { | ||
position: absolute; | ||
top: $spacing-unit/2; | ||
right: $spacing-unit/2; | ||
} | ||
|
||
&__info { | ||
text-align: center; | ||
|
||
&__name { | ||
margin-bottom: $spacing-unit/3; | ||
font-size: 1.1rem; | ||
font-weight: bold; | ||
color: $color-primary; | ||
} | ||
|
||
&__email { | ||
font-size: 0.9rem; | ||
color: $color-tertiary-dark; | ||
} | ||
} | ||
|
||
&:deep() { | ||
.bimdata-card__content { | ||
height: $card-content-height; | ||
padding: 0; | ||
overflow: hidden; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
} | ||
} | ||
|
||
&:hover { | ||
cursor: pointer; | ||
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/components/specific/groups/group-member-card/GroupMemberCard.vars.scss
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,4 @@ | ||
$card-width: 320px; | ||
$card-height: 261px; | ||
$card-content-height: $card-height; | ||
$card-background: $color-white; |
54 changes: 54 additions & 0 deletions
54
src/components/specific/groups/group-member-card/GroupMemberCard.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,54 @@ | ||
<template> | ||
<BIMDataCard class="group-member-card"> | ||
<template #content> | ||
<BIMDataButton | ||
class="group-member-card__btn-menu" | ||
ghost | ||
rounded | ||
icon | ||
@click.stop="() => {}" | ||
> | ||
<BIMDataIcon name="ellipsis" size="l" fill color="tertiary-dark" /> | ||
</BIMDataButton> | ||
<UserAvatar :user="user" size="64" /> | ||
<div class="group-member-card__info"> | ||
<div class="group-member-card__info__name"> | ||
{{ fullName }} | ||
</div> | ||
<div class="group-member-card__info__email"> | ||
{{ user.email }} | ||
</div> | ||
</div> | ||
</template> | ||
</BIMDataCard> | ||
</template> | ||
|
||
<script> | ||
import { computed } from "vue"; | ||
// Components | ||
import UserAvatar from "@/components/specific/users/user-avatar/UserAvatar"; | ||
export default { | ||
components: { | ||
UserAvatar | ||
}, | ||
props: { | ||
user: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
setup(props) { | ||
const fullName = computed( | ||
() => `${props.user.firstname || ""} ${props.user.lastname || ""}` | ||
); | ||
return { | ||
// References | ||
fullName | ||
}; | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss" src="./GroupMemberCard.scss"></style> |
Oops, something went wrong.