feat: cv styling changes
This commit is contained in:
parent
188edc999c
commit
94d013efb2
4 changed files with 59 additions and 58 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "www-aaronjy-me",
|
"name": "www-aaronjy-me",
|
||||||
"version": "2.4.0",
|
"version": "2.4.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
|
|
@ -51,15 +51,10 @@ function Resume({
|
||||||
position={exp.position}
|
position={exp.position}
|
||||||
start={exp.start}
|
start={exp.start}
|
||||||
end={exp.end}
|
end={exp.end}
|
||||||
|
skills={exp.skills}
|
||||||
>
|
>
|
||||||
{markdownToHtml(exp.description)}
|
{markdownToHtml(exp.description)}
|
||||||
</WorkExperience>
|
</WorkExperience>
|
||||||
{!!exp.skills?.length && (
|
|
||||||
<details className="hide-print">
|
|
||||||
<summary>Competencies</summary>
|
|
||||||
<>{exp.skills.sort().join(", ")}</>
|
|
||||||
</details>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
@ -107,50 +102,43 @@ function Resume({
|
||||||
|
|
||||||
export default Resume;
|
export default Resume;
|
||||||
|
|
||||||
function WorkExperience({ position, employer, start, end, children }) {
|
function WorkExperience({ position, employer, start, end, skills, children }) {
|
||||||
return (
|
return (
|
||||||
// <div className={style["work-experience"]}>
|
<>
|
||||||
// <div>
|
<table className={style.experienceTable}>
|
||||||
// <h3 id={position}>
|
<tbody>
|
||||||
// {position}
|
<tr>
|
||||||
// <br />
|
<td>
|
||||||
// <small>{employer}</small>
|
<span id={position} className={style.position}>
|
||||||
// </h3>
|
{position}
|
||||||
// <small>
|
</span>
|
||||||
// <time>{start}</time> - <time>{end}</time>
|
<br />
|
||||||
// </small>
|
<span className={style.employer}>{employer}</span>
|
||||||
// </div>
|
</td>
|
||||||
// <div
|
<td className="text-right">
|
||||||
// data-test="children"
|
<time>{start}</time> - <time>{end}</time>
|
||||||
// dangerouslySetInnerHTML={{ __html: children }}
|
</td>
|
||||||
// />
|
</tr>
|
||||||
// </div>
|
<tr>
|
||||||
|
<td colSpan={2}>
|
||||||
|
<div
|
||||||
|
data-test="children"
|
||||||
|
dangerouslySetInnerHTML={{ __html: children }}
|
||||||
|
className={style.experienceContent}
|
||||||
|
/>
|
||||||
|
|
||||||
<table className={style.experienceTable}>
|
{!!skills?.length && (
|
||||||
<tbody>
|
<div className={style.skillList}>
|
||||||
<tr>
|
{skills.sort().map((skill) => (
|
||||||
<td>
|
<span key={skill}>{skill}</span>
|
||||||
<span id={position} className={style.position}>
|
))}
|
||||||
{position}
|
</div>
|
||||||
</span>
|
)}
|
||||||
<br />
|
</td>
|
||||||
<span className={style.employer}>{employer}</span>
|
</tr>
|
||||||
</td>
|
</tbody>
|
||||||
<td className="text-right">
|
</table>
|
||||||
{/* <small> */}
|
<hr />
|
||||||
<time>{start}</time> - <time>{end}</time>
|
</>
|
||||||
{/* </small> */}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colSpan={2}>
|
|
||||||
<div
|
|
||||||
data-test="children"
|
|
||||||
dangerouslySetInnerHTML={{ __html: children }}
|
|
||||||
/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
.cvContent {
|
.cvContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
gap: 3rem;
|
gap: 0.5em;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,11 +30,28 @@
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cv ol,
|
.cvContent ol,
|
||||||
.cv ul {
|
.cvContent ul {
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.skillList {
|
||||||
|
font-size: 0.8em;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skillList span {
|
||||||
|
background-color: var(--dark);
|
||||||
|
color: var(--light);
|
||||||
|
padding: 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.experienceContent > p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
.cvContent {
|
.cvContent {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -47,10 +64,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
.cvContent {
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cvContent .experience {
|
.cvContent .experience {
|
||||||
flex-basis: 80%;
|
flex-basis: 80%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ td:first-child {
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-size: 12px;
|
font-size: 11.5px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue