- implement actions section

- implement settings section
This commit is contained in:
Amruth Pillai
2020-07-12 12:55:08 +05:30
parent 8972a96afd
commit f468ca73c3
25 changed files with 327 additions and 143 deletions

View File

@ -37,6 +37,7 @@ const Onyx = ({ data }) => {
return (
<PageContext.Provider value={{ data, heading: Heading }}>
<div
id="page"
className="p-10 rounded"
style={{
fontFamily: data.metadata.font,

View File

@ -17,7 +17,9 @@ const AwardItem = (x) => (
</h6>
)}
</div>
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
{x.summary && (
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
)}
</div>
);

View File

@ -17,7 +17,9 @@ const CertificationItem = (x) => (
</h6>
)}
</div>
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
{x.summary && (
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
)}
</div>
);

View File

@ -21,7 +21,9 @@ const EducationItem = (x) => (
<span className="text-sm font-medium">{x.gpa}</span>
</div>
</div>
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
{x.summary && (
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
)}
</div>
);

View File

@ -21,7 +21,9 @@ const ProjectItem = (x) => (
</h6>
)}
</div>
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
{x.summary && (
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
)}
</div>
);

View File

@ -9,7 +9,9 @@ const ReferenceItem = (x) => (
<span className="text-xs">{x.position}</span>
<span className="text-xs">{x.phone}</span>
<span className="text-xs">{x.email}</span>
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
{x.summary && (
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
)}
</div>
);

View File

@ -15,7 +15,7 @@ const SkillsA = () => {
return safetyCheck(data.skills) ? (
<div>
<Heading>{data.skills.heading}</Heading>
<div className="grid grid-cols-2 gap-2">
<div className="grid grid-cols-2 row-gap-2 col-gap-4">
{data.skills.items.map(SkillItem)}
</div>
</div>

View File

@ -16,7 +16,9 @@ const WorkItem = (x) => (
</h6>
)}
</div>
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
{x.summary && (
<ReactMarkdown className="markdown mt-2 text-sm" source={x.summary} />
)}
</div>
);