added markdown, organized templates, fixed email overflow issue in pikachu

This commit is contained in:
Amruth Pillai
2020-03-26 23:27:04 +05:30
parent 178d12fae9
commit 333e94cb32
12 changed files with 733 additions and 320 deletions

View File

@ -5,6 +5,7 @@ import set from 'lodash/set';
import TextField from '../../../shared/TextField';
import AppContext from '../../../context/AppContext';
import Checkbox from '../../../shared/Checkbox';
import TextArea from '../../../shared/TextArea';
const AwardsTab = ({ data, onChange }) => {
const context = useContext(AppContext);
@ -53,6 +54,7 @@ const AddItem = ({ dispatch }) => {
id: uuidv4(),
title: '',
subtitle: '',
description: '',
});
const onChange = (key, value) => setItem(set({ ...item }, key, value));
@ -72,6 +74,7 @@ const AddItem = ({ dispatch }) => {
id: uuidv4(),
title: '',
subtitle: '',
description: '',
});
setOpen(false);
@ -104,6 +107,13 @@ const AddItem = ({ dispatch }) => {
onChange={v => onChange('subtitle', v)}
/>
<TextArea
label="Description"
className="mb-6"
value={item.description}
onChange={v => onChange('description', v)}
/>
<button
type="button"
onClick={addItem}
@ -177,6 +187,13 @@ const Item = ({ item, index, onChange, dispatch, first, last }) => {
onChange={v => onChange(`${identifier}.subtitle`, v)}
/>
<TextArea
label="Description"
className="mb-6"
value={item.description}
onChange={v => onChange(`${identifier}.description`, v)}
/>
<div className="flex justify-between">
<button
type="button"

View File

@ -5,6 +5,7 @@ import set from 'lodash/set';
import TextField from '../../../shared/TextField';
import AppContext from '../../../context/AppContext';
import Checkbox from '../../../shared/Checkbox';
import TextArea from '../../../shared/TextArea';
const CertificationsTab = ({ data, onChange }) => {
const context = useContext(AppContext);
@ -53,6 +54,7 @@ const AddItem = ({ dispatch }) => {
id: uuidv4(),
title: '',
subtitle: '',
description: '',
});
const onChange = (key, value) => setItem(set({ ...item }, key, value));
@ -72,6 +74,7 @@ const AddItem = ({ dispatch }) => {
id: uuidv4(),
title: '',
subtitle: '',
description: '',
});
setOpen(false);
@ -104,6 +107,13 @@ const AddItem = ({ dispatch }) => {
onChange={v => onChange('subtitle', v)}
/>
<TextArea
label="Description"
className="mb-6"
value={item.description}
onChange={v => onChange('description', v)}
/>
<button
type="button"
onClick={addItem}
@ -177,6 +187,13 @@ const Item = ({ item, index, onChange, dispatch, first, last }) => {
onChange={v => onChange(`${identifier}.subtitle`, v)}
/>
<TextArea
label="Description"
className="mb-6"
value={item.description}
onChange={v => onChange(`${identifier}.description`, v)}
/>
<div className="flex justify-between">
<button
type="button"

View File

@ -26,7 +26,7 @@ const ObjectiveTab = ({ data, onChange }) => {
<TextArea
rows="15"
className="mb-6"
className="mb-4"
label="Objective"
placeholder="Looking for a challenging role in a reputable organization to utilize my technical, database, and management skills for the growth of the organization as well as to enhance my knowledge about new and emerging trends in the IT sector."
value={data.objective.body}