-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip(front): float CV collection aside
- Loading branch information
Showing
5 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
49 changes: 28 additions & 21 deletions
49
...t/src/lib/components/cv/Experience.svelte → ...omponents/cv/Experience/Experience.svelte
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,57 +1,64 @@ | ||
<script> | ||
import Aside from '@components/general/Aside/Aside.svelte'; | ||
import AsideGroup from '@components/general/Aside/AsideGroup.svelte'; | ||
import SkillBreakdown from './SkillBreakdown/SkillBreakdown.svelte'; | ||
import '@styles/pages/experience.css'; | ||
import SkillBreakdown from '@components/cv/SkillBreakdown/SkillBreakdown.svelte'; | ||
import './experience.css'; | ||
let collection = 'experience'; | ||
export let content; | ||
let { | ||
name, | ||
title, | ||
body, | ||
// skills: { data: skills }, | ||
skills: { data: skills }, | ||
highlightedSkills, | ||
projects: { data: projects }, | ||
organizations: { data: orgs }, | ||
} = content.experience; | ||
</script> | ||
|
||
<article> | ||
<article class="experience__article"> | ||
<header class="experience__header"> | ||
<p class="collection__title">Experience</p> | ||
<h1 class="experience__title">{name}</h1> | ||
{#if title}<h2>{title}</h2>{/if} | ||
|
||
{#if highlightedSkills.length} | ||
<SkillBreakdown skills={highlightedSkills} /> | ||
<!-- <div class="skill-graph"> | ||
{#each highlightedSkills as skill} | ||
<p>{skill.name} - {skill.percentage}</p> | ||
{/each} | ||
</div> --> | ||
{/if} | ||
</header> | ||
|
||
<Aside> | ||
{#if orgs?.length} | ||
<AsideGroup | ||
collection="experience" | ||
{collection} | ||
title={`Organization${orgs.length > 1 ? 's' : ''}`} | ||
items={orgs} | ||
singleton="organization" | ||
/> | ||
{/if} | ||
{#if projects?.length} | ||
<AsideGroup | ||
{collection} | ||
title={`Project${projects.length > 1 ? 's' : ''}`} | ||
items={projects} | ||
singleton="project" | ||
/> | ||
{/if} | ||
{#if skills?.length} | ||
<AsideGroup | ||
{collection} | ||
title={`Skill${skills.length > 1 ? 's' : ''}`} | ||
items={skills} | ||
singleton="skill" | ||
/> | ||
{/if} | ||
</Aside> | ||
|
||
{#if body} | ||
{@html body} | ||
{/if} | ||
|
||
<!-- {#each skills as { attributes: { name, slug: skillSlug } }} | ||
<h2><a href="/cv/skill/{skillSlug}">{name}</a></h2> | ||
{/each} --> | ||
|
||
{#each projects as { attributes: { name, slug: projectSlug } }} | ||
<h2><a href="/cv/project/{projectSlug}">{name}</a></h2> | ||
{/each} | ||
<section class="experience__body"> | ||
{#if body} | ||
{@html body} | ||
{/if} | ||
</section> | ||
</article> |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
.experience { | ||
&__header { | ||
margin-bottom: 3rem; | ||
text-align: center; | ||
& h1, | ||
h2 { | ||
|
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