@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.
Files changed (279) hide show
  1. package/README.md +689 -0
  2. package/dist/resume-print.css +425 -0
  3. package/dist/tokens.css +139 -0
  4. package/package.json +66 -0
  5. package/src/badges/BadgeRowOutline.jsx +118 -0
  6. package/src/badges/BadgeRowOutline.stories.tsx +160 -0
  7. package/src/badges/index.jsx +5 -0
  8. package/src/callouts/Callout.jsx +80 -0
  9. package/src/callouts/Callout.stories.tsx +27 -0
  10. package/src/callouts/HighlightCard.jsx +114 -0
  11. package/src/callouts/HighlightCard.stories.tsx +27 -0
  12. package/src/callouts/InfoBox.jsx +82 -0
  13. package/src/callouts/InfoBox.stories.tsx +26 -0
  14. package/src/callouts/index.jsx +4 -0
  15. package/src/certifications/AwardCard.jsx +83 -0
  16. package/src/certifications/AwardCard.stories.tsx +32 -0
  17. package/src/certifications/CertificationBadge.jsx +85 -0
  18. package/src/certifications/CertificationBadge.stories.tsx +29 -0
  19. package/src/certifications/CertificationRow.jsx +150 -0
  20. package/src/certifications/CertificationRow.stories.tsx +64 -0
  21. package/src/certifications/HonorsList.jsx +87 -0
  22. package/src/certifications/HonorsList.stories.tsx +36 -0
  23. package/src/certifications/index.jsx +5 -0
  24. package/src/containers/AccentCalloutPanel.jsx +176 -0
  25. package/src/containers/AccentCalloutPanel.stories.tsx +105 -0
  26. package/src/containers/MutedPanel.jsx +125 -0
  27. package/src/containers/MutedPanel.stories.tsx +113 -0
  28. package/src/containers/RoleBlockFramed.jsx +191 -0
  29. package/src/containers/RoleBlockFramed.stories.tsx +230 -0
  30. package/src/containers/SoftCardOutline.jsx +161 -0
  31. package/src/containers/SoftCardOutline.stories.tsx +174 -0
  32. package/src/containers/index.jsx +9 -0
  33. package/src/data/KPIChipLine.jsx +158 -0
  34. package/src/data/KPIChipLine.stories.tsx +99 -0
  35. package/src/data/KeyValueInline.jsx +150 -0
  36. package/src/data/KeyValueInline.stories.tsx +136 -0
  37. package/src/data/MetricBar.jsx +93 -0
  38. package/src/data/MetricBar.stories.tsx +31 -0
  39. package/src/data/MetricBullet.jsx +129 -0
  40. package/src/data/MetricBullet.stories.tsx +99 -0
  41. package/src/data/MetricInline.jsx +60 -0
  42. package/src/data/MetricInline.stories.tsx +53 -0
  43. package/src/data/ProgressCircle.jsx +81 -0
  44. package/src/data/ProgressCircle.stories.tsx +102 -0
  45. package/src/data/StatCard.jsx +65 -0
  46. package/src/data/StatCard.stories.tsx +29 -0
  47. package/src/data/index.jsx +12 -0
  48. package/src/dates/DateBadge.jsx +73 -0
  49. package/src/dates/DateBadge.stories.tsx +30 -0
  50. package/src/dates/RelativeDate.jsx +121 -0
  51. package/src/dates/RelativeDate.stories.tsx +29 -0
  52. package/src/dates/index.jsx +3 -0
  53. package/src/experience/ExperienceCard.jsx +82 -0
  54. package/src/experience/ExperienceCard.stories.tsx +36 -0
  55. package/src/experience/ExperienceCompact.jsx +72 -0
  56. package/src/experience/ExperienceCompact.stories.tsx +53 -0
  57. package/src/experience/ExperienceGrid.jsx +65 -0
  58. package/src/experience/ExperienceGrid.stories.tsx +63 -0
  59. package/src/experience/ExperienceTimeline.jsx +24 -0
  60. package/src/experience/ExperienceTimeline.stories.tsx +63 -0
  61. package/src/experience/RoleHeaderCompact.jsx +99 -0
  62. package/src/experience/index.jsx +9 -0
  63. package/src/header/ContactRowLine.jsx +125 -0
  64. package/src/header/ContactRowLine.stories.tsx +65 -0
  65. package/src/header/CornerInitials.jsx +178 -0
  66. package/src/header/CornerInitials.stories.tsx +129 -0
  67. package/src/header/Footer.jsx +50 -0
  68. package/src/header/Footer.stories.tsx +25 -0
  69. package/src/header/HeaderCentered.jsx +51 -0
  70. package/src/header/HeaderCentered.stories.tsx +30 -0
  71. package/src/header/HeaderMinimal.jsx +50 -0
  72. package/src/header/HeaderMinimal.stories.tsx +29 -0
  73. package/src/header/HeaderSplit.jsx +65 -0
  74. package/src/header/HeaderSplit.stories.tsx +29 -0
  75. package/src/header/HeroNameBlock.jsx +71 -0
  76. package/src/header/HeroNameBlock.stories.tsx +37 -0
  77. package/src/header/NameStackElegant.jsx +104 -0
  78. package/src/header/NameStackElegant.stories.tsx +60 -0
  79. package/src/header/PageBreak.jsx +25 -0
  80. package/src/header/PageBreak.stories.tsx +22 -0
  81. package/src/header/SectionFlagTitle.jsx +87 -0
  82. package/src/header/SectionFlagTitle.stories.tsx +53 -0
  83. package/src/header/SectionRuleTitle.jsx +84 -0
  84. package/src/header/SectionRuleTitle.stories.tsx +52 -0
  85. package/src/header/index.jsx +18 -0
  86. package/src/helpers/calculations.js +428 -0
  87. package/src/index.js +253 -0
  88. package/src/languages/LanguageBar.jsx +90 -0
  89. package/src/languages/LanguageBar.stories.tsx +28 -0
  90. package/src/languages/LanguageGrid.jsx +118 -0
  91. package/src/languages/LanguageGrid.stories.tsx +33 -0
  92. package/src/languages/LanguageLevelBarLite.jsx +147 -0
  93. package/src/languages/LanguageLevelBarLite.stories.tsx +74 -0
  94. package/src/languages/ProficiencyScale.jsx +107 -0
  95. package/src/languages/ProficiencyScale.stories.tsx +30 -0
  96. package/src/languages/index.jsx +5 -0
  97. package/src/layouts/CardLayout.jsx +46 -0
  98. package/src/layouts/CardLayout.stories.tsx +272 -0
  99. package/src/layouts/FlexLayout.jsx +53 -0
  100. package/src/layouts/FlexLayout.stories.tsx +270 -0
  101. package/src/layouts/GridLayout.jsx +38 -0
  102. package/src/layouts/GridLayout.stories.tsx +183 -0
  103. package/src/layouts/SidebarLayout.jsx +63 -0
  104. package/src/layouts/SidebarLayout.stories.tsx +162 -0
  105. package/src/layouts/StackLayout.jsx +26 -0
  106. package/src/layouts/StackLayout.stories.tsx +192 -0
  107. package/src/layouts/TwoColumnMicroGrid.jsx +87 -0
  108. package/src/layouts/TwoColumnMicroGrid.stories.tsx +96 -0
  109. package/src/layouts/index.jsx +11 -0
  110. package/src/lists/AchievementListSpacious.jsx +81 -0
  111. package/src/lists/AchievementListSpacious.stories.tsx +49 -0
  112. package/src/lists/AchievementListTight.jsx +80 -0
  113. package/src/lists/AchievementListTight.stories.tsx +49 -0
  114. package/src/lists/BulletList.jsx +66 -0
  115. package/src/lists/BulletList.stories.tsx +38 -0
  116. package/src/lists/CheckList.jsx +94 -0
  117. package/src/lists/CheckList.stories.tsx +38 -0
  118. package/src/lists/CompactList.jsx +90 -0
  119. package/src/lists/CompactList.stories.tsx +34 -0
  120. package/src/lists/DefinitionKeyline.jsx +114 -0
  121. package/src/lists/DefinitionKeyline.stories.tsx +90 -0
  122. package/src/lists/HangingBulletList.jsx +82 -0
  123. package/src/lists/HangingBulletList.stories.tsx +50 -0
  124. package/src/lists/IconList.jsx +89 -0
  125. package/src/lists/IconList.stories.tsx +36 -0
  126. package/src/lists/ListDashCompact.jsx +69 -0
  127. package/src/lists/ListDashCompact.stories.tsx +60 -0
  128. package/src/lists/MiniDotLeaderList.jsx +69 -0
  129. package/src/lists/MiniDotLeaderList.stories.tsx +73 -0
  130. package/src/lists/NumberedList.jsx +74 -0
  131. package/src/lists/NumberedList.stories.tsx +39 -0
  132. package/src/lists/index.jsx +12 -0
  133. package/src/metadata/GreyLabelCaps.jsx +66 -0
  134. package/src/metadata/GreyLabelCaps.stories.tsx +40 -0
  135. package/src/metadata/InlineKicker.jsx +61 -0
  136. package/src/metadata/InlineKicker.stories.tsx +35 -0
  137. package/src/metadata/MetaRow.jsx +96 -0
  138. package/src/metadata/MetaRow.stories.tsx +38 -0
  139. package/src/metadata/SmallCapsHeading.jsx +75 -0
  140. package/src/metadata/SmallCapsHeading.stories.tsx +54 -0
  141. package/src/metadata/SubsectionLabel.jsx +92 -0
  142. package/src/metadata/SubsectionLabel.stories.tsx +40 -0
  143. package/src/metadata/index.jsx +10 -0
  144. package/src/primitives/AccentSidebarStripe.stories.tsx +65 -0
  145. package/src/primitives/AccentSidebarStripe.tsx +95 -0
  146. package/src/primitives/AccentTopRule.stories.tsx +102 -0
  147. package/src/primitives/AccentTopRule.tsx +103 -0
  148. package/src/primitives/Badge.jsx +125 -0
  149. package/src/primitives/Badge.stories.tsx +27 -0
  150. package/src/primitives/ContactInfo.jsx +133 -0
  151. package/src/primitives/ContactInfo.stories.tsx +30 -0
  152. package/src/primitives/DIVIDERS.md +333 -0
  153. package/src/primitives/DateRange.jsx +178 -0
  154. package/src/primitives/DateRange.stories.tsx +28 -0
  155. package/src/primitives/DottedDivider.stories.tsx +54 -0
  156. package/src/primitives/DottedDivider.tsx +102 -0
  157. package/src/primitives/InlineSeparatorPipe.jsx +64 -0
  158. package/src/primitives/InlineSeparatorPipe.stories.tsx +96 -0
  159. package/src/primitives/KeylineDivider.stories.tsx +48 -0
  160. package/src/primitives/KeylineDivider.tsx +80 -0
  161. package/src/primitives/Link.jsx +59 -0
  162. package/src/primitives/Link.stories.tsx +29 -0
  163. package/src/primitives/ListItem.jsx +127 -0
  164. package/src/primitives/ListItem.stories.tsx +27 -0
  165. package/src/primitives/RulesetStack.stories.tsx +85 -0
  166. package/src/primitives/RulesetStack.tsx +117 -0
  167. package/src/primitives/Section.jsx +37 -0
  168. package/src/primitives/Section.stories.tsx +28 -0
  169. package/src/primitives/SectionTitle.jsx +62 -0
  170. package/src/primitives/SectionTitle.stories.tsx +27 -0
  171. package/src/primitives/index.jsx +36 -0
  172. package/src/print/ColumnBreak.jsx +44 -0
  173. package/src/print/ColumnBreak.stories.tsx +22 -0
  174. package/src/print/KeepTogether.jsx +24 -0
  175. package/src/print/KeepTogether.stories.tsx +26 -0
  176. package/src/print/LetterheadBar.jsx +100 -0
  177. package/src/print/LetterheadBar.stories.tsx +141 -0
  178. package/src/print/PageFooterLine.jsx +93 -0
  179. package/src/print/PageFooterLine.stories.tsx +121 -0
  180. package/src/print/PageHeaderLine.jsx +59 -0
  181. package/src/print/PageHeaderLine.stories.tsx +108 -0
  182. package/src/print/PrintOnly.jsx +49 -0
  183. package/src/print/PrintOnly.stories.tsx +26 -0
  184. package/src/print/SoftShadowEmulation.jsx +88 -0
  185. package/src/print/SoftShadowEmulation.stories.tsx +214 -0
  186. package/src/print/index.jsx +8 -0
  187. package/src/profile/Avatar.jsx +66 -0
  188. package/src/profile/Avatar.stories.tsx +84 -0
  189. package/src/profile/ContactGrid.jsx +63 -0
  190. package/src/profile/ContactGrid.stories.tsx +33 -0
  191. package/src/profile/ProfileCard.jsx +73 -0
  192. package/src/profile/ProfileCard.stories.tsx +35 -0
  193. package/src/profile/SocialLinks.jsx +61 -0
  194. package/src/profile/SocialLinks.stories.tsx +33 -0
  195. package/src/profile/index.jsx +9 -0
  196. package/src/providers/ThemeProvider.jsx +56 -0
  197. package/src/providers/ThemeProvider.stories.tsx +149 -0
  198. package/src/publications/PortfolioGrid.jsx +122 -0
  199. package/src/publications/PortfolioGrid.stories.tsx +62 -0
  200. package/src/publications/ProjectCard.jsx +151 -0
  201. package/src/publications/ProjectCard.stories.tsx +36 -0
  202. package/src/publications/PublicationEntryPlain.jsx +127 -0
  203. package/src/publications/PublicationEntryPlain.stories.tsx +58 -0
  204. package/src/publications/PublicationItem.jsx +120 -0
  205. package/src/publications/PublicationItem.stories.tsx +32 -0
  206. package/src/publications/index.jsx +5 -0
  207. package/src/quotes/BlockQuote.jsx +55 -0
  208. package/src/quotes/BlockQuote.stories.tsx +33 -0
  209. package/src/quotes/PullQuote.jsx +70 -0
  210. package/src/quotes/PullQuote.stories.tsx +32 -0
  211. package/src/quotes/Testimonial.jsx +99 -0
  212. package/src/quotes/Testimonial.stories.tsx +36 -0
  213. package/src/quotes/index.jsx +4 -0
  214. package/src/skills/SkillBar.jsx +66 -0
  215. package/src/skills/SkillBar.stories.tsx +112 -0
  216. package/src/skills/SkillCategory.jsx +71 -0
  217. package/src/skills/SkillCategory.stories.tsx +197 -0
  218. package/src/skills/SkillCloud.jsx +53 -0
  219. package/src/skills/SkillCloud.stories.tsx +132 -0
  220. package/src/skills/SkillGroup.jsx +56 -0
  221. package/src/skills/SkillGroup.stories.tsx +162 -0
  222. package/src/skills/SkillPill.jsx +56 -0
  223. package/src/skills/SkillPill.stories.tsx +157 -0
  224. package/src/skills/SkillRating.jsx +60 -0
  225. package/src/skills/SkillRating.stories.tsx +115 -0
  226. package/src/skills/index.jsx +11 -0
  227. package/src/styles/tokens.css +139 -0
  228. package/src/tables/ComparisonTable.jsx +128 -0
  229. package/src/tables/ComparisonTable.stories.tsx +41 -0
  230. package/src/tables/DataTable.jsx +149 -0
  231. package/src/tables/DataTable.stories.tsx +64 -0
  232. package/src/tables/SkillMatrix.jsx +139 -0
  233. package/src/tables/SkillMatrix.stories.tsx +90 -0
  234. package/src/tables/index.jsx +4 -0
  235. package/src/tags/ToolTagRibbon.jsx +106 -0
  236. package/src/tags/ToolTagRibbon.stories.tsx +121 -0
  237. package/src/tags/index.jsx +5 -0
  238. package/src/timeline/TimelineInline.stories.tsx +83 -0
  239. package/src/timeline/TimelineInline.tsx +202 -0
  240. package/src/timeline/TimelineItem.jsx +106 -0
  241. package/src/timeline/TimelineItem.stories.tsx +64 -0
  242. package/src/timeline/TimelineRuleMinimal.stories.tsx +68 -0
  243. package/src/timeline/TimelineRuleMinimal.tsx +165 -0
  244. package/src/timeline/TimelineSection.jsx +21 -0
  245. package/src/timeline/TimelineSection.stories.tsx +44 -0
  246. package/src/timeline/index.jsx +9 -0
  247. package/src/tokens/index.js +164 -0
  248. package/src/typography/Heading.jsx +48 -0
  249. package/src/typography/Heading.stories.tsx +46 -0
  250. package/src/typography/HyphenationSafeParagraph.jsx +98 -0
  251. package/src/typography/HyphenationSafeParagraph.stories.tsx +151 -0
  252. package/src/typography/Label.jsx +38 -0
  253. package/src/typography/Label.stories.tsx +27 -0
  254. package/src/typography/QuoteStripe.jsx +78 -0
  255. package/src/typography/QuoteStripe.stories.tsx +63 -0
  256. package/src/typography/SectionIntroParagraph.jsx +62 -0
  257. package/src/typography/SectionIntroParagraph.stories.tsx +57 -0
  258. package/src/typography/Text.jsx +42 -0
  259. package/src/typography/Text.stories.tsx +35 -0
  260. package/src/typography/index.jsx +11 -0
  261. package/src/utils/Divider.jsx +32 -0
  262. package/src/utils/Divider.stories.tsx +24 -0
  263. package/src/utils/Flex.jsx +6 -0
  264. package/src/utils/Flex.stories.tsx +28 -0
  265. package/src/utils/Grid.jsx +6 -0
  266. package/src/utils/Grid.stories.tsx +28 -0
  267. package/src/utils/Spacer.jsx +18 -0
  268. package/src/utils/Spacer.stories.tsx +26 -0
  269. package/src/utils/index.jsx +9 -0
  270. package/src/utils/security.js +155 -0
  271. package/src/visuals/BackgroundPattern.jsx +65 -0
  272. package/src/visuals/BackgroundPattern.stories.tsx +27 -0
  273. package/src/visuals/BorderAccent.jsx +147 -0
  274. package/src/visuals/BorderAccent.stories.tsx +27 -0
  275. package/src/visuals/ColorBlock.jsx +60 -0
  276. package/src/visuals/ColorBlock.stories.tsx +27 -0
  277. package/src/visuals/DividerVariants.jsx +120 -0
  278. package/src/visuals/DividerVariants.stories.tsx +27 -0
  279. 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;