-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:organize files-dynamically fills content from config.json
- Loading branch information
1 parent
db3abab
commit 5df424a
Showing
6 changed files
with
77 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"info": { | ||
"name": "Mahmoud Alnakeeb", | ||
"role": "Backend Developer", | ||
"company": "", | ||
"about": "Starting my backend developer journey in 2020, I immersed myself in JavaScript and Node.js, cultivating a strong foundation. Since then, I've embraced continuous learning, completing web development courses and engaging in diverse projects. Venturing into Rust in 2024 was a pivotal decision, broadening my skill set and igniting new passions. Now, I'm on the lookout for exciting opportunities in backend development where I can apply my expertise and contribute to cutting-edge projects. Eager to embark on the next chapter of my professional journey, I'm ready to tackle challenges and make meaningful contributions." | ||
}, | ||
"socials": { | ||
"linkedin": "https://www.linkedin.com/in/mahmoud-alnakeeb/", | ||
"github": "https://github.com/mahmoudalnkeeb", | ||
"email": "mailto:[email protected]", | ||
"resume": "https://docs.google.com/document/d/e/2PACX-1vSnLDXFRBODqU7dM_9OQVxKB2oWml_EEz0lbhQaKrDtNF43CnzufAWq3BbeMf2jl54F-utAnbD9heD3/pub" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Mahmoud Alnakeeb - Backend Developer</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
<link rel="stylesheet" href="./css/style.css" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
|
@@ -22,9 +22,12 @@ | |
<body> | ||
<canvas id="background"></canvas> | ||
<main> | ||
<h1>Mahmoud Alnakeeb</h1> | ||
<span class="role">Backend Developer</span> | ||
<p class="bio"> | ||
<h1 id="name">Mahmoud Alnakeeb</h1> | ||
<div class="job-title"> | ||
<span class="role" id="role">Backend Developer</span> | ||
<span class="company company-empty" id="company"></span> | ||
</div> | ||
<p class="bio" id="about"> | ||
Starting my backend developer journey in 2020, I immersed myself in | ||
JavaScript and Node.js, cultivating a strong foundation. Since then, | ||
I've embraced continuous learning, completing web development courses | ||
|
@@ -38,33 +41,29 @@ <h1>Mahmoud Alnakeeb</h1> | |
</p> | ||
<ul class="socials"> | ||
<li class="in"> | ||
<a | ||
target="_blank" | ||
href="https://www.linkedin.com/in/mahmoud-alnakeeb/" | ||
> | ||
<a target="_blank" id="inLink"> | ||
<i class="fa-brands fa-linkedin"></i> | ||
</a> | ||
</li> | ||
<li class="github"> | ||
<a target="_blank" href="https://github.com/mahmoudalnkeeb"> | ||
<a target="_blank" id="githubLink"> | ||
<i class="fa-brands fa-square-github"></i> | ||
</a> | ||
</li> | ||
<li class="mail"> | ||
<a target="_blank" href="mailto:[email protected]"> | ||
<a target="_blank" id="emailLink"> | ||
<i class="fa-solid fa-at"></i> | ||
</a> | ||
</li> | ||
<li class="resume"> | ||
<a | ||
href="https://docs.google.com/document/d/e/2PACX-1vSnLDXFRBODqU7dM_9OQVxKB2oWml_EEz0lbhQaKrDtNF43CnzufAWq3BbeMf2jl54F-utAnbD9heD3/pub" | ||
> | ||
<a id="resumeLink"> | ||
<i class="fa-solid fa-file-alt"></i> | ||
</a> | ||
</li> | ||
</ul> | ||
</main> | ||
|
||
<script src="script.js"></script> | ||
<script src="./js/script.js" type="module"></script> | ||
<script src="./js/cursor.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const anchors = [ | ||
{ name: "linkedin", element: document.getElementById("inLink") }, | ||
{ name: "github", element: document.getElementById("githubLink") }, | ||
{ name: "email", element: document.getElementById("emailLink") }, | ||
{ name: "resume", element: document.getElementById("resumeLink") }, | ||
]; | ||
const nameElement = document.getElementById("name"); | ||
const roleElement = document.getElementById("role"); | ||
const companyElement = document.getElementById("company"); | ||
const aboutElement = document.getElementById("about"); | ||
|
||
fetch("../config.json").then(async (res) => { | ||
const { info, socials } = await res.json(); | ||
nameElement.innerText = info.name; | ||
roleElement.innerText = info.role; | ||
if (!!info.company) { | ||
companyElement.classList.remove('company-empty') | ||
companyElement.innerText = info.company; | ||
} | ||
anchors.forEach((anchor) => { | ||
anchor.element.setAttribute("href", socials[`${anchor.name}`]); | ||
}); | ||
}); |