-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from jerboa88/150-create-resume-template
150 create resume template
- Loading branch information
Showing
11 changed files
with
140 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Layout component that provides basic styles for the resume page | ||
--------------------------------------------------------------- | ||
*/ | ||
|
||
import { MotionConfig } from 'framer-motion'; | ||
import { type PropsWithChildren, StrictMode } from 'react'; | ||
import { SPRING_TRANSITION_PROPS } from '../../common/constants'; | ||
import { type PropsWithClassName, ThemeType } from '../../common/types'; | ||
import { getClassNameProps } from '../../common/utilities'; | ||
import { ResumeHeader } from './resume-header'; | ||
|
||
// Types | ||
|
||
interface Props extends PropsWithClassName, PropsWithChildren {} | ||
|
||
export function ResumePageLayout({ className, children }: Props) { | ||
const classNameProps = getClassNameProps( | ||
'flex-col gap-32 p-[1cm] justify-between items-center mx-auto text-base min-h-svh scroll-smooth selection:bg-primary selection:text-primary-content', | ||
className, | ||
); | ||
|
||
return ( | ||
<StrictMode> | ||
<MotionConfig {...SPRING_TRANSITION_PROPS} reducedMotion="user"> | ||
{/* Page body */} | ||
<div data-theme={ThemeType.Light} {...classNameProps}> | ||
<ResumeHeader /> | ||
{children} | ||
</div> | ||
</MotionConfig> | ||
</StrictMode> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
A single resume entry for a role, project, etc. | ||
----------------------------------------------- | ||
*/ | ||
|
||
import type { | ||
CityAndStateString, | ||
SentenceString, | ||
UrlString, | ||
} from '../common/types'; | ||
import { LinkWrapper } from './links/link-wrapper'; | ||
import { Article } from './text/article'; | ||
import { DateRange } from './text/date-range'; | ||
import { SubsectionHeading } from './text/subsection-heading'; | ||
|
||
interface Props { | ||
title: Capitalize<string>; | ||
tagline: Capitalize<string>; | ||
bullets: SentenceString[]; | ||
url?: UrlString; | ||
startDate?: Date; | ||
endDate?: Date; | ||
location?: CityAndStateString; | ||
} | ||
|
||
export function ResumeEntry({ | ||
title, | ||
tagline, | ||
bullets, | ||
url, | ||
startDate, | ||
endDate, | ||
location, | ||
}: Props) { | ||
return ( | ||
<div className="flex flex-row justify-between items-start gap-4"> | ||
<div className="flex flex-col"> | ||
<div className="flex flex-row items-center gap-4"> | ||
<LinkWrapper to={url}> | ||
<SubsectionHeading>{title}</SubsectionHeading> | ||
</LinkWrapper> | ||
<span className="italic">{tagline}</span> | ||
</div> | ||
<Article> | ||
<ul> | ||
{bullets.map((bullet) => ( | ||
<li key={bullet}>{bullet}</li> | ||
))} | ||
</ul> | ||
</Article> | ||
</div> | ||
<div> | ||
<div className="max-lg:pl-1 flex flex-col items-end"> | ||
<DateRange | ||
startDate={startDate} | ||
endDate={endDate} | ||
className="text-nowrap" | ||
/> | ||
{location && <span>{location}</span>} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters