Skip to content

Commit bd3f99e

Browse files
authored
Merge branch 'saadpasta:master' into master
2 parents cfc6e92 + fc69340 commit bd3f99e

9 files changed

Lines changed: 49 additions & 15 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is the main docker file configurations
22

33
# Official Node JS runtime as a parent image
4-
FROM node:10.16.0-alpine
4+
FROM node:20.0-alpine
55

66
# Set the working directory to ./app
77
WORKDIR /app

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ const contactInfo = { .... }
189189
const twitterDetails = { ... }
190190

191191
```
192+
#### Resume upload
193+
To upload your own resume, simply upload a pdf to `src/containers/greeting/resume` and rename the pdf to `resume.pdf`.
192194

193195
#### Using Emojis
194196

195197
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.
196198

197199
#### Customize Lottie Animations
198200

199-
You can choose a Lottie and download it in json format from from sites like [this](https://lottiefiles.com/). In `src/assets/lottie`, replace the Lottie json file you want to alter with the same file name. If you want to change the Lottie options, go to `src/components/displayLottie/DisplayLottie.js` and change the `defaultOptions` object, you can refer [lottie-react docs](https://www.npmjs.com/package/lottie-react) for more info on the `defaultOptions` object.
201+
You can choose a Lottie and download it in json format from sites like [this](https://lottiefiles.com/). In `src/assets/lottie`, replace the Lottie json file you want to alter with the same file name. If you want to change the Lottie options, go to `src/components/displayLottie/DisplayLottie.js` and change the `defaultOptions` object, you can refer [lottie-react docs](https://www.npmjs.com/package/lottie-react) for more info on the `defaultOptions` object.
200202

201203
#### Adding Twitter Time line to your Page
202204
Insert your Twitter username in `portfolio.js` to show your recent activity on your page.

src/components/footer/Footer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export default function Footer() {
1414
</p>
1515
<p className={isDark ? "dark-mode footer-text" : "footer-text"}>
1616
Theme by{" "}
17-
<a href="https://github.com/saadpasta/developerFolio">
17+
<a
18+
href="https://github.com/saadpasta/developerFolio"
19+
target="_blank"
20+
rel="noreferrer"
21+
>
1822
developerFolio
1923
</a>
2024
</p>

src/components/header/Header.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
openSource,
1111
blogSection,
1212
talkSection,
13-
achievementSection
13+
achievementSection,
14+
resumeSection
1415
} from "../../portfolio";
1516

1617
function Header() {
@@ -21,6 +22,7 @@ function Header() {
2122
const viewAchievement = achievementSection.display;
2223
const viewBlog = blogSection.display;
2324
const viewTalks = talkSection.display;
25+
const viewResume = resumeSection.display;
2426

2527
return (
2628
<Headroom>
@@ -69,6 +71,11 @@ function Header() {
6971
<a href="#talks">Talks</a>
7072
</li>
7173
)}
74+
{viewResume && (
75+
<li>
76+
<a href="#resume">Resume</a>
77+
</li>
78+
)}
7279
<li>
7380
<a href="#contact">Contact Me</a>
7481
</li>

src/containers/blogs/Blogs.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ export default function Blogs() {
1414
function extractTextContent(html) {
1515
return typeof html === "string"
1616
? html
17-
.split("p>")
18-
.filter(el => !el.includes(">"))
19-
.map(el => el.replace("</", ".").replace("<", ""))
17+
.split(/<\/p>/i)
18+
.map(part => part.split(/<p[^>]*>/i).pop())
19+
.filter(el => el.trim().length > 0)
20+
.map(el => el.replace(/<\/?[^>]+(>|$)/g, "").trim())
2021
.join(" ")
2122
: NaN;
2223
}

src/containers/greeting/Greeting.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import landingPerson from "../../assets/lottie/landingPerson";
66
import DisplayLottie from "../../components/displayLottie/DisplayLottie";
77
import SocialMedia from "../../components/socialMedia/SocialMedia";
88
import Button from "../../components/button/Button";
9-
109
import {illustration, greeting} from "../../portfolio";
1110
import StyleContext from "../../contexts/StyleContext";
1211

@@ -37,15 +36,18 @@ export default function Greeting() {
3736
>
3837
{greeting.subTitle}
3938
</p>
39+
<div id="resume" className="empty-div"></div>
4040
<SocialMedia />
4141
<div className="button-greeting-div">
4242
<Button text="Contact me" href="#contact" />
4343
{greeting.resumeLink && (
44-
<Button
45-
text="See my resume"
46-
newTab={true}
47-
href={greeting.resumeLink}
48-
/>
44+
<a
45+
href={require("./resume.pdf")}
46+
download="Resume.pdf"
47+
className="download-link-button"
48+
>
49+
<Button text="Download my resume" />
50+
</a>
4951
)}
5052
</div>
5153
</div>

src/containers/greeting/Greeting.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,17 @@
2929
flex: 1;
3030
margin-bottom: 30px;
3131
}
32+
33+
.empty-div {
34+
margin-bottom: 40px;
35+
}
36+
3237
.button-greeting-div {
3338
display: flex;
34-
margin-top: 20px;
39+
margin-top: 40px;
40+
}
41+
.download-link-button {
42+
text-decoration: none;
3543
}
3644

3745
.greeting-text {

src/containers/greeting/resume.pdf

4.99 KB
Binary file not shown.

src/portfolio.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,15 @@ const podcastSection = {
454454
display: true // Set false to hide this section, defaults to true
455455
};
456456

457+
// Resume Section
458+
const resumeSection = {
459+
title: "Resume",
460+
subtitle: "Feel free to download my resume",
461+
462+
// Please Provide with Your Podcast embeded Link
463+
display: true // Set false to hide this section, defaults to true
464+
};
465+
457466
const contactInfo = {
458467
title: emoji("Contact Me ☎️"),
459468
subtitle:
@@ -488,5 +497,6 @@ export {
488497
podcastSection,
489498
contactInfo,
490499
twitterDetails,
491-
isHireable
500+
isHireable,
501+
resumeSection
492502
};

0 commit comments

Comments
 (0)