@jsonresume/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +689 -0
- package/dist/resume-print.css +425 -0
- package/dist/tokens.css +139 -0
- package/package.json +66 -0
- package/src/badges/BadgeRowOutline.jsx +118 -0
- package/src/badges/BadgeRowOutline.stories.tsx +160 -0
- package/src/badges/index.jsx +5 -0
- package/src/callouts/Callout.jsx +80 -0
- package/src/callouts/Callout.stories.tsx +27 -0
- package/src/callouts/HighlightCard.jsx +114 -0
- package/src/callouts/HighlightCard.stories.tsx +27 -0
- package/src/callouts/InfoBox.jsx +82 -0
- package/src/callouts/InfoBox.stories.tsx +26 -0
- package/src/callouts/index.jsx +4 -0
- package/src/certifications/AwardCard.jsx +83 -0
- package/src/certifications/AwardCard.stories.tsx +32 -0
- package/src/certifications/CertificationBadge.jsx +85 -0
- package/src/certifications/CertificationBadge.stories.tsx +29 -0
- package/src/certifications/CertificationRow.jsx +150 -0
- package/src/certifications/CertificationRow.stories.tsx +64 -0
- package/src/certifications/HonorsList.jsx +87 -0
- package/src/certifications/HonorsList.stories.tsx +36 -0
- package/src/certifications/index.jsx +5 -0
- package/src/containers/AccentCalloutPanel.jsx +176 -0
- package/src/containers/AccentCalloutPanel.stories.tsx +105 -0
- package/src/containers/MutedPanel.jsx +125 -0
- package/src/containers/MutedPanel.stories.tsx +113 -0
- package/src/containers/RoleBlockFramed.jsx +191 -0
- package/src/containers/RoleBlockFramed.stories.tsx +230 -0
- package/src/containers/SoftCardOutline.jsx +161 -0
- package/src/containers/SoftCardOutline.stories.tsx +174 -0
- package/src/containers/index.jsx +9 -0
- package/src/data/KPIChipLine.jsx +158 -0
- package/src/data/KPIChipLine.stories.tsx +99 -0
- package/src/data/KeyValueInline.jsx +150 -0
- package/src/data/KeyValueInline.stories.tsx +136 -0
- package/src/data/MetricBar.jsx +93 -0
- package/src/data/MetricBar.stories.tsx +31 -0
- package/src/data/MetricBullet.jsx +129 -0
- package/src/data/MetricBullet.stories.tsx +99 -0
- package/src/data/MetricInline.jsx +60 -0
- package/src/data/MetricInline.stories.tsx +53 -0
- package/src/data/ProgressCircle.jsx +81 -0
- package/src/data/ProgressCircle.stories.tsx +102 -0
- package/src/data/StatCard.jsx +65 -0
- package/src/data/StatCard.stories.tsx +29 -0
- package/src/data/index.jsx +12 -0
- package/src/dates/DateBadge.jsx +73 -0
- package/src/dates/DateBadge.stories.tsx +30 -0
- package/src/dates/RelativeDate.jsx +121 -0
- package/src/dates/RelativeDate.stories.tsx +29 -0
- package/src/dates/index.jsx +3 -0
- package/src/experience/ExperienceCard.jsx +82 -0
- package/src/experience/ExperienceCard.stories.tsx +36 -0
- package/src/experience/ExperienceCompact.jsx +72 -0
- package/src/experience/ExperienceCompact.stories.tsx +53 -0
- package/src/experience/ExperienceGrid.jsx +65 -0
- package/src/experience/ExperienceGrid.stories.tsx +63 -0
- package/src/experience/ExperienceTimeline.jsx +24 -0
- package/src/experience/ExperienceTimeline.stories.tsx +63 -0
- package/src/experience/RoleHeaderCompact.jsx +99 -0
- package/src/experience/index.jsx +9 -0
- package/src/header/ContactRowLine.jsx +125 -0
- package/src/header/ContactRowLine.stories.tsx +65 -0
- package/src/header/CornerInitials.jsx +178 -0
- package/src/header/CornerInitials.stories.tsx +129 -0
- package/src/header/Footer.jsx +50 -0
- package/src/header/Footer.stories.tsx +25 -0
- package/src/header/HeaderCentered.jsx +51 -0
- package/src/header/HeaderCentered.stories.tsx +30 -0
- package/src/header/HeaderMinimal.jsx +50 -0
- package/src/header/HeaderMinimal.stories.tsx +29 -0
- package/src/header/HeaderSplit.jsx +65 -0
- package/src/header/HeaderSplit.stories.tsx +29 -0
- package/src/header/HeroNameBlock.jsx +71 -0
- package/src/header/HeroNameBlock.stories.tsx +37 -0
- package/src/header/NameStackElegant.jsx +104 -0
- package/src/header/NameStackElegant.stories.tsx +60 -0
- package/src/header/PageBreak.jsx +25 -0
- package/src/header/PageBreak.stories.tsx +22 -0
- package/src/header/SectionFlagTitle.jsx +87 -0
- package/src/header/SectionFlagTitle.stories.tsx +53 -0
- package/src/header/SectionRuleTitle.jsx +84 -0
- package/src/header/SectionRuleTitle.stories.tsx +52 -0
- package/src/header/index.jsx +18 -0
- package/src/helpers/calculations.js +428 -0
- package/src/index.js +253 -0
- package/src/languages/LanguageBar.jsx +90 -0
- package/src/languages/LanguageBar.stories.tsx +28 -0
- package/src/languages/LanguageGrid.jsx +118 -0
- package/src/languages/LanguageGrid.stories.tsx +33 -0
- package/src/languages/LanguageLevelBarLite.jsx +147 -0
- package/src/languages/LanguageLevelBarLite.stories.tsx +74 -0
- package/src/languages/ProficiencyScale.jsx +107 -0
- package/src/languages/ProficiencyScale.stories.tsx +30 -0
- package/src/languages/index.jsx +5 -0
- package/src/layouts/CardLayout.jsx +46 -0
- package/src/layouts/CardLayout.stories.tsx +272 -0
- package/src/layouts/FlexLayout.jsx +53 -0
- package/src/layouts/FlexLayout.stories.tsx +270 -0
- package/src/layouts/GridLayout.jsx +38 -0
- package/src/layouts/GridLayout.stories.tsx +183 -0
- package/src/layouts/SidebarLayout.jsx +63 -0
- package/src/layouts/SidebarLayout.stories.tsx +162 -0
- package/src/layouts/StackLayout.jsx +26 -0
- package/src/layouts/StackLayout.stories.tsx +192 -0
- package/src/layouts/TwoColumnMicroGrid.jsx +87 -0
- package/src/layouts/TwoColumnMicroGrid.stories.tsx +96 -0
- package/src/layouts/index.jsx +11 -0
- package/src/lists/AchievementListSpacious.jsx +81 -0
- package/src/lists/AchievementListSpacious.stories.tsx +49 -0
- package/src/lists/AchievementListTight.jsx +80 -0
- package/src/lists/AchievementListTight.stories.tsx +49 -0
- package/src/lists/BulletList.jsx +66 -0
- package/src/lists/BulletList.stories.tsx +38 -0
- package/src/lists/CheckList.jsx +94 -0
- package/src/lists/CheckList.stories.tsx +38 -0
- package/src/lists/CompactList.jsx +90 -0
- package/src/lists/CompactList.stories.tsx +34 -0
- package/src/lists/DefinitionKeyline.jsx +114 -0
- package/src/lists/DefinitionKeyline.stories.tsx +90 -0
- package/src/lists/HangingBulletList.jsx +82 -0
- package/src/lists/HangingBulletList.stories.tsx +50 -0
- package/src/lists/IconList.jsx +89 -0
- package/src/lists/IconList.stories.tsx +36 -0
- package/src/lists/ListDashCompact.jsx +69 -0
- package/src/lists/ListDashCompact.stories.tsx +60 -0
- package/src/lists/MiniDotLeaderList.jsx +69 -0
- package/src/lists/MiniDotLeaderList.stories.tsx +73 -0
- package/src/lists/NumberedList.jsx +74 -0
- package/src/lists/NumberedList.stories.tsx +39 -0
- package/src/lists/index.jsx +12 -0
- package/src/metadata/GreyLabelCaps.jsx +66 -0
- package/src/metadata/GreyLabelCaps.stories.tsx +40 -0
- package/src/metadata/InlineKicker.jsx +61 -0
- package/src/metadata/InlineKicker.stories.tsx +35 -0
- package/src/metadata/MetaRow.jsx +96 -0
- package/src/metadata/MetaRow.stories.tsx +38 -0
- package/src/metadata/SmallCapsHeading.jsx +75 -0
- package/src/metadata/SmallCapsHeading.stories.tsx +54 -0
- package/src/metadata/SubsectionLabel.jsx +92 -0
- package/src/metadata/SubsectionLabel.stories.tsx +40 -0
- package/src/metadata/index.jsx +10 -0
- package/src/primitives/AccentSidebarStripe.stories.tsx +65 -0
- package/src/primitives/AccentSidebarStripe.tsx +95 -0
- package/src/primitives/AccentTopRule.stories.tsx +102 -0
- package/src/primitives/AccentTopRule.tsx +103 -0
- package/src/primitives/Badge.jsx +125 -0
- package/src/primitives/Badge.stories.tsx +27 -0
- package/src/primitives/ContactInfo.jsx +133 -0
- package/src/primitives/ContactInfo.stories.tsx +30 -0
- package/src/primitives/DIVIDERS.md +333 -0
- package/src/primitives/DateRange.jsx +178 -0
- package/src/primitives/DateRange.stories.tsx +28 -0
- package/src/primitives/DottedDivider.stories.tsx +54 -0
- package/src/primitives/DottedDivider.tsx +102 -0
- package/src/primitives/InlineSeparatorPipe.jsx +64 -0
- package/src/primitives/InlineSeparatorPipe.stories.tsx +96 -0
- package/src/primitives/KeylineDivider.stories.tsx +48 -0
- package/src/primitives/KeylineDivider.tsx +80 -0
- package/src/primitives/Link.jsx +59 -0
- package/src/primitives/Link.stories.tsx +29 -0
- package/src/primitives/ListItem.jsx +127 -0
- package/src/primitives/ListItem.stories.tsx +27 -0
- package/src/primitives/RulesetStack.stories.tsx +85 -0
- package/src/primitives/RulesetStack.tsx +117 -0
- package/src/primitives/Section.jsx +37 -0
- package/src/primitives/Section.stories.tsx +28 -0
- package/src/primitives/SectionTitle.jsx +62 -0
- package/src/primitives/SectionTitle.stories.tsx +27 -0
- package/src/primitives/index.jsx +36 -0
- package/src/print/ColumnBreak.jsx +44 -0
- package/src/print/ColumnBreak.stories.tsx +22 -0
- package/src/print/KeepTogether.jsx +24 -0
- package/src/print/KeepTogether.stories.tsx +26 -0
- package/src/print/LetterheadBar.jsx +100 -0
- package/src/print/LetterheadBar.stories.tsx +141 -0
- package/src/print/PageFooterLine.jsx +93 -0
- package/src/print/PageFooterLine.stories.tsx +121 -0
- package/src/print/PageHeaderLine.jsx +59 -0
- package/src/print/PageHeaderLine.stories.tsx +108 -0
- package/src/print/PrintOnly.jsx +49 -0
- package/src/print/PrintOnly.stories.tsx +26 -0
- package/src/print/SoftShadowEmulation.jsx +88 -0
- package/src/print/SoftShadowEmulation.stories.tsx +214 -0
- package/src/print/index.jsx +8 -0
- package/src/profile/Avatar.jsx +66 -0
- package/src/profile/Avatar.stories.tsx +84 -0
- package/src/profile/ContactGrid.jsx +63 -0
- package/src/profile/ContactGrid.stories.tsx +33 -0
- package/src/profile/ProfileCard.jsx +73 -0
- package/src/profile/ProfileCard.stories.tsx +35 -0
- package/src/profile/SocialLinks.jsx +61 -0
- package/src/profile/SocialLinks.stories.tsx +33 -0
- package/src/profile/index.jsx +9 -0
- package/src/providers/ThemeProvider.jsx +56 -0
- package/src/providers/ThemeProvider.stories.tsx +149 -0
- package/src/publications/PortfolioGrid.jsx +122 -0
- package/src/publications/PortfolioGrid.stories.tsx +62 -0
- package/src/publications/ProjectCard.jsx +151 -0
- package/src/publications/ProjectCard.stories.tsx +36 -0
- package/src/publications/PublicationEntryPlain.jsx +127 -0
- package/src/publications/PublicationEntryPlain.stories.tsx +58 -0
- package/src/publications/PublicationItem.jsx +120 -0
- package/src/publications/PublicationItem.stories.tsx +32 -0
- package/src/publications/index.jsx +5 -0
- package/src/quotes/BlockQuote.jsx +55 -0
- package/src/quotes/BlockQuote.stories.tsx +33 -0
- package/src/quotes/PullQuote.jsx +70 -0
- package/src/quotes/PullQuote.stories.tsx +32 -0
- package/src/quotes/Testimonial.jsx +99 -0
- package/src/quotes/Testimonial.stories.tsx +36 -0
- package/src/quotes/index.jsx +4 -0
- package/src/skills/SkillBar.jsx +66 -0
- package/src/skills/SkillBar.stories.tsx +112 -0
- package/src/skills/SkillCategory.jsx +71 -0
- package/src/skills/SkillCategory.stories.tsx +197 -0
- package/src/skills/SkillCloud.jsx +53 -0
- package/src/skills/SkillCloud.stories.tsx +132 -0
- package/src/skills/SkillGroup.jsx +56 -0
- package/src/skills/SkillGroup.stories.tsx +162 -0
- package/src/skills/SkillPill.jsx +56 -0
- package/src/skills/SkillPill.stories.tsx +157 -0
- package/src/skills/SkillRating.jsx +60 -0
- package/src/skills/SkillRating.stories.tsx +115 -0
- package/src/skills/index.jsx +11 -0
- package/src/styles/tokens.css +139 -0
- package/src/tables/ComparisonTable.jsx +128 -0
- package/src/tables/ComparisonTable.stories.tsx +41 -0
- package/src/tables/DataTable.jsx +149 -0
- package/src/tables/DataTable.stories.tsx +64 -0
- package/src/tables/SkillMatrix.jsx +139 -0
- package/src/tables/SkillMatrix.stories.tsx +90 -0
- package/src/tables/index.jsx +4 -0
- package/src/tags/ToolTagRibbon.jsx +106 -0
- package/src/tags/ToolTagRibbon.stories.tsx +121 -0
- package/src/tags/index.jsx +5 -0
- package/src/timeline/TimelineInline.stories.tsx +83 -0
- package/src/timeline/TimelineInline.tsx +202 -0
- package/src/timeline/TimelineItem.jsx +106 -0
- package/src/timeline/TimelineItem.stories.tsx +64 -0
- package/src/timeline/TimelineRuleMinimal.stories.tsx +68 -0
- package/src/timeline/TimelineRuleMinimal.tsx +165 -0
- package/src/timeline/TimelineSection.jsx +21 -0
- package/src/timeline/TimelineSection.stories.tsx +44 -0
- package/src/timeline/index.jsx +9 -0
- package/src/tokens/index.js +164 -0
- package/src/typography/Heading.jsx +48 -0
- package/src/typography/Heading.stories.tsx +46 -0
- package/src/typography/HyphenationSafeParagraph.jsx +98 -0
- package/src/typography/HyphenationSafeParagraph.stories.tsx +151 -0
- package/src/typography/Label.jsx +38 -0
- package/src/typography/Label.stories.tsx +27 -0
- package/src/typography/QuoteStripe.jsx +78 -0
- package/src/typography/QuoteStripe.stories.tsx +63 -0
- package/src/typography/SectionIntroParagraph.jsx +62 -0
- package/src/typography/SectionIntroParagraph.stories.tsx +57 -0
- package/src/typography/Text.jsx +42 -0
- package/src/typography/Text.stories.tsx +35 -0
- package/src/typography/index.jsx +11 -0
- package/src/utils/Divider.jsx +32 -0
- package/src/utils/Divider.stories.tsx +24 -0
- package/src/utils/Flex.jsx +6 -0
- package/src/utils/Flex.stories.tsx +28 -0
- package/src/utils/Grid.jsx +6 -0
- package/src/utils/Grid.stories.tsx +28 -0
- package/src/utils/Spacer.jsx +18 -0
- package/src/utils/Spacer.stories.tsx +26 -0
- package/src/utils/index.jsx +9 -0
- package/src/utils/security.js +155 -0
- package/src/visuals/BackgroundPattern.jsx +65 -0
- package/src/visuals/BackgroundPattern.stories.tsx +27 -0
- package/src/visuals/BorderAccent.jsx +147 -0
- package/src/visuals/BorderAccent.stories.tsx +27 -0
- package/src/visuals/ColorBlock.jsx +60 -0
- package/src/visuals/ColorBlock.stories.tsx +27 -0
- package/src/visuals/DividerVariants.jsx +120 -0
- package/src/visuals/DividerVariants.stories.tsx +27 -0
- package/src/visuals/index.jsx +5 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* AwardCard
|
|
4
|
+
* Card for awards with title, awarder, date, and summary
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Card = styled.div`
|
|
9
|
+
padding: var(--resume-space-item);
|
|
10
|
+
background-color: var(--resume-color-background);
|
|
11
|
+
border: 1px solid var(--resume-color-border);
|
|
12
|
+
border-radius: var(--resume-radius-md);
|
|
13
|
+
margin-bottom: var(--resume-space-tight);
|
|
14
|
+
break-inside: avoid;
|
|
15
|
+
|
|
16
|
+
@media print {
|
|
17
|
+
border: 1px solid var(--resume-color-border);
|
|
18
|
+
break-inside: avoid;
|
|
19
|
+
page-break-inside: avoid;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
const Header = styled.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
gap: var(--resume-space-tight);
|
|
28
|
+
margin-bottom: 8px;
|
|
29
|
+
|
|
30
|
+
@media (max-width: 768px) {
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 4px;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
const Title = styled.h3`
|
|
37
|
+
margin: 0;
|
|
38
|
+
font-size: var(--resume-size-subheading);
|
|
39
|
+
font-weight: var(--resume-weight-medium);
|
|
40
|
+
color: var(--resume-color-primary);
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
const Date = styled.time`
|
|
44
|
+
font-size: var(--resume-size-small);
|
|
45
|
+
color: var(--resume-color-tertiary);
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
const Awarder = styled.div`
|
|
50
|
+
font-size: var(--resume-size-small);
|
|
51
|
+
color: var(--resume-color-secondary);
|
|
52
|
+
margin-bottom: 8px;
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const Summary = styled.p`
|
|
56
|
+
margin: 0;
|
|
57
|
+
font-size: var(--resume-size-body);
|
|
58
|
+
color: var(--resume-color-secondary);
|
|
59
|
+
line-height: var(--resume-line-height-normal);
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param {Object} props
|
|
64
|
+
* @param {string} props.title - Award title
|
|
65
|
+
* @param {string} [props.awarder] - Organization that gave the award
|
|
66
|
+
* @param {string} [props.date] - Date received
|
|
67
|
+
* @param {string} [props.summary] - Award description
|
|
68
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
69
|
+
*/
|
|
70
|
+
export function AwardCard({ title, awarder, date, summary, className }) {
|
|
71
|
+
return (
|
|
72
|
+
<Card className={className}>
|
|
73
|
+
<Header>
|
|
74
|
+
<Title>{title}</Title>
|
|
75
|
+
{date && <Date>{date}</Date>}
|
|
76
|
+
</Header>
|
|
77
|
+
{awarder && <Awarder>{awarder}</Awarder>}
|
|
78
|
+
{summary && <Summary>{summary}</Summary>}
|
|
79
|
+
</Card>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default AwardCard;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* AwardCard Stories
|
|
4
|
+
*/
|
|
5
|
+
import { AwardCard } from './AwardCard';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Certifications/AwardCard',
|
|
9
|
+
component: AwardCard,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
title: 'Excellence in Engineering Award',
|
|
19
|
+
organization: 'Tech Corp',
|
|
20
|
+
date: '2023',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const Example = {
|
|
25
|
+
args: {
|
|
26
|
+
title: 'Innovation Award',
|
|
27
|
+
organization: 'Innovation Labs',
|
|
28
|
+
date: '2022',
|
|
29
|
+
description:
|
|
30
|
+
'Recognized for developing breakthrough performance optimization',
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* CertificationBadge
|
|
4
|
+
* Badge-style certification display with icon support
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Badge = styled.div`
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
padding: 8px 16px;
|
|
13
|
+
background-color: ${(props) =>
|
|
14
|
+
props.$variant === 'filled'
|
|
15
|
+
? 'var(--resume-color-accent)'
|
|
16
|
+
: 'var(--resume-color-background)'};
|
|
17
|
+
color: ${(props) =>
|
|
18
|
+
props.$variant === 'filled' ? 'white' : 'var(--resume-color-primary)'};
|
|
19
|
+
border: 1px solid
|
|
20
|
+
${(props) =>
|
|
21
|
+
props.$variant === 'filled'
|
|
22
|
+
? 'var(--resume-color-accent)'
|
|
23
|
+
: 'var(--resume-color-border)'};
|
|
24
|
+
border-radius: var(--resume-radius-full);
|
|
25
|
+
font-size: var(--resume-size-small);
|
|
26
|
+
font-weight: var(--resume-weight-medium);
|
|
27
|
+
break-inside: avoid;
|
|
28
|
+
|
|
29
|
+
@media print {
|
|
30
|
+
-webkit-print-color-adjust: exact;
|
|
31
|
+
print-color-adjust: exact;
|
|
32
|
+
border: 1px solid var(--resume-color-border);
|
|
33
|
+
background-color: ${(props) =>
|
|
34
|
+
props.$variant === 'filled'
|
|
35
|
+
? 'var(--resume-color-accent)'
|
|
36
|
+
: 'transparent'};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (max-width: 768px) {
|
|
40
|
+
font-size: var(--resume-size-tiny);
|
|
41
|
+
padding: 6px 12px;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
const Icon = styled.span`
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
const Text = styled.span`
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const Date = styled.span`
|
|
56
|
+
opacity: 0.8;
|
|
57
|
+
font-size: var(--resume-size-tiny);
|
|
58
|
+
font-weight: var(--resume-weight-normal);
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @param {Object} props
|
|
63
|
+
* @param {string} props.name - Certification name
|
|
64
|
+
* @param {string} [props.date] - Certification date
|
|
65
|
+
* @param {string|React.ReactNode} [props.icon] - Icon or emoji
|
|
66
|
+
* @param {string} [props.variant='outlined'] - Style variant (outlined, filled)
|
|
67
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
68
|
+
*/
|
|
69
|
+
export function CertificationBadge({
|
|
70
|
+
name,
|
|
71
|
+
date,
|
|
72
|
+
icon,
|
|
73
|
+
variant = 'outlined',
|
|
74
|
+
className,
|
|
75
|
+
}) {
|
|
76
|
+
return (
|
|
77
|
+
<Badge $variant={variant} className={className}>
|
|
78
|
+
{icon && <Icon>{icon}</Icon>}
|
|
79
|
+
<Text>{name}</Text>
|
|
80
|
+
{date && <Date>({date})</Date>}
|
|
81
|
+
</Badge>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default CertificationBadge;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* CertificationBadge Stories
|
|
4
|
+
*/
|
|
5
|
+
import { CertificationBadge } from './CertificationBadge';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Certifications/CertificationBadge',
|
|
9
|
+
component: CertificationBadge,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
name: 'AWS Certified Solutions Architect',
|
|
19
|
+
issuer: 'Amazon Web Services',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const Example = {
|
|
24
|
+
args: {
|
|
25
|
+
name: 'Certified Kubernetes Administrator',
|
|
26
|
+
issuer: 'CNCF',
|
|
27
|
+
date: '2023',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* CertificationRow
|
|
4
|
+
* Text-only certification row optimized for ATS parsing
|
|
5
|
+
* Format: Issuer · Name · ID/URL
|
|
6
|
+
*/
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
|
|
9
|
+
const Container = styled.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
align-items: baseline;
|
|
13
|
+
gap: 0.5em;
|
|
14
|
+
margin-bottom: 0.5em;
|
|
15
|
+
font-size: var(--resume-size-body);
|
|
16
|
+
line-height: var(--resume-line-height-normal);
|
|
17
|
+
break-inside: avoid;
|
|
18
|
+
|
|
19
|
+
@media print {
|
|
20
|
+
break-inside: avoid;
|
|
21
|
+
page-break-inside: avoid;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (max-width: 768px) {
|
|
25
|
+
font-size: var(--resume-size-small);
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
const Issuer = styled.span`
|
|
30
|
+
font-weight: var(--resume-weight-semibold);
|
|
31
|
+
color: var(--resume-color-primary);
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
const Name = styled.span`
|
|
35
|
+
color: var(--resume-color-primary);
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
const Credential = styled.span`
|
|
39
|
+
font-family: 'Courier New', Courier, monospace;
|
|
40
|
+
font-size: var(--resume-size-small);
|
|
41
|
+
color: var(--resume-color-secondary);
|
|
42
|
+
background-color: var(--resume-color-background);
|
|
43
|
+
padding: 2px 6px;
|
|
44
|
+
border-radius: var(--resume-radius-sm);
|
|
45
|
+
border: 1px solid var(--resume-color-border);
|
|
46
|
+
|
|
47
|
+
@media print {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
border: 1px solid var(--resume-color-border);
|
|
50
|
+
padding: 1px 4px;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
const Date = styled.span`
|
|
55
|
+
font-size: var(--resume-size-small);
|
|
56
|
+
color: var(--resume-color-tertiary);
|
|
57
|
+
font-style: italic;
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
const Link = styled.a`
|
|
61
|
+
color: var(--resume-color-accent);
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
font-size: var(--resume-size-small);
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
text-decoration: underline;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media print {
|
|
70
|
+
color: var(--resume-color-primary);
|
|
71
|
+
text-decoration: none;
|
|
72
|
+
|
|
73
|
+
&::after {
|
|
74
|
+
content: ' [' attr(href) ']';
|
|
75
|
+
font-size: var(--resume-size-tiny);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
const Separator = styled.span`
|
|
81
|
+
color: var(--resume-color-tertiary);
|
|
82
|
+
|
|
83
|
+
&::before {
|
|
84
|
+
content: '·';
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* CertificationRow Component
|
|
90
|
+
*
|
|
91
|
+
* Displays a certification in a compact, text-only row format.
|
|
92
|
+
* Optimized for ATS parsing with monospace credential IDs for improved legibility.
|
|
93
|
+
*
|
|
94
|
+
* @param {Object} props - Component props
|
|
95
|
+
* @param {string} props.issuer - Issuing organization name
|
|
96
|
+
* @param {string} props.name - Certification name
|
|
97
|
+
* @param {string} [props.credentialId] - Credential ID or certificate number
|
|
98
|
+
* @param {string} [props.date] - Date obtained (ISO string or formatted)
|
|
99
|
+
* @param {string} [props.url] - Link to verify certification
|
|
100
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```jsx
|
|
104
|
+
* <CertificationRow
|
|
105
|
+
* issuer="AWS"
|
|
106
|
+
* name="Solutions Architect Associate"
|
|
107
|
+
* credentialId="CERT-123-456-789"
|
|
108
|
+
* date="2023-06"
|
|
109
|
+
* url="https://aws.amazon.com/verify/cert123"
|
|
110
|
+
* />
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
export function CertificationRow({
|
|
114
|
+
issuer,
|
|
115
|
+
name,
|
|
116
|
+
credentialId,
|
|
117
|
+
date,
|
|
118
|
+
url,
|
|
119
|
+
className,
|
|
120
|
+
}) {
|
|
121
|
+
return (
|
|
122
|
+
<Container className={className}>
|
|
123
|
+
<Issuer>{issuer}</Issuer>
|
|
124
|
+
<Separator />
|
|
125
|
+
<Name>{name}</Name>
|
|
126
|
+
{credentialId && (
|
|
127
|
+
<>
|
|
128
|
+
<Separator />
|
|
129
|
+
<Credential>{credentialId}</Credential>
|
|
130
|
+
</>
|
|
131
|
+
)}
|
|
132
|
+
{date && (
|
|
133
|
+
<>
|
|
134
|
+
<Separator />
|
|
135
|
+
<Date>{date}</Date>
|
|
136
|
+
</>
|
|
137
|
+
)}
|
|
138
|
+
{url && (
|
|
139
|
+
<>
|
|
140
|
+
<Separator />
|
|
141
|
+
<Link href={url} target="_blank" rel="noopener noreferrer">
|
|
142
|
+
verify
|
|
143
|
+
</Link>
|
|
144
|
+
</>
|
|
145
|
+
)}
|
|
146
|
+
</Container>
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export default CertificationRow;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CertificationRow } from './CertificationRow';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Certifications/CertificationRow',
|
|
6
|
+
component: CertificationRow,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
} satisfies Meta<typeof CertificationRow>;
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
args: {
|
|
15
|
+
issuer: 'AWS',
|
|
16
|
+
name: 'Solutions Architect Associate',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const WithCredentialId: Story = {
|
|
21
|
+
args: {
|
|
22
|
+
issuer: 'AWS',
|
|
23
|
+
name: 'Solutions Architect Associate',
|
|
24
|
+
credentialId: 'CERT-123-456-789',
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const WithDate: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
issuer: 'Microsoft',
|
|
31
|
+
name: 'Azure Developer Associate',
|
|
32
|
+
credentialId: 'AZ-204',
|
|
33
|
+
date: '2023-06',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const WithUrl: Story = {
|
|
38
|
+
args: {
|
|
39
|
+
issuer: 'Google',
|
|
40
|
+
name: 'Professional Cloud Architect',
|
|
41
|
+
credentialId: 'GCP-PCA-20230415',
|
|
42
|
+
date: '2023-04',
|
|
43
|
+
url: 'https://google.accredible.com/example',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const Complete: Story = {
|
|
48
|
+
args: {
|
|
49
|
+
issuer: 'CompTIA',
|
|
50
|
+
name: 'Security+ ce Certification',
|
|
51
|
+
credentialId: 'COMP001234567890',
|
|
52
|
+
date: '2024-01',
|
|
53
|
+
url: 'https://comptia.org/certifications/verify',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const LongNames: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
issuer: 'Project Management Institute',
|
|
60
|
+
name: 'Project Management Professional (PMP)',
|
|
61
|
+
credentialId: 'PMI-PMP-2023-123456',
|
|
62
|
+
date: '2023-09',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* HonorsList
|
|
4
|
+
* List of honors and awards with compact display
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const List = styled.ul`
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
list-style: none;
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const Item = styled.li`
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
align-items: baseline;
|
|
18
|
+
gap: var(--resume-space-tight);
|
|
19
|
+
padding: 8px 0;
|
|
20
|
+
border-bottom: 1px solid var(--resume-color-border);
|
|
21
|
+
break-inside: avoid;
|
|
22
|
+
|
|
23
|
+
&:last-child {
|
|
24
|
+
border-bottom: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media print {
|
|
28
|
+
border-bottom: 1px solid var(--resume-color-border);
|
|
29
|
+
break-inside: avoid;
|
|
30
|
+
page-break-inside: avoid;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (max-width: 768px) {
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: 4px;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
const Info = styled.div`
|
|
40
|
+
flex: 1;
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
const Title = styled.div`
|
|
44
|
+
font-size: var(--resume-size-body);
|
|
45
|
+
font-weight: var(--resume-weight-medium);
|
|
46
|
+
color: var(--resume-color-primary);
|
|
47
|
+
margin-bottom: 2px;
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
const Awarder = styled.div`
|
|
51
|
+
font-size: var(--resume-size-small);
|
|
52
|
+
color: var(--resume-color-secondary);
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const Date = styled.time`
|
|
56
|
+
font-size: var(--resume-size-small);
|
|
57
|
+
color: var(--resume-color-tertiary);
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @param {Object} props
|
|
63
|
+
* @param {Array} props.items - Array of honors/awards
|
|
64
|
+
* @param {string} props.items[].title - Honor title
|
|
65
|
+
* @param {string} [props.items[].awarder] - Organization
|
|
66
|
+
* @param {string} [props.items[].date] - Date received
|
|
67
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
68
|
+
*/
|
|
69
|
+
export function HonorsList({ items = [], className }) {
|
|
70
|
+
if (!items || items.length === 0) return null;
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<List className={className}>
|
|
74
|
+
{items.map((item, index) => (
|
|
75
|
+
<Item key={index}>
|
|
76
|
+
<Info>
|
|
77
|
+
<Title>{item.title}</Title>
|
|
78
|
+
{item.awarder && <Awarder>{item.awarder}</Awarder>}
|
|
79
|
+
</Info>
|
|
80
|
+
{item.date && <Date>{item.date}</Date>}
|
|
81
|
+
</Item>
|
|
82
|
+
))}
|
|
83
|
+
</List>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export default HonorsList;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* HonorsList Stories
|
|
4
|
+
*/
|
|
5
|
+
import { HonorsList } from './HonorsList';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Certifications/HonorsList',
|
|
9
|
+
component: HonorsList,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
items: [
|
|
19
|
+
{ title: "Dean's List", year: '2015-2019' },
|
|
20
|
+
{ title: 'Summa Cum Laude', year: '2019' },
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const Example = {
|
|
26
|
+
args: {
|
|
27
|
+
items: [
|
|
28
|
+
{
|
|
29
|
+
title: 'Employee of the Year',
|
|
30
|
+
organization: 'Tech Corp',
|
|
31
|
+
year: '2022',
|
|
32
|
+
},
|
|
33
|
+
{ title: 'Innovation Award', organization: 'Startup XYZ', year: '2021' },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
};
|