@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,272 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* CardLayout Stories
|
|
4
|
+
* Responsive grid layout for displaying cards
|
|
5
|
+
*/
|
|
6
|
+
import { CardLayout } from './CardLayout';
|
|
7
|
+
|
|
8
|
+
const meta = {
|
|
9
|
+
title: 'Resume Core/Layouts/CardLayout',
|
|
10
|
+
component: CardLayout,
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'padded',
|
|
13
|
+
},
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
argTypes: {
|
|
16
|
+
minCardWidth: {
|
|
17
|
+
control: 'text',
|
|
18
|
+
description: 'Minimum card width (CSS value)',
|
|
19
|
+
},
|
|
20
|
+
gap: {
|
|
21
|
+
control: 'text',
|
|
22
|
+
description: 'Gap between cards',
|
|
23
|
+
},
|
|
24
|
+
spacing: {
|
|
25
|
+
control: 'text',
|
|
26
|
+
description: 'Bottom spacing',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default meta;
|
|
32
|
+
|
|
33
|
+
const ProjectCard = ({
|
|
34
|
+
title,
|
|
35
|
+
description,
|
|
36
|
+
}: {
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}) => (
|
|
40
|
+
<div
|
|
41
|
+
style={{
|
|
42
|
+
padding: '1.5rem',
|
|
43
|
+
background: 'white',
|
|
44
|
+
border: '1px solid #e0e0e0',
|
|
45
|
+
borderRadius: '8px',
|
|
46
|
+
boxShadow: '0 2px 4px rgba(0,0,0,0.1)',
|
|
47
|
+
}}
|
|
48
|
+
>
|
|
49
|
+
<h3>{title}</h3>
|
|
50
|
+
<p style={{ color: '#666', marginTop: '0.5rem' }}>{description}</p>
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export const Default = {
|
|
55
|
+
args: {
|
|
56
|
+
children: 'Card content goes here',
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const WideCards = {
|
|
61
|
+
args: {
|
|
62
|
+
minCardWidth: '350px',
|
|
63
|
+
children: (
|
|
64
|
+
<>
|
|
65
|
+
<ProjectCard
|
|
66
|
+
title="Project Alpha"
|
|
67
|
+
description="Large-scale distributed system"
|
|
68
|
+
/>
|
|
69
|
+
<ProjectCard
|
|
70
|
+
title="Project Beta"
|
|
71
|
+
description="Mobile-first web application"
|
|
72
|
+
/>
|
|
73
|
+
<ProjectCard
|
|
74
|
+
title="Project Gamma"
|
|
75
|
+
description="Machine learning pipeline"
|
|
76
|
+
/>
|
|
77
|
+
</>
|
|
78
|
+
),
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export const NarrowCards = {
|
|
83
|
+
args: {
|
|
84
|
+
minCardWidth: '200px',
|
|
85
|
+
children: (
|
|
86
|
+
<>
|
|
87
|
+
<ProjectCard title="Skill 1" description="JavaScript" />
|
|
88
|
+
<ProjectCard title="Skill 2" description="React" />
|
|
89
|
+
<ProjectCard title="Skill 3" description="Node.js" />
|
|
90
|
+
<ProjectCard title="Skill 4" description="TypeScript" />
|
|
91
|
+
</>
|
|
92
|
+
),
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const CustomGap = {
|
|
97
|
+
args: {
|
|
98
|
+
minCardWidth: '250px',
|
|
99
|
+
gap: '2rem',
|
|
100
|
+
children: (
|
|
101
|
+
<>
|
|
102
|
+
<ProjectCard title="Card 1" description="Wide spacing" />
|
|
103
|
+
<ProjectCard title="Card 2" description="Between cards" />
|
|
104
|
+
<ProjectCard title="Card 3" description="Breathing room" />
|
|
105
|
+
</>
|
|
106
|
+
),
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export const ProjectShowcase = {
|
|
111
|
+
render: () => (
|
|
112
|
+
<CardLayout minCardWidth="280px" gap="1.5rem">
|
|
113
|
+
<div
|
|
114
|
+
style={{
|
|
115
|
+
padding: '1.5rem',
|
|
116
|
+
background: '#f8f9fa',
|
|
117
|
+
border: '1px solid #dee2e6',
|
|
118
|
+
borderRadius: '8px',
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
<div
|
|
122
|
+
style={{
|
|
123
|
+
width: '100%',
|
|
124
|
+
height: '120px',
|
|
125
|
+
background: '#007bff',
|
|
126
|
+
borderRadius: '4px',
|
|
127
|
+
marginBottom: '1rem',
|
|
128
|
+
}}
|
|
129
|
+
/>
|
|
130
|
+
<h3>E-commerce Platform</h3>
|
|
131
|
+
<p style={{ color: '#666' }}>React, Node.js, PostgreSQL</p>
|
|
132
|
+
<p>Full-featured online store with payment processing</p>
|
|
133
|
+
</div>
|
|
134
|
+
<div
|
|
135
|
+
style={{
|
|
136
|
+
padding: '1.5rem',
|
|
137
|
+
background: '#f8f9fa',
|
|
138
|
+
border: '1px solid #dee2e6',
|
|
139
|
+
borderRadius: '8px',
|
|
140
|
+
}}
|
|
141
|
+
>
|
|
142
|
+
<div
|
|
143
|
+
style={{
|
|
144
|
+
width: '100%',
|
|
145
|
+
height: '120px',
|
|
146
|
+
background: '#28a745',
|
|
147
|
+
borderRadius: '4px',
|
|
148
|
+
marginBottom: '1rem',
|
|
149
|
+
}}
|
|
150
|
+
/>
|
|
151
|
+
<h3>Chat Application</h3>
|
|
152
|
+
<p style={{ color: '#666' }}>WebSocket, Redis, React</p>
|
|
153
|
+
<p>Real-time messaging with group chats</p>
|
|
154
|
+
</div>
|
|
155
|
+
<div
|
|
156
|
+
style={{
|
|
157
|
+
padding: '1.5rem',
|
|
158
|
+
background: '#f8f9fa',
|
|
159
|
+
border: '1px solid #dee2e6',
|
|
160
|
+
borderRadius: '8px',
|
|
161
|
+
}}
|
|
162
|
+
>
|
|
163
|
+
<div
|
|
164
|
+
style={{
|
|
165
|
+
width: '100%',
|
|
166
|
+
height: '120px',
|
|
167
|
+
background: '#ffc107',
|
|
168
|
+
borderRadius: '4px',
|
|
169
|
+
marginBottom: '1rem',
|
|
170
|
+
}}
|
|
171
|
+
/>
|
|
172
|
+
<h3>Analytics Dashboard</h3>
|
|
173
|
+
<p style={{ color: '#666' }}>D3.js, React, Express</p>
|
|
174
|
+
<p>Interactive data visualization platform</p>
|
|
175
|
+
</div>
|
|
176
|
+
<div
|
|
177
|
+
style={{
|
|
178
|
+
padding: '1.5rem',
|
|
179
|
+
background: '#f8f9fa',
|
|
180
|
+
border: '1px solid #dee2e6',
|
|
181
|
+
borderRadius: '8px',
|
|
182
|
+
}}
|
|
183
|
+
>
|
|
184
|
+
<div
|
|
185
|
+
style={{
|
|
186
|
+
width: '100%',
|
|
187
|
+
height: '120px',
|
|
188
|
+
background: '#dc3545',
|
|
189
|
+
borderRadius: '4px',
|
|
190
|
+
marginBottom: '1rem',
|
|
191
|
+
}}
|
|
192
|
+
/>
|
|
193
|
+
<h3>Mobile App</h3>
|
|
194
|
+
<p style={{ color: '#666' }}>React Native, Firebase</p>
|
|
195
|
+
<p>Cross-platform mobile application</p>
|
|
196
|
+
</div>
|
|
197
|
+
<div
|
|
198
|
+
style={{
|
|
199
|
+
padding: '1.5rem',
|
|
200
|
+
background: '#f8f9fa',
|
|
201
|
+
border: '1px solid #dee2e6',
|
|
202
|
+
borderRadius: '8px',
|
|
203
|
+
}}
|
|
204
|
+
>
|
|
205
|
+
<div
|
|
206
|
+
style={{
|
|
207
|
+
width: '100%',
|
|
208
|
+
height: '120px',
|
|
209
|
+
background: '#6f42c1',
|
|
210
|
+
borderRadius: '4px',
|
|
211
|
+
marginBottom: '1rem',
|
|
212
|
+
}}
|
|
213
|
+
/>
|
|
214
|
+
<h3>API Gateway</h3>
|
|
215
|
+
<p style={{ color: '#666' }}>Node.js, Docker, K8s</p>
|
|
216
|
+
<p>Microservices API gateway</p>
|
|
217
|
+
</div>
|
|
218
|
+
<div
|
|
219
|
+
style={{
|
|
220
|
+
padding: '1.5rem',
|
|
221
|
+
background: '#f8f9fa',
|
|
222
|
+
border: '1px solid #dee2e6',
|
|
223
|
+
borderRadius: '8px',
|
|
224
|
+
}}
|
|
225
|
+
>
|
|
226
|
+
<div
|
|
227
|
+
style={{
|
|
228
|
+
width: '100%',
|
|
229
|
+
height: '120px',
|
|
230
|
+
background: '#20c997',
|
|
231
|
+
borderRadius: '4px',
|
|
232
|
+
marginBottom: '1rem',
|
|
233
|
+
}}
|
|
234
|
+
/>
|
|
235
|
+
<h3>ML Pipeline</h3>
|
|
236
|
+
<p style={{ color: '#666' }}>Python, TensorFlow, AWS</p>
|
|
237
|
+
<p>Machine learning prediction model</p>
|
|
238
|
+
</div>
|
|
239
|
+
</CardLayout>
|
|
240
|
+
),
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
export const SkillCards = {
|
|
244
|
+
render: () => (
|
|
245
|
+
<CardLayout minCardWidth="200px">
|
|
246
|
+
{[
|
|
247
|
+
'JavaScript',
|
|
248
|
+
'React',
|
|
249
|
+
'Node.js',
|
|
250
|
+
'TypeScript',
|
|
251
|
+
'Python',
|
|
252
|
+
'Docker',
|
|
253
|
+
'AWS',
|
|
254
|
+
'PostgreSQL',
|
|
255
|
+
].map((skill) => (
|
|
256
|
+
<div
|
|
257
|
+
key={skill}
|
|
258
|
+
style={{
|
|
259
|
+
padding: '1.5rem',
|
|
260
|
+
background: 'white',
|
|
261
|
+
border: '2px solid #007bff',
|
|
262
|
+
borderRadius: '8px',
|
|
263
|
+
textAlign: 'center',
|
|
264
|
+
}}
|
|
265
|
+
>
|
|
266
|
+
<h3>{skill}</h3>
|
|
267
|
+
<div style={{ marginTop: '0.5rem', color: '#666' }}>Expert</div>
|
|
268
|
+
</div>
|
|
269
|
+
))}
|
|
270
|
+
</CardLayout>
|
|
271
|
+
),
|
|
272
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* FlexLayout
|
|
4
|
+
* Flexible layout with customizable direction and alignment
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Flex = styled.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: ${(props) => props.$direction || 'row'};
|
|
11
|
+
justify-content: ${(props) => props.$justify || 'flex-start'};
|
|
12
|
+
align-items: ${(props) => props.$align || 'stretch'};
|
|
13
|
+
flex-wrap: ${(props) => (props.$wrap ? 'wrap' : 'nowrap')};
|
|
14
|
+
gap: ${(props) => props.$gap || 'var(--resume-space-tight)'};
|
|
15
|
+
|
|
16
|
+
@media print {
|
|
17
|
+
gap: ${(props) => props.$gap || '8px'};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (max-width: 768px) {
|
|
21
|
+
flex-direction: ${(props) =>
|
|
22
|
+
props.$responsiveDirection || props.$direction === 'row'
|
|
23
|
+
? 'column'
|
|
24
|
+
: props.$direction};
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
export function FlexLayout({
|
|
29
|
+
direction = 'row',
|
|
30
|
+
justify = 'flex-start',
|
|
31
|
+
align = 'stretch',
|
|
32
|
+
wrap = false,
|
|
33
|
+
gap,
|
|
34
|
+
responsiveDirection,
|
|
35
|
+
children,
|
|
36
|
+
className,
|
|
37
|
+
}) {
|
|
38
|
+
return (
|
|
39
|
+
<Flex
|
|
40
|
+
$direction={direction}
|
|
41
|
+
$justify={justify}
|
|
42
|
+
$align={align}
|
|
43
|
+
$wrap={wrap}
|
|
44
|
+
$gap={gap}
|
|
45
|
+
$responsiveDirection={responsiveDirection}
|
|
46
|
+
className={className}
|
|
47
|
+
>
|
|
48
|
+
{children}
|
|
49
|
+
</Flex>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export default FlexLayout;
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* FlexLayout Stories
|
|
4
|
+
* Flexible layout with customizable direction and alignment
|
|
5
|
+
*/
|
|
6
|
+
import { FlexLayout } from './FlexLayout';
|
|
7
|
+
|
|
8
|
+
const meta = {
|
|
9
|
+
title: 'Resume Core/Layouts/FlexLayout',
|
|
10
|
+
component: FlexLayout,
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'padded',
|
|
13
|
+
},
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
argTypes: {
|
|
16
|
+
direction: {
|
|
17
|
+
control: 'select',
|
|
18
|
+
options: ['row', 'column'],
|
|
19
|
+
description: 'Flex direction',
|
|
20
|
+
},
|
|
21
|
+
justify: {
|
|
22
|
+
control: 'select',
|
|
23
|
+
options: [
|
|
24
|
+
'flex-start',
|
|
25
|
+
'center',
|
|
26
|
+
'flex-end',
|
|
27
|
+
'space-between',
|
|
28
|
+
'space-around',
|
|
29
|
+
'space-evenly',
|
|
30
|
+
],
|
|
31
|
+
description: 'Justify content',
|
|
32
|
+
},
|
|
33
|
+
align: {
|
|
34
|
+
control: 'select',
|
|
35
|
+
options: ['flex-start', 'center', 'flex-end', 'stretch', 'baseline'],
|
|
36
|
+
description: 'Align items',
|
|
37
|
+
},
|
|
38
|
+
wrap: {
|
|
39
|
+
control: 'boolean',
|
|
40
|
+
description: 'Allow wrapping',
|
|
41
|
+
},
|
|
42
|
+
gap: {
|
|
43
|
+
control: 'text',
|
|
44
|
+
description: 'Gap between items',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default meta;
|
|
50
|
+
|
|
51
|
+
const Box = ({
|
|
52
|
+
children,
|
|
53
|
+
color = '#007bff',
|
|
54
|
+
}: {
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
color?: string;
|
|
57
|
+
}) => (
|
|
58
|
+
<div
|
|
59
|
+
style={{
|
|
60
|
+
padding: '1rem',
|
|
61
|
+
background: color,
|
|
62
|
+
color: 'white',
|
|
63
|
+
borderRadius: '4px',
|
|
64
|
+
minWidth: '80px',
|
|
65
|
+
textAlign: 'center',
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
{children}
|
|
69
|
+
</div>
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
export const Row = {
|
|
73
|
+
args: {
|
|
74
|
+
direction: 'row',
|
|
75
|
+
children: (
|
|
76
|
+
<>
|
|
77
|
+
<Box>Item 1</Box>
|
|
78
|
+
<Box color="#28a745">Item 2</Box>
|
|
79
|
+
<Box color="#ffc107">Item 3</Box>
|
|
80
|
+
</>
|
|
81
|
+
),
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const Column = {
|
|
86
|
+
args: {
|
|
87
|
+
direction: 'column',
|
|
88
|
+
children: (
|
|
89
|
+
<>
|
|
90
|
+
<Box>Item 1</Box>
|
|
91
|
+
<Box color="#28a745">Item 2</Box>
|
|
92
|
+
<Box color="#ffc107">Item 3</Box>
|
|
93
|
+
</>
|
|
94
|
+
),
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const SpaceBetween = {
|
|
99
|
+
args: {
|
|
100
|
+
direction: 'row',
|
|
101
|
+
justify: 'space-between',
|
|
102
|
+
children: (
|
|
103
|
+
<>
|
|
104
|
+
<Box>Start</Box>
|
|
105
|
+
<Box color="#28a745">Middle</Box>
|
|
106
|
+
<Box color="#ffc107">End</Box>
|
|
107
|
+
</>
|
|
108
|
+
),
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export const Centered = {
|
|
113
|
+
args: {
|
|
114
|
+
direction: 'row',
|
|
115
|
+
justify: 'center',
|
|
116
|
+
align: 'center',
|
|
117
|
+
children: (
|
|
118
|
+
<>
|
|
119
|
+
<Box>Centered</Box>
|
|
120
|
+
<Box color="#28a745">Items</Box>
|
|
121
|
+
</>
|
|
122
|
+
),
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export const Wrapped = {
|
|
127
|
+
args: {
|
|
128
|
+
direction: 'row',
|
|
129
|
+
wrap: true,
|
|
130
|
+
gap: '1rem',
|
|
131
|
+
children: (
|
|
132
|
+
<>
|
|
133
|
+
<Box>Tag 1</Box>
|
|
134
|
+
<Box color="#28a745">Tag 2</Box>
|
|
135
|
+
<Box color="#ffc107">Tag 3</Box>
|
|
136
|
+
<Box color="#dc3545">Tag 4</Box>
|
|
137
|
+
<Box color="#6f42c1">Tag 5</Box>
|
|
138
|
+
<Box color="#20c997">Tag 6</Box>
|
|
139
|
+
<Box color="#fd7e14">Tag 7</Box>
|
|
140
|
+
<Box color="#e83e8c">Tag 8</Box>
|
|
141
|
+
</>
|
|
142
|
+
),
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export const CustomGap = {
|
|
147
|
+
args: {
|
|
148
|
+
direction: 'row',
|
|
149
|
+
gap: '2rem',
|
|
150
|
+
children: (
|
|
151
|
+
<>
|
|
152
|
+
<Box>Wide</Box>
|
|
153
|
+
<Box color="#28a745">Gap</Box>
|
|
154
|
+
<Box color="#ffc107">Items</Box>
|
|
155
|
+
</>
|
|
156
|
+
),
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export const HeaderLayout = {
|
|
161
|
+
render: () => (
|
|
162
|
+
<FlexLayout direction="row" justify="space-between" align="center">
|
|
163
|
+
<div>
|
|
164
|
+
<h2>John Doe</h2>
|
|
165
|
+
<p style={{ color: '#666' }}>Senior Software Engineer</p>
|
|
166
|
+
</div>
|
|
167
|
+
<div style={{ textAlign: 'right' }}>
|
|
168
|
+
<p>john@example.com</p>
|
|
169
|
+
<p>(555) 123-4567</p>
|
|
170
|
+
</div>
|
|
171
|
+
</FlexLayout>
|
|
172
|
+
),
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export const SkillTags = {
|
|
176
|
+
render: () => (
|
|
177
|
+
<FlexLayout direction="row" wrap={true} gap="0.5rem">
|
|
178
|
+
{[
|
|
179
|
+
'JavaScript',
|
|
180
|
+
'React',
|
|
181
|
+
'Node.js',
|
|
182
|
+
'TypeScript',
|
|
183
|
+
'Python',
|
|
184
|
+
'Docker',
|
|
185
|
+
'AWS',
|
|
186
|
+
'PostgreSQL',
|
|
187
|
+
'GraphQL',
|
|
188
|
+
'Redis',
|
|
189
|
+
].map((skill) => (
|
|
190
|
+
<div
|
|
191
|
+
key={skill}
|
|
192
|
+
style={{
|
|
193
|
+
padding: '0.5rem 1rem',
|
|
194
|
+
background: '#f0f0f0',
|
|
195
|
+
borderRadius: '20px',
|
|
196
|
+
fontSize: '0.9rem',
|
|
197
|
+
}}
|
|
198
|
+
>
|
|
199
|
+
{skill}
|
|
200
|
+
</div>
|
|
201
|
+
))}
|
|
202
|
+
</FlexLayout>
|
|
203
|
+
),
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export const ContactInfo = {
|
|
207
|
+
render: () => (
|
|
208
|
+
<FlexLayout direction="row" wrap={true} justify="center" gap="2rem">
|
|
209
|
+
<div style={{ textAlign: 'center' }}>
|
|
210
|
+
<div style={{ fontSize: '1.5rem', marginBottom: '0.5rem' }}>📧</div>
|
|
211
|
+
<div>john@example.com</div>
|
|
212
|
+
</div>
|
|
213
|
+
<div style={{ textAlign: 'center' }}>
|
|
214
|
+
<div style={{ fontSize: '1.5rem', marginBottom: '0.5rem' }}>📱</div>
|
|
215
|
+
<div>(555) 123-4567</div>
|
|
216
|
+
</div>
|
|
217
|
+
<div style={{ textAlign: 'center' }}>
|
|
218
|
+
<div style={{ fontSize: '1.5rem', marginBottom: '0.5rem' }}>🌐</div>
|
|
219
|
+
<div>johndoe.com</div>
|
|
220
|
+
</div>
|
|
221
|
+
<div style={{ textAlign: 'center' }}>
|
|
222
|
+
<div style={{ fontSize: '1.5rem', marginBottom: '0.5rem' }}>💼</div>
|
|
223
|
+
<div>linkedin.com/in/johndoe</div>
|
|
224
|
+
</div>
|
|
225
|
+
</FlexLayout>
|
|
226
|
+
),
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export const ButtonGroup = {
|
|
230
|
+
render: () => (
|
|
231
|
+
<FlexLayout direction="row" gap="1rem">
|
|
232
|
+
<button
|
|
233
|
+
style={{
|
|
234
|
+
padding: '0.75rem 1.5rem',
|
|
235
|
+
background: '#007bff',
|
|
236
|
+
color: 'white',
|
|
237
|
+
border: 'none',
|
|
238
|
+
borderRadius: '4px',
|
|
239
|
+
cursor: 'pointer',
|
|
240
|
+
}}
|
|
241
|
+
>
|
|
242
|
+
Download PDF
|
|
243
|
+
</button>
|
|
244
|
+
<button
|
|
245
|
+
style={{
|
|
246
|
+
padding: '0.75rem 1.5rem',
|
|
247
|
+
background: '#28a745',
|
|
248
|
+
color: 'white',
|
|
249
|
+
border: 'none',
|
|
250
|
+
borderRadius: '4px',
|
|
251
|
+
cursor: 'pointer',
|
|
252
|
+
}}
|
|
253
|
+
>
|
|
254
|
+
View Online
|
|
255
|
+
</button>
|
|
256
|
+
<button
|
|
257
|
+
style={{
|
|
258
|
+
padding: '0.75rem 1.5rem',
|
|
259
|
+
background: '#6c757d',
|
|
260
|
+
color: 'white',
|
|
261
|
+
border: 'none',
|
|
262
|
+
borderRadius: '4px',
|
|
263
|
+
cursor: 'pointer',
|
|
264
|
+
}}
|
|
265
|
+
>
|
|
266
|
+
Share
|
|
267
|
+
</button>
|
|
268
|
+
</FlexLayout>
|
|
269
|
+
),
|
|
270
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* GridLayout
|
|
4
|
+
* Responsive grid layout for organizing content
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const Grid = styled.div`
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: ${(props) =>
|
|
11
|
+
props.$columns === 1 ? '1fr' : `repeat(${props.$columns}, 1fr)`};
|
|
12
|
+
gap: ${(props) => props.$gap || 'var(--resume-column-gap)'};
|
|
13
|
+
margin-bottom: ${(props) => props.$spacing || 'var(--resume-space-section)'};
|
|
14
|
+
|
|
15
|
+
@media print {
|
|
16
|
+
gap: ${(props) => props.$gap || '16px'};
|
|
17
|
+
page-break-inside: avoid;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (max-width: 768px) {
|
|
21
|
+
grid-template-columns: 1fr;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
export function GridLayout({ columns = 2, gap, spacing, children, className }) {
|
|
26
|
+
return (
|
|
27
|
+
<Grid
|
|
28
|
+
$columns={columns}
|
|
29
|
+
$gap={gap}
|
|
30
|
+
$spacing={spacing}
|
|
31
|
+
className={className}
|
|
32
|
+
>
|
|
33
|
+
{children}
|
|
34
|
+
</Grid>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default GridLayout;
|