Update Application layout (#738)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2021-12-28 12:12:47 +03:00 committed by GitHub
parent f7797f804c
commit b05e230246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 3 deletions

View File

@ -22,7 +22,7 @@
export let candidate: Candidate export let candidate: Candidate
</script> </script>
<div class="flex-col card-container"> <div class="flex-col h-full card-container">
<div class="label">CANDIDATE</div> <div class="label">CANDIDATE</div>
<Avatar avatar={candidate.avatar} size={'large'} /> <Avatar avatar={candidate.avatar} size={'large'} />
{#if candidate} {#if candidate}

View File

@ -19,6 +19,7 @@
import type { Candidate, Applicant, Vacancy } from '@anticrm/recruit' import type { Candidate, Applicant, Vacancy } from '@anticrm/recruit'
import CandidateCard from './CandidateCard.svelte' import CandidateCard from './CandidateCard.svelte'
import VacancyCard from './VacancyCard.svelte' import VacancyCard from './VacancyCard.svelte'
import ExpandRightDouble from './icons/ExpandRightDouble.svelte'
import recruit from '../plugin' import recruit from '../plugin'
@ -48,6 +49,7 @@
{#if object !== undefined && candidate !== undefined} {#if object !== undefined && candidate !== undefined}
<div class="grid-cards"> <div class="grid-cards">
<CandidateCard {candidate} /> <CandidateCard {candidate} />
<ExpandRightDouble />
<VacancyCard {vacancy} /> <VacancyCard {vacancy} />
</div> </div>
{/if} {/if}
@ -55,7 +57,8 @@
<style lang="scss"> <style lang="scss">
.grid-cards { .grid-cards {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 4rem 1fr;
column-gap: 1.5rem; column-gap: 1.5rem;
align-items: center;
} }
</style> </style>

View File

@ -20,7 +20,7 @@
export let vacancy: Vacancy export let vacancy: Vacancy
</script> </script>
<div class="flex-col card-container"> <div class="flex-col h-full card-container">
<div class="label">VACANCY</div> <div class="label">VACANCY</div>
<div class="flex-center logo"> <div class="flex-center logo">
<Company size={'large'} /> <Company size={'large'} />

View File

@ -0,0 +1,31 @@
<!--
// Copyright © 2020, 2021 Anticrm Platform Contributors.
// Copyright © 2021 Hardcore Engineering Inc.
//
// 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">
const fill: string = 'var(--theme-content-dark-color)'
</script>
<svg class="svg-expand" {fill} viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
<polygon points="32.2,15.6 31.4,16.4 46.9,32 31.4,47.6 32.2,48.4 48.6,32 "/>
<polygon points="32.6,32 16.2,15.6 15.4,16.4 30.9,32 15.4,47.6 16.2,48.4 "/>
</svg>
<style lang="scss">
.svg-expand {
width: 4rem;
height: 4rem;
}
</style>