2021-08-07 17:03:06 +00:00
|
|
|
<!--
|
|
|
|
// 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">
|
2021-09-07 08:36:50 +00:00
|
|
|
import { UserInfo, Avatar } from '@anticrm/presentation'
|
|
|
|
import { Icon, Label, IconThread, IconAttachment } from '@anticrm/ui'
|
|
|
|
import type { WithLookup } from '@anticrm/core'
|
|
|
|
import type { Applicant } from '@anticrm/recruit'
|
2021-08-07 17:03:06 +00:00
|
|
|
|
|
|
|
interface ICard {
|
|
|
|
_id: number
|
|
|
|
firstName: string
|
|
|
|
lastName: string
|
|
|
|
description: string
|
|
|
|
state: number
|
|
|
|
}
|
|
|
|
|
2021-09-07 08:36:50 +00:00
|
|
|
export let object: WithLookup<Applicant>
|
2021-08-07 17:03:06 +00:00
|
|
|
export let draggable: boolean
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="card-container" {draggable} class:draggable on:dragstart on:dragend>
|
2021-09-07 08:36:50 +00:00
|
|
|
<div class="card-bg" />
|
2021-08-07 17:03:06 +00:00
|
|
|
<div class="content">
|
2021-09-07 08:36:50 +00:00
|
|
|
<div class="flex-center">
|
|
|
|
<div class="avatar">
|
|
|
|
<Avatar size={'large'} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex-col">
|
|
|
|
<div class="name">{object.$lookup?.candidate?.firstName} {object.$lookup?.candidate?.lastName}</div>
|
|
|
|
<div class="city">{object.$lookup?.candidate?.city}</div>
|
|
|
|
<div class="tags">
|
|
|
|
<div class="tag"><Label label={'Application'} /></div>
|
|
|
|
<div class="tag"><Label label={'Resume'} /></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<Avatar size={'small'} />
|
|
|
|
<div class="flex-row-center">
|
|
|
|
<div class="flex-row-center caption-color tool">
|
|
|
|
<span class="icon"><IconAttachment size={'small'} /></span>
|
|
|
|
4
|
|
|
|
</div>
|
|
|
|
<div class="flex-row-center caption-color tool">
|
|
|
|
<span class="icon"><IconThread size={'small'} /></span>
|
|
|
|
5
|
|
|
|
</div>
|
2021-08-07 17:03:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2021-09-07 08:36:50 +00:00
|
|
|
@import '../../../../packages/theme/styles/mixins.scss';
|
|
|
|
|
2021-08-07 17:03:06 +00:00
|
|
|
.card-container {
|
2021-09-07 08:36:50 +00:00
|
|
|
position: relative;
|
2021-08-07 17:03:06 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
2021-08-17 14:46:06 +00:00
|
|
|
border-radius: .75rem;
|
2021-09-07 08:36:50 +00:00
|
|
|
overflow: hidden;
|
2021-08-07 17:03:06 +00:00
|
|
|
user-select: none;
|
2021-09-07 09:37:56 +00:00
|
|
|
backdrop-filter: blur(30px);
|
2021-08-07 17:03:06 +00:00
|
|
|
|
|
|
|
.content {
|
|
|
|
display: flex;
|
2021-09-07 08:36:50 +00:00
|
|
|
align-items: center;
|
|
|
|
padding: 1.25rem;
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
position: relative;
|
|
|
|
margin-right: 1rem;
|
|
|
|
width: 5rem;
|
|
|
|
height: 5rem;
|
|
|
|
border-radius: 50%;
|
2021-08-07 17:03:06 +00:00
|
|
|
|
2021-09-07 08:36:50 +00:00
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
@include bg-layer(transparent, .1);
|
|
|
|
border: 2px solid #fff;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
margin: .25rem 0;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
}
|
|
|
|
.city {
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: .75rem;
|
2021-08-07 17:03:06 +00:00
|
|
|
}
|
|
|
|
.tags {
|
|
|
|
display: flex;
|
2021-09-07 08:36:50 +00:00
|
|
|
margin-top: .5rem;
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: .375rem .5rem;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: .625rem;
|
|
|
|
text-align: center;
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
@include bg-layer(#fff, .04);
|
|
|
|
border-radius: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tag + .tag { margin-left: .5rem; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.footer {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: .75rem 1.25rem;
|
|
|
|
width: 100%;
|
|
|
|
min-height: 3rem;
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
@include bg-layer(#fff, .04);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tool .icon {
|
|
|
|
margin-right: .25rem;
|
|
|
|
opacity: .4;
|
|
|
|
}
|
|
|
|
.tool + .tool {
|
|
|
|
margin-left: .75rem;
|
2021-08-07 17:03:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.draggable {
|
|
|
|
cursor: grab;
|
|
|
|
}
|
2021-09-07 08:36:50 +00:00
|
|
|
|
|
|
|
.card-bg {
|
|
|
|
@include bg-layer(var(--theme-card-bg), .06);
|
|
|
|
}
|
2021-08-07 17:03:06 +00:00
|
|
|
}
|
2021-09-07 08:36:50 +00:00
|
|
|
|
|
|
|
:global(.card-container + .card-container) { margin-top: .75rem; }
|
2021-08-07 17:03:06 +00:00
|
|
|
</style>
|