Skip to content

Commit

Permalink
Update Application layout (#738)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Platov <[email protected]>
  • Loading branch information
SasLord authored Dec 28, 2021
1 parent f7797f8 commit b05e230
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
export let candidate: Candidate
</script>

<div class="flex-col card-container">
<div class="flex-col h-full card-container">
<div class="label">CANDIDATE</div>
<Avatar avatar={candidate.avatar} size={'large'} />
{#if candidate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import type { Candidate, Applicant, Vacancy } from '@anticrm/recruit'
import CandidateCard from './CandidateCard.svelte'
import VacancyCard from './VacancyCard.svelte'
import ExpandRightDouble from './icons/ExpandRightDouble.svelte'
import recruit from '../plugin'
Expand Down Expand Up @@ -48,14 +49,16 @@
{#if object !== undefined && candidate !== undefined}
<div class="grid-cards">
<CandidateCard {candidate} />
<ExpandRightDouble />
<VacancyCard {vacancy} />
</div>
{/if}

<style lang="scss">
.grid-cards {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: 1fr 4rem 1fr;
column-gap: 1.5rem;
align-items: center;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export let vacancy: Vacancy
</script>

<div class="flex-col card-container">
<div class="flex-col h-full card-container">
<div class="label">VACANCY</div>
<div class="flex-center logo">
<Company size={'large'} />
Expand Down
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit b05e230

Please sign in to comment.