A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
Designed New Template: Celebi
Amruth Pillai44bf68ab391e
diff --git a/docs/changelog/README.md b/docs/changelog/README.mdindex cc152d706..580b3cfc0 100644--- a/docs/changelog/README.md+++ b/docs/changelog/README.md@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.## April 2020+### April 6, 2020++- Designed Celebi Template+### April 5, 2020- Added Print Dialog to set Quality & Print Type before Exporting PDFdiff --git a/docs/templates/README.md b/docs/templates/README.mdindex 962887bf8..ed6fde7be 100644--- a/docs/templates/README.md+++ b/docs/templates/README.md@@ -26,4 +26,8 @@ title: Templates<h2 id="glalie"><a href="#glalie" class="header-anchor">#</a> Glalie</h2><img src="./images/Glalie.png" /></div>+ <div>+ <h2 id="celebi"><a href="#celebi" class="header-anchor">#</a> Celebi</h2>+ <img src="./images/Celebi.png" />+ </div></div>diff --git a/docs/templates/images/Celebi.png b/docs/templates/images/Celebi.pngnew file mode 100644index 000000000..03be8f4b1Binary files /dev/null and b/docs/templates/images/Celebi.png differdiff --git a/src/templates/celebi/Celebi.js b/src/templates/celebi/Celebi.jsnew file mode 100644index 000000000..887e55dc8--- /dev/null+++ b/src/templates/celebi/Celebi.js@@ -0,0 +1,281 @@+import React, { useContext } from 'react';+import ReactMarkdown from 'react-markdown';++import AppContext from '../../context/AppContext';+import { hexToRgb } from '../../utils';++const styles = {+ image: {+ width: '100%',+ height: '160px',+ objectFit: 'cover',+ objectPosition: 'top center',+ },+ header: {+ position: 'absolute',+ left: 0,+ right: 0,+ zIndex: 0,+ display: 'flex',+ flexDirection: 'column',+ justifyContent: 'center',+ alignItems: 'start',+ color: 'white',+ backgroundColor: '#222',+ height: '160px',+ paddingLeft: '270px',+ },+ section: {+ marginTop: '167px',+ marginLeft: '20px',+ },+};++const Celebi = () => {+ const context = useContext(AppContext);+ const { state } = context;+ const { data, theme } = state;++ const { r, g, b } = hexToRgb(theme.colors.accent) || {};++ const Heading = ({ title, className }) => (+ <h5+ className={`my-2 text-lg uppercase font-semibold tracking-wider pb-1 border-b-2 border-gray-800 ${className}`}+ >+ {title}+ </h5>+ );++ const Photo = () =>+ data.profile.photo !== '' && (+ <img src={data.profile.photo} alt="Resume Photograph" style={styles.image} />+ );++ const Header = () => (+ <header style={styles.header}>+ <div className="ml-6">+ <h1 className="tracking-wide uppercase font-semibold" style={{ fontSize: '2.75em' }}>+ {data.profile.firstName} {data.profile.lastName}+ </h1>+ <h6 className="text-lg tracking-wider uppercase">{data.profile.subtitle}</h6>+ </div>+ </header>+ );++ const Objective = () =>+ data.objective &&+ data.objective.enable && (+ <div className="mb-6">+ <Heading title={data.objective.heading} />+ <ReactMarkdown className="my-3 mr-10 text-sm" source={data.objective.body} />+ </div>+ );++ const ContactItem = ({ label, value }) =>+ value && (+ <div className="mb-3">+ <h6 className="text-xs font-bold">{label}</h6>+ <p className="text-sm">{value}</p>+ </div>+ );++ const Contact = () => (+ <div className="mb-6">+ <Heading title="Contact" className="mt-8 w-3/4 mx-auto" />+ <div className="mb-3">+ <h6 className="text-xs font-bold">Address</h6>+ <p className="text-sm">{data.profile.address.line1}</p>+ <p className="text-sm">{data.profile.address.line2}</p>+ <p className="text-sm">{data.profile.address.line3}</p>+ </div>+ <ContactItem label="Phone" value={data.profile.phone} />+ <ContactItem label="Email Address" value={data.profile.email} />+ <ContactItem label="Website" value={data.profile.website} />+ </div>+ );++ const WorkItem = (x) => (+ <div key={x.title} className="my-3 mr-10">+ <div>+ <h6 className="font-semibold">{x.title}</h6>+ <p className="text-xs text-gray-800">+ {x.role} | {x.start} - {x.end}+ </p>+ </div>+ <ReactMarkdown className="mt-2 text-sm" source={x.description} />+ </div>+ );++ const Work = () =>+ data.work &&+ data.work.enable && (+ <div className="mb-6">+ <Heading title={data.work.heading} />+ {data.work.items.filter((x) => x.enable).map(WorkItem)}+ </div>+ );++ const EducationItem = (x) => (+ <div key={x.name} className="my-3 mr-10">+ <h6 className="font-semibold">{x.name}</h6>+ <p className="text-xs">{x.major}</p>+ <div className="text-xs">+ {x.start} - {x.end}+ </div>+ <ReactMarkdown className="mt-2 text-sm" source={x.description} />+ </div>+ );++ const Education = () =>+ data.education &&+ data.education.enable && (+ <div className="mb-6">+ <Heading title={data.education.heading} />+ {data.education.items.filter((x) => x.enable).map(EducationItem)}+ </div>+ );++ const Skills = () =>+ data.skills.enable && (+ <div className="mb-6">+ <Heading title="Skills" className="w-3/4 mx-auto" />+ <ul className="list-none text-sm">+ {data.skills.items.map((x) => (+ <li key="x" className="my-2">+ {x}+ </li>+ ))}+ </ul>+ </div>+ );++ const ReferenceItem = (x) => (+ <div key={x.id} className="flex flex-col">+ <h6 className="text-sm font-semibold">{x.name}</h6>+ <span className="text-sm">{x.position}</span>+ <span className="text-sm">{x.phone}</span>+ <span className="text-sm">{x.email}</span>+ <ReactMarkdown className="mt-2 text-sm" source={x.description} />+ </div>+ );++ const References = () =>+ data.references &&+ data.references.enable && (+ <div className="mb-6">+ <Heading title={data.references.heading} />+ <div className="grid grid-cols-2 col-gap-4 row-gap-2">+ {data.references.items.filter((x) => x.enable).map(ReferenceItem)}+ </div>+ </div>+ );++ const LanguageItem = (x) => (+ <div key={x.id} className="grid grid-cols-2 items-center py-2">+ <h6 className="text-xs font-medium text-left">{x.key}</h6>+ <div className="flex">+ {Array.from(Array(x.value)).map((_, i) => (+ <i key={i} className="material-icons text-lg" style={{ color: theme.colors.accent }}>+ star+ </i>+ ))}+ </div>+ </div>+ );++ const Languages = () =>+ data.languages &&+ data.languages.enable && (+ <div className="w-3/4 mx-auto mb-6">+ <Heading title={data.languages.heading} />+ <div>{data.languages.items.filter((x) => x.enable).map(LanguageItem)}</div>+ </div>+ );++ const AwardItem = (x) => (+ <div key={x.title} className="my-2">+ <h6 className="font-semibold">{x.title}</h6>+ <p className="text-xs">{x.subtitle}</p>+ <ReactMarkdown className="mt-2 text-sm" source={x.description} />+ </div>+ );++ const Awards = () =>+ data.awards &&+ data.awards.enable && (+ <div className="mb-6">+ <Heading light title={data.awards.heading} />+ {data.awards.items.filter((x) => x.enable).map(AwardItem)}+ </div>+ );++ const CertificationItem = (x) => (+ <div key={x.title} className="my-2">+ <h6 className="font-semibold">{x.title}</h6>+ <p className="text-xs">{x.subtitle}</p>+ <ReactMarkdown className="mt-2 text-sm" source={x.description} />+ </div>+ );++ const Certifications = () =>+ data.certifications &&+ data.certifications.enable && (+ <div className="mb-6">+ <Heading title={data.certifications.heading} className="w-3/4 mx-auto" />+ {data.certifications.items.filter((x) => x.enable).map(CertificationItem)}+ </div>+ );++ const ExtraItem = (x) => (+ <div key={x.id} className="my-3">+ <h6 className="text-xs font-bold">{x.key}</h6>+ <div className="text-sm">{x.value}</div>+ </div>+ );++ const Extras = () =>+ data.extras &&+ data.extras.enable && (+ <div className="mb-6">+ <Heading title={data.extras.heading} className="w-3/4 mx-auto" />+ {data.extras.items.filter((x) => x.enable).map(ExtraItem)}+ </div>+ );++ return (+ <div+ style={{+ fontFamily: theme.font.family,+ backgroundColor: theme.colors.background,+ color: theme.colors.primary,+ }}+ >+ <div className="grid grid-cols-12">+ <div+ className="sidebar col-span-4 pb-8 ml-8 z-10 text-center"+ style={{ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.1)` }}+ >+ <Photo />+ <Contact />+ <Skills />+ <Languages />+ <Certifications />+ <Extras />+ </div>+ <div className="col-span-8">+ <Header />++ <section className="py-4" style={styles.section}>+ <Objective />+ <Work />+ <Education />+ <Awards />+ <References />+ </section>+ </div>+ </div>+ </div>+ );+};++export default Celebi;diff --git a/src/templates/celebi/index.js b/src/templates/celebi/index.jsnew file mode 100644index 000000000..6f3eb775a--- /dev/null+++ b/src/templates/celebi/index.js@@ -0,0 +1,5 @@+import Celebi from './Celebi';+import image from './preview.png';++export const Image = image;+export default Celebi;diff --git a/src/templates/celebi/preview.png b/src/templates/celebi/preview.pngnew file mode 100644index 000000000..9dae2cc5eBinary files /dev/null and b/src/templates/celebi/preview.png differdiff --git a/src/templates/index.js b/src/templates/index.jsindex 825dc8757..bb88c5269 100644--- a/src/templates/index.js+++ b/src/templates/index.js@@ -3,6 +3,7 @@ import Pikachu, { Image as PikachuPreview } from './pikachu';import Gengar, { Image as GengarPreview } from './gengar';import Castform, { Image as CastformPreview } from './castform';import Glalie, { Image as GlaliePreview } from './glalie';+import Celebi, { Image as CelebiPreview } from './celebi';export default [{@@ -35,4 +36,10 @@ export default [component: Glalie,preview: GlaliePreview,},+ {+ key: 'celebi',+ name: 'Celebi',+ component: Celebi,+ preview: CelebiPreview,+ },];