Merge branch 'develop' into l10n_develop

This commit is contained in:
Amruth Pillai
2020-04-11 19:46:52 +05:30
4 changed files with 34 additions and 23 deletions

View File

@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
## April 2020 ## April 2020
### April 11, 2020
- Added Language: Portuguese
### April 8, 2020 ### April 8, 2020
- Added Language: Spanish - Added Language: Spanish

View File

@ -32,6 +32,10 @@ const languages = [
code: 'es', code: 'es',
name: 'Spanish', name: 'Spanish',
}, },
{
code: 'pt',
name: 'Portuguese',
},
]; ];
i18n.use(initReactI18next).init({ i18n.use(initReactI18next).init({

View File

@ -1,5 +1,5 @@
{ {
"item": { "item": {
"placeholder": "Cooking" "placeholder": "Cozinheiro"
} }
} }

View File

@ -5,12 +5,6 @@ import AppContext from '../../context/AppContext';
import { hexToRgb } from '../../utils'; import { hexToRgb } from '../../utils';
const styles = { const styles = {
image: {
width: '100%',
height: '160px',
objectFit: 'cover',
objectPosition: 'top center',
},
header: { header: {
position: 'absolute', position: 'absolute',
left: 0, left: 0,
@ -48,7 +42,16 @@ const Celebi = () => {
const Photo = () => const Photo = () =>
data.profile.photo !== '' && ( data.profile.photo !== '' && (
<img src={data.profile.photo} alt="Resume Photograph" style={styles.image} /> <div className="relative z-40">
<img
className="w-full object-cover object-center"
src={data.profile.photo}
alt="Resume Photograph"
style={{
height: '160px',
}}
/>
</div>
); );
const Header = () => ( const Header = () => (
@ -94,7 +97,7 @@ const Celebi = () => {
</div> </div>
); );
const WorkItem = (x) => ( const WorkItem = x => (
<div key={x.title} className="my-3 mr-10"> <div key={x.title} className="my-3 mr-10">
<div> <div>
<h6 className="font-semibold">{x.title}</h6> <h6 className="font-semibold">{x.title}</h6>
@ -111,11 +114,11 @@ const Celebi = () => {
data.work.enable && ( data.work.enable && (
<div className="mb-6"> <div className="mb-6">
<Heading title={data.work.heading} /> <Heading title={data.work.heading} />
{data.work.items.filter((x) => x.enable).map(WorkItem)} {data.work.items.filter(x => x.enable).map(WorkItem)}
</div> </div>
); );
const EducationItem = (x) => ( const EducationItem = x => (
<div key={x.name} className="my-3 mr-10"> <div key={x.name} className="my-3 mr-10">
<h6 className="font-semibold">{x.name}</h6> <h6 className="font-semibold">{x.name}</h6>
<p className="text-xs">{x.major}</p> <p className="text-xs">{x.major}</p>
@ -131,7 +134,7 @@ const Celebi = () => {
data.education.enable && ( data.education.enable && (
<div className="mb-6"> <div className="mb-6">
<Heading title={data.education.heading} /> <Heading title={data.education.heading} />
{data.education.items.filter((x) => x.enable).map(EducationItem)} {data.education.items.filter(x => x.enable).map(EducationItem)}
</div> </div>
); );
@ -140,7 +143,7 @@ const Celebi = () => {
<div className="mb-6"> <div className="mb-6">
<Heading title="Skills" className="w-3/4 mx-auto" /> <Heading title="Skills" className="w-3/4 mx-auto" />
<ul className="list-none text-sm"> <ul className="list-none text-sm">
{data.skills.items.map((x) => ( {data.skills.items.map(x => (
<li key="x" className="my-2"> <li key="x" className="my-2">
{x} {x}
</li> </li>
@ -149,7 +152,7 @@ const Celebi = () => {
</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-semibold">{x.name}</h6> <h6 className="text-sm font-semibold">{x.name}</h6>
<span className="text-sm">{x.position}</span> <span className="text-sm">{x.position}</span>
@ -165,12 +168,12 @@ const Celebi = () => {
<div className="mb-6"> <div className="mb-6">
<Heading title={data.references.heading} /> <Heading title={data.references.heading} />
<div className="grid grid-cols-2 col-gap-4 row-gap-2"> <div className="grid grid-cols-2 col-gap-4 row-gap-2">
{data.references.items.filter((x) => x.enable).map(ReferenceItem)} {data.references.items.filter(x => x.enable).map(ReferenceItem)}
</div> </div>
</div> </div>
); );
const LanguageItem = (x) => ( const LanguageItem = x => (
<div key={x.id} className="grid grid-cols-2 items-center py-2"> <div key={x.id} className="grid grid-cols-2 items-center py-2">
<h6 className="text-xs font-medium text-left">{x.key}</h6> <h6 className="text-xs font-medium text-left">{x.key}</h6>
<div className="flex"> <div className="flex">
@ -188,11 +191,11 @@ const Celebi = () => {
data.languages.enable && ( data.languages.enable && (
<div className="w-3/4 mx-auto mb-6"> <div className="w-3/4 mx-auto mb-6">
<Heading title={data.languages.heading} /> <Heading title={data.languages.heading} />
<div>{data.languages.items.filter((x) => x.enable).map(LanguageItem)}</div> <div>{data.languages.items.filter(x => x.enable).map(LanguageItem)}</div>
</div> </div>
); );
const AwardItem = (x) => ( const AwardItem = x => (
<div key={x.title} className="my-2"> <div key={x.title} className="my-2">
<h6 className="font-semibold">{x.title}</h6> <h6 className="font-semibold">{x.title}</h6>
<p className="text-xs">{x.subtitle}</p> <p className="text-xs">{x.subtitle}</p>
@ -205,11 +208,11 @@ const Celebi = () => {
data.awards.enable && ( data.awards.enable && (
<div className="mb-6"> <div className="mb-6">
<Heading light title={data.awards.heading} /> <Heading light title={data.awards.heading} />
{data.awards.items.filter((x) => x.enable).map(AwardItem)} {data.awards.items.filter(x => x.enable).map(AwardItem)}
</div> </div>
); );
const CertificationItem = (x) => ( const CertificationItem = x => (
<div key={x.title} className="my-2"> <div key={x.title} className="my-2">
<h6 className="font-semibold">{x.title}</h6> <h6 className="font-semibold">{x.title}</h6>
<p className="text-xs">{x.subtitle}</p> <p className="text-xs">{x.subtitle}</p>
@ -222,11 +225,11 @@ const Celebi = () => {
data.certifications.enable && ( data.certifications.enable && (
<div className="mb-6"> <div className="mb-6">
<Heading title={data.certifications.heading} className="w-3/4 mx-auto" /> <Heading title={data.certifications.heading} className="w-3/4 mx-auto" />
{data.certifications.items.filter((x) => x.enable).map(CertificationItem)} {data.certifications.items.filter(x => x.enable).map(CertificationItem)}
</div> </div>
); );
const ExtraItem = (x) => ( const ExtraItem = x => (
<div key={x.id} className="my-3"> <div key={x.id} className="my-3">
<h6 className="text-xs font-bold">{x.key}</h6> <h6 className="text-xs font-bold">{x.key}</h6>
<div className="text-sm">{x.value}</div> <div className="text-sm">{x.value}</div>
@ -238,7 +241,7 @@ const Celebi = () => {
data.extras.enable && ( data.extras.enable && (
<div className="mb-6"> <div className="mb-6">
<Heading title={data.extras.heading} className="w-3/4 mx-auto" /> <Heading title={data.extras.heading} className="w-3/4 mx-auto" />
{data.extras.items.filter((x) => x.enable).map(ExtraItem)} {data.extras.items.filter(x => x.enable).map(ExtraItem)}
</div> </div>
); );