diff --git a/src/components/App/App.js b/src/components/App/App.js index aaec6ea9..d4b9bc7e 100644 --- a/src/components/App/App.js +++ b/src/components/App/App.js @@ -39,13 +39,15 @@ const App = () => {
-
+
{templates.find(x => theme.layout.toLowerCase() === x.key).component()}
diff --git a/src/i18n/index.js b/src/i18n/index.js index a5b81a03..c803681f 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -1,7 +1,7 @@ import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; -import resources from './locales'; +import resources from './source'; const languages = [ { diff --git a/src/i18n/source/index.js b/src/i18n/source/index.js index 943ca673..d96f4262 100644 --- a/src/i18n/source/index.js +++ b/src/i18n/source/index.js @@ -3,7 +3,9 @@ import leftSidebar from './leftSidebar'; import rightSidebar from './rightSidebar'; export default { - app, - leftSidebar, - rightSidebar, + en: { + app, + leftSidebar, + rightSidebar, + }, }; diff --git a/src/templates/glalie/Glalie.js b/src/templates/glalie/Glalie.js index 9b0afbfb..bbdd2d6f 100644 --- a/src/templates/glalie/Glalie.js +++ b/src/templates/glalie/Glalie.js @@ -1,4 +1,6 @@ import React, { useContext } from 'react'; +import ReactMarkdown from 'react-markdown'; + import AppContext from '../../context/AppContext'; import { hexToRgb } from '../../utils'; @@ -9,6 +11,247 @@ const Glalie = () => { const { r, g, b } = hexToRgb(theme.colors.accent) || {}; + const Photo = () => + data.profile.photo !== '' && ( + Resume Photograph + ); + + const FullName = () => ( +
+

{data.profile.firstName}

+

{data.profile.lastName}

+
+ ); + + const Subtitle = () => ( +
{data.profile.subtitle}
+ ); + + const Divider = () => ( +
+ ); + + const ContactItem = ({ title, value }) => + value && ( +
+
+ {title} +
+

{value}

+
+ ); + + const ContactInformation = () => ( +
+
+

+ flare +

+
+ +
+ + + + +
+ + home + +

{data.profile.address.line1}

+

{data.profile.address.line2}

+

{data.profile.address.line3}

+
+
+
+ ); + + const Heading = ({ title }) => ( +
+ {title} +
+ ); + + const Objective = () => + data.objective.enable && ( +
+ +

{data.objective.body}

+
+ ); + + const WorkItem = x => ( +
+
+
+
{x.title}
+

+ {x.role} / {x.start} - {x.end} +

+
+
+ +
+ ); + + const Work = () => + data.work && + data.work.enable && ( +
+ + {data.work.items.filter(x => x.enable).map(WorkItem)} +
+ ); + + const EducationItem = x => ( +
+
+
{x.name}
+

{x.major}

+

+ {x.start} - {x.end} +

+
+ +
+ ); + + const Education = () => + data.education && + data.education.enable && ( +
+ +
+ {data.education.items.filter(x => x.enable).map(EducationItem)} +
+
+ ); + + const AwardItem = x => ( +
+
{x.title}
+

{x.subtitle}

+ +
+ ); + + const Awards = () => + data.awards && + data.awards.enable && ( +
+ + {data.awards.items.filter(x => x.enable).map(AwardItem)} +
+ ); + + const CertificationItem = x => ( +
+
{x.title}
+

{x.subtitle}

+ +
+ ); + + const Certifications = () => + data.certifications && + data.certifications.enable && ( +
+ + {data.certifications.items.filter(x => x.enable).map(CertificationItem)} +
+ ); + + const SkillItem = x => ( +
  • + {x} +
  • + ); + + const Skills = () => + data.skills && + data.skills.enable && ( +
    + +
      {data.skills.items.map(SkillItem)}
    +
    + ); + + const LanguageItem = x => ( +
    +
    {x.key}
    +
    + {Array.from(Array(x.value)).map((_, i) => ( + + star + + ))} +
    +
    + ); + + const Languages = () => + data.languages && + data.languages.enable && ( +
    + +
    {data.languages.items.filter(x => x.enable).map(LanguageItem)}
    +
    + ); + + const ReferenceItem = x => ( +
    +
    {x.name}
    + {x.position} + {x.phone} + {x.email} + +
    + ); + + const References = () => + data.references && + data.references.enable && ( +
    + +
    + {data.references.items.filter(x => x.enable).map(ReferenceItem)} +
    +
    + ); + + const ExtraItem = x => ( + + {x.key} + {x.value} + + ); + + const Extras = () => + data.extras && + data.extras.enable && ( +
    + + + {data.extras.items.filter(x => x.enable).map(ExtraItem)} +
    +
    + ); + return (
    { }} >
    -
    Hello
    -
    World
    +
    +
    + + + +
    + + + + + + + + +
    + +
    +
    + + + + + + +
    +
    );