Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ const twitterDetails = { ... }
#### Resume upload
To upload your own resume, simply upload a pdf to `src/containers/greeting/resume` and rename the pdf to `resume.pdf`.

You can also choose to link to an online resume (e.g., in Google Drive) or use a local PDF file. To configure this, use the `useLocalResume` flag in the `greeting` object in `portfolio.js`:

- Set `useLocalResume: true` to use the local `resume.pdf` file.
- Set `useLocalResume: false` to use the `resumeLink` URL.

#### Using Emojis

For adding emoji 😃 into the texts in `Portfolio.js`, use the `emoji()` function and pass the text you need as an argument. This would help in keeping emojis compatible across different browsers and platforms.
Expand Down
10 changes: 9 additions & 1 deletion src/containers/greeting/Greeting.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,22 @@ export default function Greeting() {
<SocialMedia />
<div className="button-greeting-div">
<Button text="Contact me" href="#contact" />
{greeting.resumeLink && (
{greeting.useLocalResume ? (
<a
href={require("./resume.pdf")}
download="Resume.pdf"
className="download-link-button"
>
<Button text="Download my resume" />
</a>
) : (
greeting.resumeLink && (
<Button
text="See my resume"
newTab={true}
href={greeting.resumeLink}
/>
)
)}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const greeting = {
),
resumeLink:
"https://drive.google.com/file/d/1ofFdKF_mqscH8WvXkSObnVvC9kK7Ldlu/view?usp=sharing", // Set to empty to hide the button
useLocalResume: true, // Set to true to use local resume file
displayGreeting: true // Set false to hide this section, defaults to true
};

Expand Down