mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
added languages and references support to Gengar
This commit is contained in:
@ -54,7 +54,7 @@ const Gengar = () => {
|
|||||||
|
|
||||||
const Objective = () =>
|
const Objective = () =>
|
||||||
data.objective.enable && (
|
data.objective.enable && (
|
||||||
<div className="h-full flex flex-col justify-center items-start">
|
<div className="flex flex-col justify-center items-start mb-6">
|
||||||
<Heading title={data.objective.heading} />
|
<Heading title={data.objective.heading} />
|
||||||
<ReactMarkdown className="text-sm" source={data.objective.body} />
|
<ReactMarkdown className="text-sm" source={data.objective.body} />
|
||||||
</div>
|
</div>
|
||||||
@ -68,7 +68,7 @@ const Gengar = () => {
|
|||||||
|
|
||||||
const Skills = () =>
|
const Skills = () =>
|
||||||
data.skills.enable && (
|
data.skills.enable && (
|
||||||
<div className="mb-8">
|
<div className="mb-6">
|
||||||
<Heading title={data.skills.heading} />
|
<Heading title={data.skills.heading} />
|
||||||
<ul>{data.skills.items.map(SkillItem)}</ul>
|
<ul>{data.skills.items.map(SkillItem)}</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -140,6 +140,24 @@ const Gengar = () => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const ReferenceItem = x => (
|
||||||
|
<div key={x.id} className="flex flex-col">
|
||||||
|
<h6 className="text-sm font-medium">{x.name}</h6>
|
||||||
|
<span className="text-xs">{x.position}</span>
|
||||||
|
<span className="text-xs">{x.phone}</span>
|
||||||
|
<span className="text-xs">{x.email}</span>
|
||||||
|
<ReactMarkdown className="mt-2 text-sm" source={x.description} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
const References = () =>
|
||||||
|
data.references.enable && (
|
||||||
|
<div>
|
||||||
|
<Heading title={data.references.heading} />
|
||||||
|
<div className="grid grid-cols-2 gap-6">{data.references.items.map(ReferenceItem)}</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
const WorkItem = x => (
|
const WorkItem = x => (
|
||||||
<div key={x.title} className="mb-3">
|
<div key={x.title} className="mb-3">
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
@ -163,20 +181,39 @@ const Gengar = () => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const LanguageItem = x => (
|
||||||
|
<div key={x.id} className="grid grid-cols-2 items-center py-2">
|
||||||
|
<h6 className="text-sm font-medium">{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.enable && (
|
||||||
|
<div>
|
||||||
|
<Heading title={data.languages.heading} />
|
||||||
|
<div className="mb-6">{data.languages.items.map(LanguageItem)}</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
const ExtraItem = x => (
|
const ExtraItem = x => (
|
||||||
<tr key={x.key}>
|
<div key={x.key} className="text-sm my-1">
|
||||||
<td className="border font-medium px-4 py-2 text-sm">{x.key}</td>
|
<h6 className="text-xs font-bold">{x.key}</h6>
|
||||||
<td className="border px-4 py-2 text-sm">{x.value}</td>
|
<h6>{x.value}</h6>
|
||||||
</tr>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
const Extras = () =>
|
const Extras = () =>
|
||||||
data.extras.enable && (
|
data.extras.enable && (
|
||||||
<div>
|
<div>
|
||||||
<Heading title={data.extras.heading} />
|
<Heading title={data.extras.heading} />
|
||||||
<table className="table-auto">
|
<div className="grid grid-cols-2">{data.extras.items.map(ExtraItem)}</div>
|
||||||
<tbody>{data.extras.items.map(ExtraItem)}</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -188,9 +225,9 @@ const Gengar = () => {
|
|||||||
color: theme.colors.primary,
|
color: theme.colors.primary,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="grid grid-cols-5">
|
<div className="grid grid-cols-12">
|
||||||
<div
|
<div
|
||||||
className="col-span-2 px-6 py-8"
|
className="col-span-4 px-6 py-8"
|
||||||
style={{ backgroundColor: theme.colors.accent, color: theme.colors.background }}
|
style={{ backgroundColor: theme.colors.accent, color: theme.colors.background }}
|
||||||
>
|
>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
@ -207,26 +244,31 @@ const Gengar = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="col-span-3 px-6 py-8"
|
className="col-span-8 px-6 py-8"
|
||||||
style={{ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.1)` }}
|
style={{ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.1)` }}
|
||||||
>
|
>
|
||||||
<Objective />
|
<Objective />
|
||||||
|
<Extras />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="col-span-2 px-6 py-8"
|
className="col-span-4 px-6 py-8"
|
||||||
style={{ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.1)` }}
|
style={{ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.1)` }}
|
||||||
>
|
>
|
||||||
<Skills />
|
<Skills />
|
||||||
|
<Languages />
|
||||||
<Education />
|
<Education />
|
||||||
|
|
||||||
<Certifications />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="col-span-3 px-6 py-8">
|
<div className="col-span-8 px-6 py-8">
|
||||||
<Work />
|
<Work />
|
||||||
<Awards />
|
|
||||||
<Extras />
|
<div className="grid grid-cols-2 gap-6">
|
||||||
|
<Awards />
|
||||||
|
<Certifications />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<References />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -68,19 +68,6 @@ const Pikachu = () => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
const LanguageItem = x => (
|
|
||||||
<div key={x.id} className="grid grid-cols-2 items-center py-2">
|
|
||||||
<h6 className="text-sm font-medium">{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 ReferenceItem = x => (
|
const ReferenceItem = x => (
|
||||||
<div key={x.id} className="flex flex-col">
|
<div key={x.id} className="flex flex-col">
|
||||||
<h6 className="text-sm font-medium">{x.name}</h6>
|
<h6 className="text-sm font-medium">{x.name}</h6>
|
||||||
@ -99,6 +86,19 @@ const Pikachu = () => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const LanguageItem = x => (
|
||||||
|
<div key={x.id} className="grid grid-cols-2 items-center py-2">
|
||||||
|
<h6 className="text-sm font-medium">{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 = () =>
|
const Languages = () =>
|
||||||
data.languages.enable && (
|
data.languages.enable && (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user