@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,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ThemeProvider
|
|
3
|
+
* Provides theme context and CSS custom properties to all resume components
|
|
4
|
+
*/
|
|
5
|
+
import React, { createContext, useContext, useEffect } from 'react';
|
|
6
|
+
import { createGlobalStyle } from 'styled-components';
|
|
7
|
+
import '../styles/tokens.css';
|
|
8
|
+
|
|
9
|
+
const ThemeContext = createContext({
|
|
10
|
+
theme: 'professional',
|
|
11
|
+
setTheme: () => {},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const GlobalStyles = createGlobalStyle`
|
|
15
|
+
* {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
font-family: var(--resume-font-sans);
|
|
23
|
+
font-size: var(--resume-size-body);
|
|
24
|
+
line-height: var(--resume-line-height-normal);
|
|
25
|
+
color: var(--resume-color-primary);
|
|
26
|
+
background: var(--resume-color-background);
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
export function ThemeProvider({ theme = 'professional', children }) {
|
|
31
|
+
const [currentTheme, setCurrentTheme] = React.useState(theme);
|
|
32
|
+
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
// Apply theme data attribute to document root
|
|
35
|
+
document.documentElement.setAttribute('data-theme', currentTheme);
|
|
36
|
+
}, [currentTheme]);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<ThemeContext.Provider
|
|
40
|
+
value={{ theme: currentTheme, setTheme: setCurrentTheme }}
|
|
41
|
+
>
|
|
42
|
+
<GlobalStyles />
|
|
43
|
+
{children}
|
|
44
|
+
</ThemeContext.Provider>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function useTheme() {
|
|
49
|
+
const context = useContext(ThemeContext);
|
|
50
|
+
if (!context) {
|
|
51
|
+
throw new Error('useTheme must be used within a ThemeProvider');
|
|
52
|
+
}
|
|
53
|
+
return context;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ThemeProvider Stories
|
|
4
|
+
* Demonstrates all available themes for resume components
|
|
5
|
+
*/
|
|
6
|
+
import { ThemeProvider } from './ThemeProvider';
|
|
7
|
+
import { Section } from '../primitives/Section';
|
|
8
|
+
import { Heading } from '../typography/Heading';
|
|
9
|
+
import { Text } from '../typography/Text';
|
|
10
|
+
import { SkillBar } from '../skills/SkillBar';
|
|
11
|
+
import { Badge } from '../primitives/Badge';
|
|
12
|
+
|
|
13
|
+
const meta = {
|
|
14
|
+
title: 'Resume Core/Providers/ThemeProvider',
|
|
15
|
+
component: ThemeProvider,
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: 'fullscreen',
|
|
18
|
+
},
|
|
19
|
+
tags: ['autodocs'],
|
|
20
|
+
argTypes: {
|
|
21
|
+
theme: {
|
|
22
|
+
control: 'select',
|
|
23
|
+
options: [
|
|
24
|
+
'professional',
|
|
25
|
+
'modern',
|
|
26
|
+
'classic',
|
|
27
|
+
'minimal',
|
|
28
|
+
'high-contrast',
|
|
29
|
+
],
|
|
30
|
+
description: 'Theme variant to apply',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default meta;
|
|
36
|
+
|
|
37
|
+
const SampleContent = () => (
|
|
38
|
+
<div style={{ padding: '2rem' }}>
|
|
39
|
+
<Section>
|
|
40
|
+
<Heading level={1}>John Doe</Heading>
|
|
41
|
+
<Text>Senior Software Engineer</Text>
|
|
42
|
+
<div
|
|
43
|
+
style={{
|
|
44
|
+
marginTop: '1rem',
|
|
45
|
+
display: 'flex',
|
|
46
|
+
gap: '0.5rem',
|
|
47
|
+
flexWrap: 'wrap',
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
50
|
+
<Badge>React</Badge>
|
|
51
|
+
<Badge>TypeScript</Badge>
|
|
52
|
+
<Badge>Node.js</Badge>
|
|
53
|
+
</div>
|
|
54
|
+
</Section>
|
|
55
|
+
|
|
56
|
+
<Section>
|
|
57
|
+
<Heading level={2}>Skills</Heading>
|
|
58
|
+
<SkillBar skill="JavaScript" level={90} showPercentage />
|
|
59
|
+
<SkillBar skill="React" level={85} showPercentage />
|
|
60
|
+
<SkillBar skill="TypeScript" level={80} showPercentage />
|
|
61
|
+
<SkillBar skill="Node.js" level={75} showPercentage />
|
|
62
|
+
</Section>
|
|
63
|
+
|
|
64
|
+
<Section>
|
|
65
|
+
<Heading level={2}>About</Heading>
|
|
66
|
+
<Text>
|
|
67
|
+
Passionate software engineer with 8+ years of experience building
|
|
68
|
+
scalable web applications. Specialized in React, TypeScript, and modern
|
|
69
|
+
web technologies. Love mentoring junior developers and contributing to
|
|
70
|
+
open source projects.
|
|
71
|
+
</Text>
|
|
72
|
+
</Section>
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
export const Professional = {
|
|
77
|
+
args: {
|
|
78
|
+
theme: 'professional',
|
|
79
|
+
children: <SampleContent />,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const Modern = {
|
|
84
|
+
args: {
|
|
85
|
+
theme: 'modern',
|
|
86
|
+
children: <SampleContent />,
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const Classic = {
|
|
91
|
+
args: {
|
|
92
|
+
theme: 'classic',
|
|
93
|
+
children: <SampleContent />,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const Minimal = {
|
|
98
|
+
args: {
|
|
99
|
+
theme: 'minimal',
|
|
100
|
+
children: <SampleContent />,
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const HighContrast = {
|
|
105
|
+
args: {
|
|
106
|
+
theme: 'high-contrast',
|
|
107
|
+
children: <SampleContent />,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const ThemeComparison = {
|
|
112
|
+
render: () => (
|
|
113
|
+
<div
|
|
114
|
+
style={{
|
|
115
|
+
display: 'grid',
|
|
116
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))',
|
|
117
|
+
gap: '2rem',
|
|
118
|
+
padding: '2rem',
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
{['professional', 'modern', 'classic', 'minimal', 'high-contrast'].map(
|
|
122
|
+
(theme) => (
|
|
123
|
+
<div
|
|
124
|
+
key={theme}
|
|
125
|
+
style={{
|
|
126
|
+
border: '1px solid #ccc',
|
|
127
|
+
borderRadius: '8px',
|
|
128
|
+
overflow: 'hidden',
|
|
129
|
+
}}
|
|
130
|
+
>
|
|
131
|
+
<div
|
|
132
|
+
style={{
|
|
133
|
+
padding: '1rem',
|
|
134
|
+
background: '#f5f5f5',
|
|
135
|
+
fontWeight: 'bold',
|
|
136
|
+
textTransform: 'capitalize',
|
|
137
|
+
}}
|
|
138
|
+
>
|
|
139
|
+
{theme}
|
|
140
|
+
</div>
|
|
141
|
+
<ThemeProvider theme={theme}>
|
|
142
|
+
<SampleContent />
|
|
143
|
+
</ThemeProvider>
|
|
144
|
+
</div>
|
|
145
|
+
)
|
|
146
|
+
)}
|
|
147
|
+
</div>
|
|
148
|
+
),
|
|
149
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PortfolioGrid
|
|
4
|
+
* Grid of portfolio items with thumbnails and descriptions
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Grid = styled.div`
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
11
|
+
gap: var(--resume-space-item);
|
|
12
|
+
|
|
13
|
+
@media (max-width: 768px) {
|
|
14
|
+
grid-template-columns: 1fr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media print {
|
|
18
|
+
break-inside: avoid;
|
|
19
|
+
grid-template-columns: repeat(2, 1fr);
|
|
20
|
+
gap: var(--resume-space-tight);
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
const Item = styled.div`
|
|
25
|
+
background-color: var(--resume-color-background);
|
|
26
|
+
border: 1px solid var(--resume-color-border);
|
|
27
|
+
border-radius: var(--resume-radius-md);
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
break-inside: avoid;
|
|
30
|
+
|
|
31
|
+
@media print {
|
|
32
|
+
border: 1px solid var(--resume-color-border);
|
|
33
|
+
break-inside: avoid;
|
|
34
|
+
page-break-inside: avoid;
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
const Thumbnail = styled.img`
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 150px;
|
|
41
|
+
object-fit: cover;
|
|
42
|
+
display: block;
|
|
43
|
+
|
|
44
|
+
@media print {
|
|
45
|
+
height: 100px;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
const Content = styled.div`
|
|
50
|
+
padding: var(--resume-space-tight);
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
const Title = styled.h3`
|
|
54
|
+
margin: 0 0 4px 0;
|
|
55
|
+
font-size: var(--resume-size-subheading);
|
|
56
|
+
font-weight: var(--resume-weight-medium);
|
|
57
|
+
color: var(--resume-color-primary);
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
const Description = styled.p`
|
|
61
|
+
margin: 0 0 8px 0;
|
|
62
|
+
font-size: var(--resume-size-small);
|
|
63
|
+
color: var(--resume-color-secondary);
|
|
64
|
+
line-height: var(--resume-line-height-normal);
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
const Tags = styled.div`
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-wrap: wrap;
|
|
70
|
+
gap: 6px;
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
const Tag = styled.span`
|
|
74
|
+
padding: 2px 8px;
|
|
75
|
+
font-size: var(--resume-size-tiny);
|
|
76
|
+
background-color: var(--resume-color-muted);
|
|
77
|
+
color: var(--resume-color-secondary);
|
|
78
|
+
border-radius: var(--resume-radius-sm);
|
|
79
|
+
|
|
80
|
+
@media print {
|
|
81
|
+
border: 1px solid var(--resume-color-border);
|
|
82
|
+
background-color: transparent;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @param {Object} props
|
|
88
|
+
* @param {Array} props.items - Array of portfolio items
|
|
89
|
+
* @param {string} props.items[].title - Item title
|
|
90
|
+
* @param {string} [props.items[].description] - Item description
|
|
91
|
+
* @param {string} [props.items[].thumbnail] - Thumbnail image URL
|
|
92
|
+
* @param {Array<string>} [props.items[].tags] - Item tags
|
|
93
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
94
|
+
*/
|
|
95
|
+
export function PortfolioGrid({ items = [], className }) {
|
|
96
|
+
if (!items || items.length === 0) return null;
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<Grid className={className}>
|
|
100
|
+
{items.map((item, index) => (
|
|
101
|
+
<Item key={index}>
|
|
102
|
+
{item.thumbnail && (
|
|
103
|
+
<Thumbnail src={item.thumbnail} alt={item.title} />
|
|
104
|
+
)}
|
|
105
|
+
<Content>
|
|
106
|
+
<Title>{item.title}</Title>
|
|
107
|
+
{item.description && <Description>{item.description}</Description>}
|
|
108
|
+
{item.tags && item.tags.length > 0 && (
|
|
109
|
+
<Tags>
|
|
110
|
+
{item.tags.map((tag, tagIndex) => (
|
|
111
|
+
<Tag key={tagIndex}>{tag}</Tag>
|
|
112
|
+
))}
|
|
113
|
+
</Tags>
|
|
114
|
+
)}
|
|
115
|
+
</Content>
|
|
116
|
+
</Item>
|
|
117
|
+
))}
|
|
118
|
+
</Grid>
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default PortfolioGrid;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PortfolioGrid Stories
|
|
4
|
+
*/
|
|
5
|
+
import { PortfolioGrid } from './PortfolioGrid';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Publications/PortfolioGrid',
|
|
9
|
+
component: PortfolioGrid,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
items: [
|
|
19
|
+
{
|
|
20
|
+
title: 'E-Commerce Platform',
|
|
21
|
+
image: 'https://placehold.co/400x300',
|
|
22
|
+
url: '#',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: 'Analytics Dashboard',
|
|
26
|
+
image: 'https://placehold.co/400x300',
|
|
27
|
+
url: '#',
|
|
28
|
+
},
|
|
29
|
+
{ title: 'Mobile App', image: 'https://placehold.co/400x300', url: '#' },
|
|
30
|
+
{
|
|
31
|
+
title: 'Design System',
|
|
32
|
+
image: 'https://placehold.co/400x300',
|
|
33
|
+
url: '#',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const Example = {
|
|
40
|
+
args: {
|
|
41
|
+
items: [
|
|
42
|
+
{
|
|
43
|
+
title: 'Project Alpha',
|
|
44
|
+
image: 'https://placehold.co/400x300',
|
|
45
|
+
url: '#',
|
|
46
|
+
tags: ['React', 'AWS'],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: 'Project Beta',
|
|
50
|
+
image: 'https://placehold.co/400x300',
|
|
51
|
+
url: '#',
|
|
52
|
+
tags: ['Vue', 'Firebase'],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: 'Project Gamma',
|
|
56
|
+
image: 'https://placehold.co/400x300',
|
|
57
|
+
url: '#',
|
|
58
|
+
tags: ['Angular', 'GCP'],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ProjectCard
|
|
4
|
+
* Card for projects with title, description, technologies, and links
|
|
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
|
+
|
|
31
|
+
const Title = styled.h3`
|
|
32
|
+
margin: 0;
|
|
33
|
+
font-size: var(--resume-size-subheading);
|
|
34
|
+
font-weight: var(--resume-weight-medium);
|
|
35
|
+
color: var(--resume-color-primary);
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
const Date = styled.time`
|
|
39
|
+
font-size: var(--resume-size-small);
|
|
40
|
+
color: var(--resume-color-tertiary);
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
const Description = styled.p`
|
|
45
|
+
margin: 0 0 var(--resume-space-tight) 0;
|
|
46
|
+
font-size: var(--resume-size-body);
|
|
47
|
+
color: var(--resume-color-secondary);
|
|
48
|
+
line-height: var(--resume-line-height-normal);
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
const Technologies = styled.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: 6px;
|
|
55
|
+
margin-bottom: var(--resume-space-tight);
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
const Tech = styled.span`
|
|
59
|
+
padding: 4px 10px;
|
|
60
|
+
font-size: var(--resume-size-small);
|
|
61
|
+
background-color: var(--resume-color-muted);
|
|
62
|
+
color: var(--resume-color-secondary);
|
|
63
|
+
border-radius: var(--resume-radius-sm);
|
|
64
|
+
|
|
65
|
+
@media print {
|
|
66
|
+
border: 1px solid var(--resume-color-border);
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
const Links = styled.div`
|
|
72
|
+
display: flex;
|
|
73
|
+
gap: var(--resume-space-tight);
|
|
74
|
+
`;
|
|
75
|
+
|
|
76
|
+
const Link = styled.a`
|
|
77
|
+
font-size: var(--resume-size-small);
|
|
78
|
+
color: var(--resume-color-accent);
|
|
79
|
+
text-decoration: none;
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
text-decoration: underline;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media print {
|
|
86
|
+
color: var(--resume-color-primary);
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
|
|
89
|
+
&::after {
|
|
90
|
+
content: ' (' attr(href) ')';
|
|
91
|
+
font-size: var(--resume-size-tiny);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {Object} props
|
|
98
|
+
* @param {string} props.name - Project name
|
|
99
|
+
* @param {string} [props.description] - Project description
|
|
100
|
+
* @param {Array<string>} [props.technologies] - Technologies used
|
|
101
|
+
* @param {string} [props.startDate] - Start date
|
|
102
|
+
* @param {string} [props.endDate] - End date
|
|
103
|
+
* @param {string} [props.url] - Project URL
|
|
104
|
+
* @param {string} [props.repository] - Repository URL
|
|
105
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
106
|
+
*/
|
|
107
|
+
export function ProjectCard({
|
|
108
|
+
name,
|
|
109
|
+
description,
|
|
110
|
+
technologies = [],
|
|
111
|
+
startDate,
|
|
112
|
+
endDate,
|
|
113
|
+
url,
|
|
114
|
+
repository,
|
|
115
|
+
className,
|
|
116
|
+
}) {
|
|
117
|
+
const dateRange = [startDate, endDate].filter(Boolean).join(' - ');
|
|
118
|
+
|
|
119
|
+
return (
|
|
120
|
+
<Card className={className}>
|
|
121
|
+
<Header>
|
|
122
|
+
<Title>{name}</Title>
|
|
123
|
+
{dateRange && <Date>{dateRange}</Date>}
|
|
124
|
+
</Header>
|
|
125
|
+
{description && <Description>{description}</Description>}
|
|
126
|
+
{technologies.length > 0 && (
|
|
127
|
+
<Technologies>
|
|
128
|
+
{technologies.map((tech, index) => (
|
|
129
|
+
<Tech key={index}>{tech}</Tech>
|
|
130
|
+
))}
|
|
131
|
+
</Technologies>
|
|
132
|
+
)}
|
|
133
|
+
{(url || repository) && (
|
|
134
|
+
<Links>
|
|
135
|
+
{url && (
|
|
136
|
+
<Link href={url} target="_blank" rel="noopener noreferrer">
|
|
137
|
+
View Project
|
|
138
|
+
</Link>
|
|
139
|
+
)}
|
|
140
|
+
{repository && (
|
|
141
|
+
<Link href={repository} target="_blank" rel="noopener noreferrer">
|
|
142
|
+
Source Code
|
|
143
|
+
</Link>
|
|
144
|
+
)}
|
|
145
|
+
</Links>
|
|
146
|
+
)}
|
|
147
|
+
</Card>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export default ProjectCard;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ProjectCard Stories
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectCard } from './ProjectCard';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Publications/ProjectCard',
|
|
9
|
+
component: ProjectCard,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
title: 'E-Commerce Platform Redesign',
|
|
19
|
+
description:
|
|
20
|
+
'Led complete redesign of checkout flow, increasing conversion by 35%. Implemented responsive design and improved page load time by 60%.',
|
|
21
|
+
tags: ['React', 'TypeScript', 'AWS'],
|
|
22
|
+
date: '2022 - 2023',
|
|
23
|
+
url: 'https://github.com/example/project',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Example = {
|
|
28
|
+
args: {
|
|
29
|
+
title: 'Real-time Analytics Dashboard',
|
|
30
|
+
description:
|
|
31
|
+
'Built real-time data visualization platform processing 10M+ events/day. Integrated WebSocket streaming and custom charting library.',
|
|
32
|
+
tags: ['Node.js', 'D3.js', 'MongoDB'],
|
|
33
|
+
date: '2021',
|
|
34
|
+
url: 'https://github.com/example/analytics',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PublicationEntryPlain
|
|
4
|
+
* Plain-text publication entry optimized for ATS parsing
|
|
5
|
+
* Format: Author · Year · Title · Venue
|
|
6
|
+
*/
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
|
|
9
|
+
const Container = styled.div`
|
|
10
|
+
margin-bottom: var(--resume-space-tight);
|
|
11
|
+
padding-left: 1.5em;
|
|
12
|
+
text-indent: -1.5em;
|
|
13
|
+
break-inside: avoid;
|
|
14
|
+
line-height: var(--resume-line-height-relaxed);
|
|
15
|
+
|
|
16
|
+
@media print {
|
|
17
|
+
break-inside: avoid;
|
|
18
|
+
page-break-inside: avoid;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const Text = styled.span`
|
|
23
|
+
font-size: var(--resume-size-body);
|
|
24
|
+
color: var(--resume-color-primary);
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
const Author = styled(Text)`
|
|
28
|
+
font-weight: var(--resume-weight-medium);
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
const Year = styled(Text)`
|
|
32
|
+
color: var(--resume-color-secondary);
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
const Title = styled(Text)`
|
|
36
|
+
font-style: italic;
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
const Venue = styled(Text)`
|
|
40
|
+
color: var(--resume-color-secondary);
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
const Separator = styled.span`
|
|
44
|
+
margin: 0 0.5em;
|
|
45
|
+
color: var(--resume-color-tertiary);
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
const Link = styled.a`
|
|
49
|
+
color: var(--resume-color-accent);
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
margin-left: 0.5em;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
text-decoration: underline;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media print {
|
|
58
|
+
color: var(--resume-color-primary);
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
|
|
61
|
+
&::after {
|
|
62
|
+
content: ' [' attr(href) ']';
|
|
63
|
+
font-size: var(--resume-size-tiny);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* PublicationEntryPlain Component
|
|
70
|
+
*
|
|
71
|
+
* Displays a publication in a plain, ATS-friendly format with hanging indent.
|
|
72
|
+
* Format: Author · Year · Title · Venue
|
|
73
|
+
*
|
|
74
|
+
* @param {Object} props - Component props
|
|
75
|
+
* @param {string} props.author - Author name(s)
|
|
76
|
+
* @param {string|number} [props.year] - Publication year
|
|
77
|
+
* @param {string} props.title - Publication title (displayed in italics)
|
|
78
|
+
* @param {string} [props.venue] - Publication venue (journal, conference, etc.)
|
|
79
|
+
* @param {string} [props.url] - Link to publication
|
|
80
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```jsx
|
|
84
|
+
* <PublicationEntryPlain
|
|
85
|
+
* author="Smith, J. & Doe, A."
|
|
86
|
+
* year={2023}
|
|
87
|
+
* title="A Novel Approach to Resume Formatting"
|
|
88
|
+
* venue="Journal of CV Design, Vol. 12"
|
|
89
|
+
* url="https://example.com/paper"
|
|
90
|
+
* />
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export function PublicationEntryPlain({
|
|
94
|
+
author,
|
|
95
|
+
year,
|
|
96
|
+
title,
|
|
97
|
+
venue,
|
|
98
|
+
url,
|
|
99
|
+
className,
|
|
100
|
+
}) {
|
|
101
|
+
return (
|
|
102
|
+
<Container className={className}>
|
|
103
|
+
<Author>{author}</Author>
|
|
104
|
+
{year && (
|
|
105
|
+
<>
|
|
106
|
+
<Separator>·</Separator>
|
|
107
|
+
<Year>{year}</Year>
|
|
108
|
+
</>
|
|
109
|
+
)}
|
|
110
|
+
<Separator>·</Separator>
|
|
111
|
+
<Title>{title}</Title>
|
|
112
|
+
{venue && (
|
|
113
|
+
<>
|
|
114
|
+
<Separator>·</Separator>
|
|
115
|
+
<Venue>{venue}</Venue>
|
|
116
|
+
</>
|
|
117
|
+
)}
|
|
118
|
+
{url && (
|
|
119
|
+
<Link href={url} target="_blank" rel="noopener noreferrer">
|
|
120
|
+
[link]
|
|
121
|
+
</Link>
|
|
122
|
+
)}
|
|
123
|
+
</Container>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export default PublicationEntryPlain;
|