Skip to content

Commit 24efec3

Browse files
committed
updated the theme config and footer file
1 parent c207acc commit 24efec3

File tree

2 files changed

+29
-40
lines changed

2 files changed

+29
-40
lines changed

config/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ module.exports = {
6969
experiences: {
7070
tabPanelItems: [
7171
"Upstatement",
72-
"ProHero",
73-
"SeoClerk",
72+
"ProgrammingHero",
73+
"SEOClerks",
7474
"Fiverr",
75-
"HAcademy",
76-
"W3School",
75+
"HelloAcademy",
76+
"W3Schools",
7777
],
7878
tabPanelContents: [
7979
{
80-
name: "@Upstatement open source",
80+
name: "@Upstatement Open Source",
8181
start: "July 2021",
8282
end: "Present",
8383
works: [
@@ -87,7 +87,7 @@ module.exports = {
8787
],
8888
},
8989
{
90-
name: "@Programming hero teams",
90+
name: "@Programming Hero Teams",
9191
start: "January",
9292
end: "June 2021",
9393
works: [
@@ -97,26 +97,26 @@ module.exports = {
9797
],
9898
},
9999
{
100-
name: "@Search engine optimaization",
100+
name: "@Search Engine Optimaization",
101101
start: "October",
102102
end: "Desember 2020",
103103
works: [
104104
"I got an idea about digital marketing, I got an idea about search engine optimization and I worked at 'seoclerk.com' for three months.",
105105
"Here are some limitations such as Google Chrome, Microsoft Edge, Mozilla Firefox etc to work on the first page of the search page in different ways.",
106-
"To seo the website, different parts of the work are done, profile-backlinks, pdf-submission, guest-post, google-map-citation, web-2.0-backlink, mixed-backlink, and infographic-submission, etc.",
106+
"To SEO the website, different parts of the work are done, Local SEO, On-Page SEO, Off-Page SEO, Technical SEO, Profile Backlink, PDF Submission, Guest Post, Google Map Citation, Web 2.0 Backlink, Mixed Backlink, Infographic Submission, and Link Building etc.",
107107
],
108108
},
109109
{
110-
name: "@Fiverr (business website)",
110+
name: "@Fiverr (Business Website)",
111111
start: "July",
112112
end: "September 2020",
113113
works: [
114-
"It served as the first online source of income in my life when I got a general idea about php web developers from Hello Academy and also worked as a freelancer.",
114+
"It served as the first online source of income in my life when I got a general idea about php web developers from 'Hello Academy' and also worked as a freelancer.",
115115
"I also got a good idea about WordPress theme customization and built and customized several portfolio and blog sites.",
116116
],
117117
},
118118
{
119-
name: "@Hello academy teams",
119+
name: "@Hello Academy Teams",
120120
start: "January",
121121
end: "June 2020",
122122
works: [
@@ -126,7 +126,7 @@ module.exports = {
126126
],
127127
},
128128
{
129-
name: "@W3 school learning platform",
129+
name: "@W3 School Learning Platform",
130130
start: "October",
131131
end: "Desember 2019",
132132
works: [

layout/footer.js

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,23 @@ const StyledCredit = styled.div`
6969
`;
7070

7171
export default function Footer() {
72-
const [githubInfo, setGitHubInfo] = React.useState({
72+
const [githubInfo, setGithubInfo] = React.useState({
7373
stars: null,
7474
forks: null,
7575
});
7676

7777
React.useEffect(() => {
78+
// If not in Production then return
7879
if (process.env.NODE_ENV !== "production") {
7980
return;
8081
}
81-
fetch("https://api.github.com/repos/simons-devtools/next-app")
82+
83+
// If Production then fetch the Github Repo Info
84+
fetch("https://api.github.com/repos/simons-devtools/developer-portfolio")
8285
.then((response) => response.json())
8386
.then((json) => {
8487
const { stargazers_count, forks_count } = json;
85-
setGitHubInfo({
88+
setGithubInfo({
8689
stars: stargazers_count,
8790
forks: forks_count,
8891
});
@@ -107,31 +110,17 @@ export default function Footer() {
107110

108111
<StyledCredit tabindex="-1">
109112
<a href="https://github.com/simons-devtools/developer-portfolio">
110-
<div>Designed &amp; Built by Simon Hemrom</div>
111-
112-
{githubInfo.stars && githubInfo.forks ? (
113-
<div className="github-stats">
114-
<span>
115-
<Icon name="Star" />
116-
<span>{githubInfo.stars.toLocaleString()}</span>
117-
</span>
118-
<span>
119-
<Icon name="Fork" />
120-
<span>{githubInfo.forks.toLocaleString()}</span>
121-
</span>
122-
</div>
123-
) : (
124-
<div className="github-stats">
125-
<span>
126-
<Icon name="Star" />
127-
<span>0000</span>
128-
</span>
129-
<span>
130-
<Icon name="Fork" />
131-
<span>0000</span>
132-
</span>
133-
</div>
134-
)}
113+
<div>Designed &amp; Build by Simon Hemrom</div>
114+
<div className="github-stats">
115+
<span>
116+
<Icon name="Star" />
117+
<span>{githubInfo?.stars?.toLocaleString()}</span>
118+
</span>
119+
<span>
120+
<Icon name="Fork" />
121+
<span>{githubInfo?.forks?.toLocaleString()}</span>
122+
</span>
123+
</div>
135124
</a>
136125
</StyledCredit>
137126
</StyledFooter>

0 commit comments

Comments
 (0)