@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,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Footer
|
|
4
|
+
* Resume footer with optional page numbers
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const StyledFooter = styled.footer`
|
|
9
|
+
margin-top: var(--resume-space-section);
|
|
10
|
+
padding-top: var(--resume-space-item);
|
|
11
|
+
border-top: 1px solid var(--resume-color-border);
|
|
12
|
+
font-size: var(--resume-size-small);
|
|
13
|
+
color: var(--resume-color-secondary);
|
|
14
|
+
text-align: ${(props) => props.$align || 'center'};
|
|
15
|
+
|
|
16
|
+
@media print {
|
|
17
|
+
border-top: 1px solid var(--resume-color-border);
|
|
18
|
+
position: running(footer);
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const PageNumber = styled.span`
|
|
23
|
+
@media print {
|
|
24
|
+
&::after {
|
|
25
|
+
content: counter(page);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
export function Footer({
|
|
31
|
+
text,
|
|
32
|
+
showPageNumbers = false,
|
|
33
|
+
align = 'center',
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
}) {
|
|
37
|
+
return (
|
|
38
|
+
<StyledFooter $align={align} className={className}>
|
|
39
|
+
{text && <div>{text}</div>}
|
|
40
|
+
{showPageNumbers && (
|
|
41
|
+
<div>
|
|
42
|
+
Page <PageNumber />
|
|
43
|
+
</div>
|
|
44
|
+
)}
|
|
45
|
+
{children}
|
|
46
|
+
</StyledFooter>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default Footer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Footer } from './Footer';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Resume Core/Header/Footer',
|
|
6
|
+
component: Footer,
|
|
7
|
+
parameters: { layout: 'padded' },
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
export const Default = {
|
|
14
|
+
args: {
|
|
15
|
+
children: 'Resume generated with JSONResume.org',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const WithPageNumbers = {
|
|
20
|
+
args: {},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const WithText = {
|
|
24
|
+
args: {},
|
|
25
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* HeaderCentered
|
|
4
|
+
* Centered header layout
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Header = styled.header`
|
|
9
|
+
text-align: center;
|
|
10
|
+
margin-bottom: var(--resume-space-section);
|
|
11
|
+
|
|
12
|
+
@media print {
|
|
13
|
+
break-after: avoid;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
const Name = styled.h1`
|
|
18
|
+
font-size: var(--resume-size-name);
|
|
19
|
+
font-weight: var(--resume-weight-bold);
|
|
20
|
+
color: var(--resume-color-primary);
|
|
21
|
+
margin: 0 0 4px 0;
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
const Title = styled.h2`
|
|
25
|
+
font-size: var(--resume-size-heading);
|
|
26
|
+
font-weight: var(--resume-weight-normal);
|
|
27
|
+
color: var(--resume-color-secondary);
|
|
28
|
+
margin: 0 0 var(--resume-space-item) 0;
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
const Contacts = styled.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
gap: var(--resume-space-tight);
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
font-size: var(--resume-size-body);
|
|
37
|
+
color: var(--resume-color-secondary);
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
export function HeaderCentered({ name, title, contacts, children, className }) {
|
|
41
|
+
return (
|
|
42
|
+
<Header className={className}>
|
|
43
|
+
{name && <Name>{name}</Name>}
|
|
44
|
+
{title && <Title>{title}</Title>}
|
|
45
|
+
{contacts && <Contacts>{contacts}</Contacts>}
|
|
46
|
+
{children}
|
|
47
|
+
</Header>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default HeaderCentered;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeaderCentered } from './HeaderCentered';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Resume Core/Header/HeaderCentered',
|
|
6
|
+
component: HeaderCentered,
|
|
7
|
+
parameters: { layout: 'padded' },
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
export const Default = {
|
|
14
|
+
args: {
|
|
15
|
+
name: 'Sarah Johnson',
|
|
16
|
+
title: 'Senior Software Engineer',
|
|
17
|
+
contact: [
|
|
18
|
+
{ icon: '📧', text: 'sarah.johnson@example.com' },
|
|
19
|
+
{ icon: '📱', text: '(555) 123-4567' },
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const WithContacts = {
|
|
25
|
+
args: {},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const WithTitle = {
|
|
29
|
+
args: {},
|
|
30
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* HeaderMinimal
|
|
4
|
+
* Minimal single-line header
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Header = styled.header`
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: baseline;
|
|
12
|
+
padding-bottom: var(--resume-space-item);
|
|
13
|
+
border-bottom: 2px solid var(--resume-color-border);
|
|
14
|
+
margin-bottom: var(--resume-space-section);
|
|
15
|
+
gap: var(--resume-space-item);
|
|
16
|
+
|
|
17
|
+
@media print {
|
|
18
|
+
border-bottom: 2px solid var(--resume-color-border);
|
|
19
|
+
break-after: avoid;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (max-width: 768px) {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
const Name = styled.h1`
|
|
29
|
+
font-size: var(--resume-size-heading);
|
|
30
|
+
font-weight: var(--resume-weight-bold);
|
|
31
|
+
color: var(--resume-color-primary);
|
|
32
|
+
margin: 0;
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
const Contact = styled.div`
|
|
36
|
+
font-size: var(--resume-size-small);
|
|
37
|
+
color: var(--resume-color-secondary);
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
export function HeaderMinimal({ name, contact, children, className }) {
|
|
41
|
+
return (
|
|
42
|
+
<Header className={className}>
|
|
43
|
+
{name && <Name>{name}</Name>}
|
|
44
|
+
{contact && <Contact>{contact}</Contact>}
|
|
45
|
+
{children}
|
|
46
|
+
</Header>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default HeaderMinimal;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* HeaderMinimal Stories
|
|
4
|
+
*/
|
|
5
|
+
import { HeaderMinimal } from './HeaderMinimal';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Header/HeaderMinimal',
|
|
9
|
+
component: HeaderMinimal,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
name: 'Sarah Johnson',
|
|
19
|
+
title: 'Senior Software Engineer',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const Example = {
|
|
24
|
+
args: {
|
|
25
|
+
name: 'Michael Chen',
|
|
26
|
+
title: 'Product Manager',
|
|
27
|
+
email: 'michael.chen@example.com',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* HeaderSplit
|
|
4
|
+
* Split header with name on left, contact on right
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Header = styled.header`
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
margin-bottom: var(--resume-space-section);
|
|
13
|
+
gap: var(--resume-space-item);
|
|
14
|
+
|
|
15
|
+
@media print {
|
|
16
|
+
break-after: avoid;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (max-width: 768px) {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
const Left = styled.div`
|
|
25
|
+
flex: 1;
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
const Name = styled.h1`
|
|
29
|
+
font-size: var(--resume-size-name);
|
|
30
|
+
font-weight: var(--resume-weight-bold);
|
|
31
|
+
color: var(--resume-color-primary);
|
|
32
|
+
margin: 0 0 4px 0;
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
const Title = styled.h2`
|
|
36
|
+
font-size: var(--resume-size-heading);
|
|
37
|
+
font-weight: var(--resume-weight-normal);
|
|
38
|
+
color: var(--resume-color-secondary);
|
|
39
|
+
margin: 0;
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
const Right = styled.div`
|
|
43
|
+
text-align: right;
|
|
44
|
+
|
|
45
|
+
@media (max-width: 768px) {
|
|
46
|
+
text-align: left;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export function HeaderSplit({ name, title, contacts, children, className }) {
|
|
51
|
+
return (
|
|
52
|
+
<Header className={className}>
|
|
53
|
+
<Left>
|
|
54
|
+
{name && <Name>{name}</Name>}
|
|
55
|
+
{title && <Title>{title}</Title>}
|
|
56
|
+
</Left>
|
|
57
|
+
<Right>
|
|
58
|
+
{contacts}
|
|
59
|
+
{children}
|
|
60
|
+
</Right>
|
|
61
|
+
</Header>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export default HeaderSplit;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeaderSplit } from './HeaderSplit';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Resume Core/Header/HeaderSplit',
|
|
6
|
+
component: HeaderSplit,
|
|
7
|
+
parameters: { layout: 'padded' },
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
export const Default = {
|
|
14
|
+
args: {
|
|
15
|
+
name: 'Sarah Johnson',
|
|
16
|
+
title: 'Senior Software Engineer',
|
|
17
|
+
location: 'San Francisco, CA',
|
|
18
|
+
email: 'sarah.johnson@example.com',
|
|
19
|
+
phone: '(555) 123-4567',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const WithContacts = {
|
|
24
|
+
args: {},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const WithTitle = {
|
|
28
|
+
args: {},
|
|
29
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* HeroNameBlock Component
|
|
6
|
+
* Large, prominent name heading with optional label and thin underline accent
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @example
|
|
10
|
+
* <HeroNameBlock name="Jane Smith" label="Portfolio" />
|
|
11
|
+
* <HeroNameBlock name="John Doe" />
|
|
12
|
+
*
|
|
13
|
+
* @param {Object} props
|
|
14
|
+
* @param {string} props.name - The name to display prominently
|
|
15
|
+
* @param {string} [props.label] - Optional label/subtitle above the name
|
|
16
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const Container = styled.header`
|
|
20
|
+
text-align: center;
|
|
21
|
+
margin-bottom: var(--resume-space-section, 24px);
|
|
22
|
+
|
|
23
|
+
@media print {
|
|
24
|
+
break-after: avoid;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
const Label = styled.div`
|
|
29
|
+
font-size: var(--resume-size-small, 10px);
|
|
30
|
+
font-weight: var(--resume-weight-medium, 500);
|
|
31
|
+
color: var(--resume-color-secondary, #4a4a4a);
|
|
32
|
+
text-transform: uppercase;
|
|
33
|
+
letter-spacing: 0.1em;
|
|
34
|
+
margin-bottom: var(--resume-space-tight, 8px);
|
|
35
|
+
|
|
36
|
+
@media print {
|
|
37
|
+
color: #4a4a4a; /* Ensure print visibility */
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
const Name = styled.h1`
|
|
42
|
+
font-size: var(--resume-size-name, 36px);
|
|
43
|
+
font-weight: var(--resume-weight-bold, 700);
|
|
44
|
+
color: var(--resume-color-primary, #1a1a1a);
|
|
45
|
+
letter-spacing: -0.02em; /* Subtle negative tracking, avoid excessive spacing */
|
|
46
|
+
margin: 0 auto;
|
|
47
|
+
padding-bottom: 8px;
|
|
48
|
+
border-bottom: 1px solid var(--resume-color-border, #e5e7eb);
|
|
49
|
+
max-width: fit-content;
|
|
50
|
+
line-height: var(--resume-line-height-tight, 1.2);
|
|
51
|
+
|
|
52
|
+
/* Ensure 4.5:1 contrast ratio */
|
|
53
|
+
@media print {
|
|
54
|
+
color: #000000;
|
|
55
|
+
border-bottom-color: #999999;
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
export function HeroNameBlock({ name, label, className, ...rest }) {
|
|
60
|
+
return (
|
|
61
|
+
<Container
|
|
62
|
+
className={`resume-hero-name-block ${className || ''}`.trim()}
|
|
63
|
+
{...rest}
|
|
64
|
+
>
|
|
65
|
+
{label && <Label className="resume-hero-label">{label}</Label>}
|
|
66
|
+
<Name className="resume-hero-name">{name}</Name>
|
|
67
|
+
</Container>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default HeroNameBlock;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeroNameBlock } from './HeroNameBlock';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Resume Core/Header/HeroNameBlock',
|
|
6
|
+
component: HeroNameBlock,
|
|
7
|
+
parameters: { layout: 'padded' },
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
export const Default = {
|
|
14
|
+
args: {
|
|
15
|
+
name: 'Alexandra Martinez',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const WithLabel = {
|
|
20
|
+
args: {
|
|
21
|
+
name: 'Alexandra Martinez',
|
|
22
|
+
label: 'Portfolio',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const LongName = {
|
|
27
|
+
args: {
|
|
28
|
+
name: 'Dr. Maximilian Alexander van der Woodsworth III',
|
|
29
|
+
label: 'Curriculum Vitae',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const ShortName = {
|
|
34
|
+
args: {
|
|
35
|
+
name: 'Max Li',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* NameStackElegant Component
|
|
6
|
+
* Elegant vertical stack of name, role, and optional tagline with varying font weights
|
|
7
|
+
* Avoids thin hairlines at small sizes for optimal print quality
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @example
|
|
11
|
+
* <NameStackElegant
|
|
12
|
+
* name="Alexandra Chen"
|
|
13
|
+
* role="Senior Product Designer"
|
|
14
|
+
* tagline="Creating intuitive digital experiences"
|
|
15
|
+
* />
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} props
|
|
18
|
+
* @param {string} props.name - Full name (displayed prominently)
|
|
19
|
+
* @param {string} props.role - Job title or role
|
|
20
|
+
* @param {string} [props.tagline] - Optional short tagline or value proposition
|
|
21
|
+
* @param {'left'|'center'|'right'} [props.align='center'] - Text alignment
|
|
22
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const Container = styled.header`
|
|
26
|
+
text-align: ${(props) => props.$align || 'center'};
|
|
27
|
+
margin-bottom: var(--resume-space-section, 24px);
|
|
28
|
+
|
|
29
|
+
@media print {
|
|
30
|
+
break-after: avoid;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
const Name = styled.h1`
|
|
35
|
+
font-size: var(--resume-size-name, 36px);
|
|
36
|
+
font-weight: var(--resume-weight-bold, 700);
|
|
37
|
+
color: var(--resume-color-primary, #1a1a1a);
|
|
38
|
+
margin: 0 0 4px 0;
|
|
39
|
+
line-height: var(--resume-line-height-tight, 1.2);
|
|
40
|
+
letter-spacing: -0.02em;
|
|
41
|
+
|
|
42
|
+
@media print {
|
|
43
|
+
color: #000000; /* Ensure 4.5:1 contrast */
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
const Role = styled.div`
|
|
48
|
+
font-size: var(--resume-size-heading, 16px);
|
|
49
|
+
font-weight: var(--resume-weight-medium, 500); /* Avoid thin weights */
|
|
50
|
+
color: var(--resume-color-secondary, #4a4a4a);
|
|
51
|
+
margin: 0 0 8px 0;
|
|
52
|
+
line-height: var(--resume-line-height-normal, 1.5);
|
|
53
|
+
|
|
54
|
+
@media print {
|
|
55
|
+
color: #333333; /* Ensure 4.5:1 contrast */
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
const Tagline = styled.div`
|
|
60
|
+
font-size: var(--resume-size-body, 11px);
|
|
61
|
+
font-weight: var(--resume-weight-normal, 400);
|
|
62
|
+
color: var(--resume-color-secondary, #4a4a4a);
|
|
63
|
+
margin: 0;
|
|
64
|
+
line-height: var(--resume-line-height-relaxed, 1.75);
|
|
65
|
+
max-width: 600px;
|
|
66
|
+
margin-left: ${(props) => (props.$align === 'center' ? 'auto' : '0')};
|
|
67
|
+
margin-right: ${(props) =>
|
|
68
|
+
props.$align === 'center'
|
|
69
|
+
? 'auto'
|
|
70
|
+
: props.$align === 'right'
|
|
71
|
+
? '0'
|
|
72
|
+
: 'auto'};
|
|
73
|
+
|
|
74
|
+
@media print {
|
|
75
|
+
color: #4a4a4a;
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
export function NameStackElegant({
|
|
80
|
+
name,
|
|
81
|
+
role,
|
|
82
|
+
tagline,
|
|
83
|
+
align = 'center',
|
|
84
|
+
className,
|
|
85
|
+
...rest
|
|
86
|
+
}) {
|
|
87
|
+
return (
|
|
88
|
+
<Container
|
|
89
|
+
$align={align}
|
|
90
|
+
className={`resume-name-stack-elegant ${className || ''}`.trim()}
|
|
91
|
+
{...rest}
|
|
92
|
+
>
|
|
93
|
+
<Name className="resume-name">{name}</Name>
|
|
94
|
+
<Role className="resume-role">{role}</Role>
|
|
95
|
+
{tagline && (
|
|
96
|
+
<Tagline $align={align} className="resume-tagline">
|
|
97
|
+
{tagline}
|
|
98
|
+
</Tagline>
|
|
99
|
+
)}
|
|
100
|
+
</Container>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export default NameStackElegant;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NameStackElegant } from './NameStackElegant';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Resume Core/Header/NameStackElegant',
|
|
6
|
+
component: NameStackElegant,
|
|
7
|
+
parameters: { layout: 'padded' },
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
export const Default = {
|
|
14
|
+
args: {
|
|
15
|
+
name: 'Alexandra Chen',
|
|
16
|
+
role: 'Senior Product Designer',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const WithTagline = {
|
|
21
|
+
args: {
|
|
22
|
+
name: 'Alexandra Chen',
|
|
23
|
+
role: 'Senior Product Designer',
|
|
24
|
+
tagline: 'Creating intuitive digital experiences that delight users',
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const LeftAlign = {
|
|
29
|
+
args: {
|
|
30
|
+
name: 'Marcus Thompson',
|
|
31
|
+
role: 'Full Stack Developer',
|
|
32
|
+
tagline: 'Building scalable web applications',
|
|
33
|
+
align: 'left',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const RightAlign = {
|
|
38
|
+
args: {
|
|
39
|
+
name: 'Sarah Williams',
|
|
40
|
+
role: 'Data Scientist',
|
|
41
|
+
tagline: 'Transforming data into actionable insights',
|
|
42
|
+
align: 'right',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const LongTagline = {
|
|
47
|
+
args: {
|
|
48
|
+
name: 'Dr. James Rodriguez',
|
|
49
|
+
role: 'Research Scientist & AI Engineer',
|
|
50
|
+
tagline:
|
|
51
|
+
'Pioneering advances in machine learning and artificial intelligence with a focus on ethical AI development and real-world applications',
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const Minimal = {
|
|
56
|
+
args: {
|
|
57
|
+
name: 'Jordan Lee',
|
|
58
|
+
role: 'UX Designer',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PageBreak
|
|
4
|
+
* Force page break for printing
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Break = styled.div`
|
|
9
|
+
@media print {
|
|
10
|
+
page-break-before: ${(props) => (props.$before ? 'always' : 'auto')};
|
|
11
|
+
page-break-after: ${(props) => (props.$after ? 'always' : 'auto')};
|
|
12
|
+
break-before: ${(props) => (props.$before ? 'page' : 'auto')};
|
|
13
|
+
break-after: ${(props) => (props.$after ? 'page' : 'auto')};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media screen {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
export function PageBreak({ before = false, after = true, className }) {
|
|
22
|
+
return <Break $before={before} $after={after} className={className} />;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default PageBreak;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PageBreak Stories
|
|
4
|
+
*/
|
|
5
|
+
import { PageBreak } from './PageBreak';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Header/PageBreak',
|
|
9
|
+
component: PageBreak,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const Example = {
|
|
21
|
+
args: {},
|
|
22
|
+
};
|