Skip to content

Commit

Permalink
Add ability to disable images for manual resume export
Browse files Browse the repository at this point in the history
  • Loading branch information
Jwiggiff committed Feb 13, 2024
1 parent cf5f7d2 commit d6860ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions src/resume.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import ReactDOM from "react-dom/client";
import "./sass/resume.scss";
import { ReactMarkdown } from "react-markdown/lib/react-markdown";

const DISABLE_IMAGES = false;

function Resume() {
return (
<>
Expand All @@ -29,29 +31,35 @@ function Resume() {
</div>
<div className="links">
<a target="_blank" href={"https://" + config.url}>
<FontAwesomeIcon icon={faGlobe} /> {config.url}
{!DISABLE_IMAGES && <FontAwesomeIcon icon={faGlobe} />}
{config.url}
</a>
<div className="clear"></div>
<span>
<FontAwesomeIcon icon={faEnvelope} /> {config.email}
{!DISABLE_IMAGES && <FontAwesomeIcon icon={faEnvelope} />}
{config.email}
</span>
<div className="clear"></div>
<span>
<FontAwesomeIcon icon={faPhone} /> {config.phone}
{!DISABLE_IMAGES && <FontAwesomeIcon icon={faPhone} />}
{config.phone}
</span>
</div>
</div>
<div className="right">
<span>
{config.location} <FontAwesomeIcon icon={faLocationDot} />
{config.location}{" "}
{!DISABLE_IMAGES && <FontAwesomeIcon icon={faLocationDot} />}
</span>
<div className="clear"></div>
<a target="_blank" href={"https://" + config.linkedin}>
{config.linkedin} <FontAwesomeIcon icon={faLinkedin} />
{config.linkedin}{" "}
{!DISABLE_IMAGES && <FontAwesomeIcon icon={faLinkedin} />}
</a>
<div className="clear"></div>
<a target="_blank" href={"https://" + config.github}>
{config.github} <FontAwesomeIcon icon={faGithub} />
{config.github}{" "}
{!DISABLE_IMAGES && <FontAwesomeIcon icon={faGithub} />}
</a>
</div>
<div className="clear"></div>
Expand Down Expand Up @@ -107,7 +115,7 @@ function Resume() {
className={"experience" + (job.continued ? " continued" : "")}
>
<div className="heading">
{job.icon && (
{!DISABLE_IMAGES && job.icon && (
<a href={job.url} target="_blank" className="icon">
<img className="icon" src={job.icon} alt={job.organization} />
</a>
Expand Down Expand Up @@ -155,7 +163,7 @@ function Resume() {
.map((project, index) => (
<li key={index} className="project">
<h4>{project.title}</h4>
{project.url && (
{!DISABLE_IMAGES && project.url && (
<a target="_blank" href={project.url}>
<FontAwesomeIcon icon={faGithub} />
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/sass/resume.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ p.subtext {

.heading {
display: grid;
grid-template-columns: 2.5rem 1fr;
grid-template-columns: auto 1fr;
align-items: center;

.icon img {
Expand Down

0 comments on commit d6860ed

Please sign in to comment.