-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,451 additions
and
462 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,84 @@ | ||
<style> | ||
img { | ||
border-radius: 100%; | ||
display: block; | ||
margin: 0; | ||
width: 60px; | ||
} | ||
|
||
h2 { | ||
margin: 0; | ||
} | ||
</style> | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/3695043?v=4) | ||
|
||
## [Zalitoar](https://github.com/Zalitoar) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/87725395?v=4) | ||
|
||
## [afcirillo96](https://github.com/afcirillo96) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/3924657?v=4) | ||
|
||
## [daf111](https://github.com/daf111) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/49733149?v=4) | ||
|
||
## [damianlopez95](https://github.com/damianlopez95) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/61470409?v=4) | ||
|
||
## [andreazomoza](https://github.com/andreazomoza) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/95931791?v=4) | ||
|
||
## [GSC996](https://github.com/GSC996) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/9384999?v=4) | ||
|
||
## [gvarela1981](https://github.com/gvarela1981) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/16062027?v=4) | ||
|
||
## [yamilvernet](https://github.com/yamilvernet) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/47434650?v=4) | ||
|
||
## [lucasvallejo](https://github.com/lucasvallejo) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/32717?v=4) | ||
|
||
## [kant](https://github.com/kant) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/39769968?v=4) | ||
|
||
## [hcastellaro](https://github.com/hcastellaro) | ||
|
||
--- | ||
|
||
![profile_img](https://avatars.githubusercontent.com/u/69722315?v=4) | ||
|
||
## [InMunken](https://github.com/InMunken) | ||
|
||
--- |
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
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,167 @@ | ||
class UserInterface { | ||
constructor() { | ||
|
||
} | ||
|
||
createElement() { | ||
|
||
} | ||
|
||
remove() { | ||
|
||
} | ||
|
||
} | ||
|
||
/** | ||
* Represents the About Us modal in the user interface. | ||
* @extends UserInterface | ||
*/ | ||
class AboutUsModal extends UserInterface { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Creates the About Us modal element and appends it to the document body. | ||
* @param {Array} tabs - The array of tab objects. | ||
*/ | ||
createElement(tabs) { | ||
const principalContainer = document.createElement("div"); | ||
principalContainer.id = "whole-about"; | ||
|
||
const aboutHeader = document.createElement("div"); | ||
aboutHeader.className = "about-header"; | ||
|
||
const aboutLogo = document.createElement("img"); | ||
aboutLogo.src = "src/styles/images/argenmap-banner.webp"; | ||
aboutLogo.className = "about-logo"; | ||
|
||
const aboutExitBtn = document.createElement("a"); | ||
aboutExitBtn.id = "aboutExitBtn"; | ||
aboutExitBtn.classList = "about-exit"; | ||
aboutExitBtn.innerHTML = '<i class="fa fa-times"></i>'; | ||
aboutExitBtn.onclick = () => { | ||
const notiDots = document.querySelectorAll(".notification-dot"); | ||
notiDots.forEach((dot) => { dot.remove() }); | ||
principalContainer.remove(); | ||
this.isVisible = false; | ||
}; | ||
|
||
const aboutMainSection = document.createElement("div"); | ||
aboutMainSection.className = "about-main-section"; | ||
|
||
const aboutTabsContainer = document.createElement("div"); | ||
aboutTabsContainer.className = "about-tabs-bar"; | ||
|
||
aboutHeader.appendChild(aboutLogo); | ||
aboutHeader.appendChild(aboutExitBtn); | ||
|
||
principalContainer.appendChild(aboutHeader); | ||
aboutMainSection.appendChild(aboutTabsContainer); | ||
principalContainer.appendChild(aboutMainSection); | ||
|
||
document.body.appendChild(principalContainer); | ||
|
||
tabs.forEach((tab, i) => { | ||
const tabItem = new AboutUsTab(); | ||
tabItem.createElement(tab, i); | ||
}); | ||
|
||
const tabContent = new AboutUsTab(); | ||
|
||
const readmeContainer = tabContent.createReadmeContainer(); | ||
const functionContainer = tabContent.createFunctionsContainer(); | ||
const contributorContainer = tabContent.createContributorsContainer(); | ||
|
||
aboutMainSection.appendChild(readmeContainer); | ||
aboutMainSection.appendChild(functionContainer); | ||
aboutMainSection.appendChild(contributorContainer); | ||
} | ||
} | ||
|
||
/** | ||
* Represents the About Us tab in the user interface. | ||
* @extends UserInterface | ||
*/ | ||
class AboutUsTab extends UserInterface { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Creates and appends a tab element to the about-tabs-bar container. | ||
* @param {Object} tab - The tab object containing name and id properties. | ||
* @param {number} i - The index of the tab. | ||
*/ | ||
createElement(tab, i) { | ||
const tabElement = document.createElement('div'); | ||
tabElement.classList.add('tab'); | ||
|
||
if (tab.name) { | ||
tabElement.innerHTML = tab.name; | ||
tabElement.id = tab.id; | ||
} else { | ||
tabElement.innerHTML = "TODPN"; // Te Olvidaste De Ponerle Nombre | ||
} | ||
|
||
tabElement.addEventListener('click', () => { | ||
modalAboutUs.showTab(i); | ||
}); | ||
|
||
document.querySelector(".about-tabs-bar").appendChild(tabElement); | ||
} | ||
|
||
/** | ||
* Creates the readme container element. | ||
* @returns {HTMLElement} - The created readme container element. | ||
*/ | ||
createReadmeContainer() { | ||
const readmeContainer = document.createElement('div'); | ||
readmeContainer.classList.add('content-about-tab', 'content-about-deactivate', 'readme-container'); | ||
readmeContainer.id = "readme-container"; | ||
|
||
const repoIndication = document.createElement("p"); | ||
repoIndication.textContent = "Repositorio en GitHub"; | ||
repoIndication.style.margin = "0"; | ||
|
||
const gitHubMark = document.createElement("img"); | ||
gitHubMark.src = "src/styles/images/github-mark-white.png"; | ||
gitHubMark.alt = "GitHub Logo"; | ||
gitHubMark.style.width = "24px"; | ||
gitHubMark.style.margin = "0 5px"; | ||
|
||
const repoDiv = document.createElement("div"); | ||
repoDiv.appendChild(gitHubMark); | ||
repoDiv.appendChild(repoIndication); | ||
repoDiv.style.textAlign = "center"; | ||
repoDiv.id = "link-to-repo"; | ||
|
||
readmeContainer.appendChild(repoDiv); | ||
return readmeContainer; | ||
} | ||
|
||
/** | ||
* Creates the functions container element. | ||
* @returns {HTMLElement} - The created functions container element. | ||
*/ | ||
createFunctionsContainer() { | ||
const functionsContainer = document.createElement('div'); | ||
functionsContainer.classList.add('content-about-tab', 'content-about-deactivate'); | ||
functionsContainer.style.overflow = "auto"; | ||
functionsContainer.id = "functions-container"; | ||
return functionsContainer; | ||
} | ||
|
||
/** | ||
* Creates the contributors container element. | ||
* @returns {HTMLElement} - The created contributors container element. | ||
*/ | ||
createContributorsContainer() { | ||
const contributorContainer = document.createElement('div'); | ||
contributorContainer.classList.add('content-about-tab', 'contributor-container', 'content-about-deactivate'); | ||
contributorContainer.id = "contributors-container"; | ||
|
||
return contributorContainer; | ||
} | ||
} |
Oops, something went wrong.