Skip to content

Commit

Permalink
New changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaNwaizu committed Jan 30, 2024
1 parent aef20c9 commit caa01fb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ <h1>FE-quiz</h1>

<section class="section grid html-home">
<div class="home__container container">
<span id="show-text" class="show__text">Remember to control Dark and Light mode fom this page</span>

<div class="home__hero">
<h1 class="home__title">Welcome to the <span>Frontend Quiz</span></h1>
<p class="home__description">
Expand All @@ -43,10 +45,11 @@ <h1 class="home__title">Welcome to the <span>Frontend Quiz</span></h1>
<span><i class="ri-html5-line"></i></span>
<p class="option__text html">Start Quiz</p>
</div>

</div>
</div>
</div>


</section>
</main>

Expand Down
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ toggle.addEventListener('click', () => {
localStorage.setItem('selected-icon', getCurrentIcon())
})

function displayAndHideText() {

const showText = document.querySelector('#show-text')

showText.style.display= 'block'

setTimeout(() => {
showText.style.display = 'none'
}, 5000);
}

window.onload = displayAndHideText
9 changes: 8 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,19 @@ h4 {
.toggle-icon {
justify-content: flex-start;
}
#show-text {
background: #e93f3f;
padding: 1rem;
color: #fff;
border-radius: 1rem;
font-size: var(--normal-font-size);

}
@media screen and (max-width: 950px) {

/**************** HOME *******************/
.html-home {
margin-top: 5rem;
margin-top: 3rem;
}

.home__title {
Expand Down

0 comments on commit caa01fb

Please sign in to comment.