Skip to content

Commit

Permalink
fix/ applying new classes so language switch work
Browse files Browse the repository at this point in the history
  • Loading branch information
dadedeandrade committed Jul 16, 2022
1 parent da1de47 commit 062ab42
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions simplePort/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,36 @@ toggleLanguage.addEventListener('click', () => {
const liveChat = document.querySelector('#liveChat')
const pokedex = document.querySelector('#pokedex')
const socialMedia = document.querySelector('.userMedia p')
const itemDetails = document.querySelector('.itemDetails')
const livechatItemDetails = document.querySelector('.livechatItemDetails')
const pokedexItemDetails = document.querySelector('.pokedexItemDetails')
const foodwebItemDetails = document.querySelector('.foodwebItemDetails')
h1.innerHTML = 'Olá, seja bem vindo ao meu portifólio!'
h2.innerHTML = 'Aqui você consegue acessar todos meus projetos em andamento com as stacks utilizadas e que tenho conhecimento, espero que goste :)'
socialMedia.innerHTML = 'Redes sociais:'
itemDetails.classList.add('heightFix')
itemDetails.innerText = 'Esse projeto foi criado com o intuito de disponibilizar um ambiente agradável para desenvolvedores terem a possibilidade de um coffeBreak em home-office. Acredito na importancia de um momento de distração durante a jornada de trabalho e no home-office o momento do cafézinho se perdeu, por isso a ideia do projeto, O MVP que seria o chat já está disponibilizado e futuramente outras funções serão implementadas como uma radio colaborativa, mensagens privadas, cadastro de usurio e por aí vai :)';
livechatItemDetails.classList.add('heightFix')
pokedexItemDetails.classList.add('heightFix')
foodwebItemDetails.classList.add('heightFix')
livechatItemDetails.innerText = 'Esse projeto foi criado com o intuito de disponibilizar um ambiente agradável para desenvolvedores terem a possibilidade de um coffeBreak em home-office. Acredito na importancia de um momento de distração durante a jornada de trabalho e no home-office o momento do cafézinho se perdeu, por isso a ideia do projeto, O MVP que seria o chat já está disponibilizado e futuramente outras funções serão implementadas como uma radio colaborativa, mensagens privadas, cadastro de usurio e por aí vai :)';
pokedexItemDetails.innerText = 'Esse projeto foi criado com o intuito de disponibilizar um ambiente agradável para desenvolvedores terem a possibilidade de um coffeBreak em home-office. Acredito na importancia de um momento de distração durante a jornada de trabalho e no home-office o momento do cafézinho se perdeu, por isso a ideia do projeto, O MVP que seria o chat já está disponibilizado e futuramente outras funções serão implementadas como uma radio colaborativa, mensagens privadas, cadastro de usurio e por aí vai :)';
foodwebItemDetails.innerText = 'Esse projeto foi criado com o intuito de disponibilizar um ambiente agradável para desenvolvedores terem a possibilidade de um coffeBreak em home-office. Acredito na importancia de um momento de distração durante a jornada de trabalho e no home-office o momento do cafézinho se perdeu, por isso a ideia do projeto, O MVP que seria o chat já está disponibilizado e futuramente outras funções serão implementadas como uma radio colaborativa, mensagens privadas, cadastro de usurio e por aí vai :)';

} else {
const h1 = document.querySelector('header h1')
const h2 = document.querySelector('header h2')
const liveChat = document.querySelector('#liveChat')
const pokedex = document.querySelector('#pokedex')
const socialMedia = document.querySelector('.userMedia p')
itemDetails.classList.remove('heightFix')
livechatItemDetails.classList.remove('heightFix')
pokedexItemDetails.classList.remove('heightFix')
foodwebItemDetails.classList.remove('heightFix')
h1.innerHTML = 'Hi, Welcome to my portifolio!'
h2.innerHTML = 'Here you can find all my projects with the stacks im currently working, hope you enjoy :)'
liveChat.innerHTML = 'CoffeBreak RealTime Chat'
pokedex.innerHTML = 'PokedexAPP'
socialMedia.innerHTML = 'Social Media:'
itemDetails.innerText = "The idea behind this project was to create a pleasant environment for developers so they can take a small break from home-office in a chat with their colleagues. I believe in the idea that moments of distraction are one of the most important things during the working day so we can keep productivity going and keep burnout away, and with the current ascension of homeoffice we are kinda losing that little break we had in the office, thats why i developed the app. The MVP is ready, and for the future i'll implement more features like a collaborative radio, private messages, user registration and more :)";
livechatItemDetails.innerText = "The idea behind this project was to create a pleasant environment for developers so they can take a small break from home-office in a chat with their colleagues. I believe in the idea that moments of distraction are one of the most important things during the working day so we can keep productivity going and keep burnout away, and with the current ascension of homeoffice we are kinda losing that little break we had in the office, thats why i developed the app. The MVP is ready, and for the future i'll implement more features like a collaborative radio, private messages, user registration and more :)";
pokedexItemDetails.innerText = "The idea behind this project was to create a pleasant environment for developers so they can take a small break from home-office in a chat with their colleagues. I believe in the idea that moments of distraction are one of the most important things during the working day so we can keep productivity going and keep burnout away, and with the current ascension of homeoffice we are kinda losing that little break we had in the office, thats why i developed the app. The MVP is ready, and for the future i'll implement more features like a collaborative radio, private messages, user registration and more :)";
foodwebItemDetails.innerText = "The idea behind this project was to create a pleasant environment for developers so they can take a small break from home-office in a chat with their colleagues. I believe in the idea that moments of distraction are one of the most important things during the working day so we can keep productivity going and keep burnout away, and with the current ascension of homeoffice we are kinda losing that little break we had in the office, thats why i developed the app. The MVP is ready, and for the future i'll implement more features like a collaborative radio, private messages, user registration and more :)";
}
}
)
Expand Down Expand Up @@ -78,10 +88,10 @@ function removeActiveClassOnHover(elem) {
document.querySelector(`#${elem}`).classList.remove('active')
}

function bootingScreen() {
// function bootingScreen() {

setTimeout(() => document.getElementById('bootSection').classList.add('booting-finish'), 5000)
setTimeout(() => document.getElementById('bootText').classList.add('booting-finish'), 5000)
// setTimeout(() => document.getElementById('bootSection').classList.add('booting-finish'), 5000)
// setTimeout(() => document.getElementById('bootText').classList.add('booting-finish'), 5000)

}
bootingScreen()
// }
// bootingScreen()

0 comments on commit 062ab42

Please sign in to comment.