-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to cell descriptions and structures
- Loading branch information
Showing
9 changed files
with
140 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,44 @@ | ||
import React from 'react'; | ||
|
||
const Cell = ({ data: { title, role, duration, image, invert, link, description } }) => ( | ||
<div className="cell"> | ||
<section className="cell-title"> | ||
<a href={link}> | ||
{image ? <img src={image} className={'cell-icon' + (invert ? ' dark-invert' : '')} alt={title} /> : null} | ||
</a> | ||
<div className="cell-header"> | ||
import List from './List'; | ||
import Paragraph from './Paragraph'; | ||
|
||
const Cell = ({ data: { title, role, duration, image, invert, link, description, skills } }) => { | ||
let cellDescription; | ||
|
||
if (description && description.type) { | ||
if (description.type == 'list') { | ||
cellDescription = <List content={description.content} />; | ||
} else if (description.type == 'paragraph') { | ||
cellDescription = <Paragraph content={description.content} />; | ||
} | ||
} else { | ||
cellDescription == null; | ||
} | ||
|
||
return ( | ||
<div className="cell"> | ||
<section className="cell-title"> | ||
<a href={link}> | ||
<h2 className="underline">{title}</h2> | ||
{image ? <img src={image} className={'cell-icon' + (invert ? ' dark-invert' : '')} alt={title} /> : null} | ||
</a> | ||
{role && duration ? ( | ||
<h3> | ||
{role}, {duration} | ||
</h3> | ||
) : null} | ||
</div> | ||
</section> | ||
<div className="cell-header"> | ||
<a href={link}> | ||
<h2 className="underline">{title}</h2> | ||
</a> | ||
{role && duration ? ( | ||
<h3> | ||
{role}, {duration} | ||
</h3> | ||
) : null} | ||
</div> | ||
</section> | ||
|
||
{cellDescription} | ||
|
||
{description ? ( | ||
<ul> | ||
{description.map((description, index) => { | ||
index++; | ||
return <li key={index}>{description}</li>; | ||
})} | ||
</ul> | ||
) : null} | ||
</div> | ||
); | ||
<h3 className="skills">{'Relevant Skills: ' + skills.join(', ')}</h3> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Cell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
const List = ({ content }) => { | ||
return ( | ||
<ul> | ||
{content.map((description, index) => { | ||
index++; | ||
return <li key={index}>{description}</li>; | ||
})} | ||
</ul> | ||
); | ||
}; | ||
|
||
export default List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
|
||
const Paragraph = ({ content }) => { | ||
return <p>{content}</p>; | ||
}; | ||
|
||
export default Paragraph; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#about { | ||
font-size: _size(about); | ||
} | ||
|
||
#kaj-text { | ||
margin: 0px; | ||
display: inline-flex; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ | |
width: $contentwidth; | ||
p { | ||
margin: 0; | ||
font-size: _size(about); | ||
color: var(--body-color); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters