mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 10:24:48 +10:00
Merge pull request #599 from adamantike/allow-links-for-awards-and-certs
Allow links for certifications
This commit is contained in:
@@ -11,6 +11,7 @@ const initialValues = {
|
|||||||
title: '',
|
title: '',
|
||||||
issuer: '',
|
issuer: '',
|
||||||
date: '',
|
date: '',
|
||||||
|
url: '',
|
||||||
summary: '',
|
summary: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ const CertificateModal = () => {
|
|||||||
title: Yup.string().required(t('shared.forms.validation.required')),
|
title: Yup.string().required(t('shared.forms.validation.required')),
|
||||||
issuer: Yup.string().required(t('shared.forms.validation.required')),
|
issuer: Yup.string().required(t('shared.forms.validation.required')),
|
||||||
date: Yup.date().max(new Date()),
|
date: Yup.date().max(new Date()),
|
||||||
|
url: Yup.string().url(t('shared.forms.validation.url')),
|
||||||
summary: Yup.string(),
|
summary: Yup.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -56,6 +58,13 @@ const CertificateModal = () => {
|
|||||||
{...getFieldProps(formik, schema, 'date')}
|
{...getFieldProps(formik, schema, 'date')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Input
|
||||||
|
label={t('shared.forms.website')}
|
||||||
|
className="col-span-2"
|
||||||
|
placeholder="https://"
|
||||||
|
{...getFieldProps(formik, schema, 'url')}
|
||||||
|
/>
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
label={t('shared.forms.summary')}
|
label={t('shared.forms.summary')}
|
||||||
|
|||||||
@@ -7,7 +7,13 @@ const CertificationItem = ({ item, language }) => (
|
|||||||
<div>
|
<div>
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
<div className="flex flex-col text-left mr-2">
|
<div className="flex flex-col text-left mr-2">
|
||||||
<h6 className="font-semibold text-sm">{item.title}</h6>
|
{item.url ? (
|
||||||
|
<a href={item.url} target="_blank" rel="noopener noreferrer">
|
||||||
|
<h6 className="font-semibold text-sm">{item.title}</h6>
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
<h6 className="font-semibold text-sm">{item.title}</h6>
|
||||||
|
)}
|
||||||
<span className="text-xs">{item.issuer}</span>
|
<span className="text-xs">{item.issuer}</span>
|
||||||
</div>
|
</div>
|
||||||
{item.date && (
|
{item.date && (
|
||||||
|
|||||||
Reference in New Issue
Block a user