-
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): style and component structure for Skill Breakdown
## Describe your changes Skill Breakdown graph component, styles, animations, and layout. ## Issue ticket number and link - closes #1191 - addresses https://github.com/dgrebb/dgrebb.com/security/dependabot/50 ## Checklist before requesting a review - [x] Code linting succeeds - [x] Visual Regression is Passing - [x] I have performed a self-review of my code - [x] Do we need to implement analytics? - [x] Have you tested with JavaScript off?
- Loading branch information
Showing
32 changed files
with
565 additions
and
364 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -64,6 +64,7 @@ rdquo | |
regexall | ||
replacestate | ||
reportsdomain | ||
Résumé | ||
runneth | ||
shineth | ||
softlight | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<script> | ||
import Aside from '@components/general/Aside/Aside.svelte'; | ||
import AsideGroup from '@components/general/Aside/AsideGroup.svelte'; | ||
import SkillBreakdown from '@components/cv/SkillBreakdown/SkillBreakdown.svelte'; | ||
import './experience.css'; | ||
let collection = 'experience'; | ||
export let content; | ||
let { | ||
name, | ||
title, | ||
body, | ||
skills: { data: skills }, | ||
highlightedSkills, | ||
projects: { data: projects }, | ||
organizations: { data: orgs }, | ||
} = content.experience; | ||
</script> | ||
|
||
<article class="experience__article"> | ||
<header class="experience__header"> | ||
<p class="collection__title">Experience</p> | ||
<h1 class="experience__title"> | ||
{name} | ||
</h1> | ||
|
||
{#if highlightedSkills.length} | ||
<SkillBreakdown skills={highlightedSkills} /> | ||
{/if} | ||
</header> | ||
|
||
<Aside> | ||
{#if orgs?.length} | ||
<h2>Organizations</h2> | ||
<p> | ||
{#each orgs as { attributes: { name, slug } }, key} | ||
<a href="/cv/organization/{slug}" | ||
>{name}{key === orgs.length ? ',' : ''}</a | ||
> | ||
{/each} | ||
</p> | ||
{/if} | ||
<h2>Title</h2> | ||
<p>{title}</p> | ||
{#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> | ||
|
||
<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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.cv.experience { | ||
position: relative; | ||
} | ||
|
||
.experience { | ||
&__header { | ||
margin-bottom: 3rem; | ||
text-align: center; | ||
& h1, | ||
h2 { | ||
filter: brightness(1); | ||
transition-duration: var(--transition-duration); | ||
transition-property: filter, opacity; | ||
transition-timing-function: var(--transition-timing-function); | ||
} | ||
@media screen and (min-width: 640px) { | ||
&:has( | ||
.skill-graph:hover, | ||
.skill-graph:active, | ||
.skill-graph:focus-visible, | ||
.skill-graph:focus | ||
) { | ||
& h1, | ||
h2 { | ||
opacity: 0.3; | ||
filter: brightness(0.2) blur(0.5rem); | ||
transition-duration: var(--transition-duration-fast); | ||
} | ||
} | ||
} | ||
} | ||
&__title { | ||
padding: 0.25rem 0 2rem 0; | ||
} | ||
} |
Oops, something went wrong.