mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-02 08:51:11 +00:00
2cd37973a8
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
84 lines
2.2 KiB
Plaintext
84 lines
2.2 KiB
Plaintext
<!--
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
//
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License. You may
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
//
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
-->
|
|
|
|
<script lang="ts">
|
|
import { Avatar } from '@anticrm/presentation'
|
|
import { IconFile } from '@anticrm/ui'
|
|
import LabelStatus from './LabelStatus.svelte'
|
|
import Tag from './Tag.svelte'
|
|
|
|
interface Person {
|
|
firstName: string
|
|
lastName: string
|
|
email: string
|
|
description: string
|
|
city: string
|
|
state: string
|
|
}
|
|
|
|
export let user: Person
|
|
|
|
</script>
|
|
|
|
<div class="container">
|
|
<div class="status"><LabelStatus label={user.state} color={'var(--primary-button-enabled)'} /></div>
|
|
<div class="avatar"><Avatar size={'large'} /></div>
|
|
<div class="name">{user.lastName} {user.firstName}</div>
|
|
<div class="description">{user.description}</div>
|
|
<div class="city">{user.city}</div>
|
|
<Tag icon={IconFile} label={'Application'} />
|
|
</div>
|
|
|
|
<style lang="scss">
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 1.25rem 1.5rem;
|
|
background-color: var(--theme-button-bg-enabled);
|
|
border: 1px solid var(--theme-bg-accent-color);
|
|
border-radius: .75rem;
|
|
|
|
.status {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
width: 100%;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.avatar {
|
|
height: 5rem;
|
|
}
|
|
.name {
|
|
margin: 1rem 0 .25rem;
|
|
font-weight: 500;
|
|
font-size: 1rem;
|
|
line-height: 150%;
|
|
color: var(--theme-caption-color);
|
|
}
|
|
.description, .city {
|
|
font-size: .75rem;
|
|
color: var(--theme-content-dark-color);
|
|
}
|
|
.city {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--theme-bg-accent-hover);
|
|
box-shadow: 0px .75rem 2.5rem rgba(0, 0, 0, .15);
|
|
}
|
|
}
|
|
</style>
|