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 5681eb7 commit 401604d
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 38 deletions.
27 changes: 25 additions & 2 deletions html quiz/html-quiz.css
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ h4 {
}

.html__options {
display: flex;
flex-direction: column;
row-gap: 1.5rem;
}
.html__options-container {
display: flex;
flex-direction: column;
row-gap: .5rem;
Expand Down Expand Up @@ -389,6 +394,7 @@ h4 {
.btn,
.skip {
padding: .5rem 1rem;

background: #9d25d0;
outline: none;
border: none;
Expand Down Expand Up @@ -617,7 +623,7 @@ h4 {
}

.nav {
margin-inline: 4.5rem;
margin-inline: 7.5rem;
}

.the__game-container {
Expand All @@ -628,9 +634,26 @@ h4 {
.progress-and-options,
.html__options {
min-width: 50%;

}

.html__options-list {
width: 100%;
width: 95%;

}

.html__options {
display: flex;
flex-direction: column;
row-gap: 1.5rem;
}
.html__options-container {
display: flex;
flex-direction: column;
row-gap: .5rem;
}
.skip {
margin-right: 2rem;
}

}
44 changes: 23 additions & 21 deletions html-quiz.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,34 @@ <h1 class="html__title" id="html-question">A portrait that comically exaggerates
</div>
</div>
<div class="html__options">
<div class="html__options-list">
<p class="html__choice-prefix">A</p>
<p class="html__choice-text" data-number="1"></p>
</div>
<div class="html__options-container">
<div class="html__options-list">
<p class="html__choice-prefix">A</p>
<p class="html__choice-text" data-number="1"></p>
</div>

<div class="html__options-list">
<p class="html__choice-prefix">B</p>
<p class="html__choice-text" data-number="2"></p>
</div>
<div class="html__options-list">
<p class="html__choice-prefix">B</p>
<p class="html__choice-text" data-number="2"></p>
</div>

<div class="html__options-list">
<p class="html__choice-prefix">C</p>
<p class="html__choice-text" data-number="3"></p>
</div>
<div class="html__options-list">
<p class="html__choice-prefix">C</p>
<p class="html__choice-text" data-number="3"></p>
</div>

<div class="html__options-list">
<p class="html__choice-prefix">D</p>
<p class="html__choice-text" data-number="4"></p>
<div class="html__options-list">
<p class="html__choice-prefix">D</p>
<p class="html__choice-text" data-number="4"></p>
</div>
</div>
<div class="button">
<button class="btn">
Back to menu
</button>
<button class="skip">Skip to Score </button>
</div>
</div>
</div>
<div class="button">
<button class="btn">
Back to menu
</button>
<button class="skip">Skip to Score </button>

</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>FE-quiz</h1>
<h1 class="home__title">Welcome to the <span>Frontend Quiz</span></h1>
<p class="home__description">
Unlock the secrets of frontend skill in our quick quiz!
Test your HTML, CSS, and JavaScript prowess,
Test your HTML, CSS, JavaScript and React prowess,
and level up your skills with each question.</p>
</div>

Expand Down
53 changes: 39 additions & 14 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
--z-tooltip: 10;
--z-fixed: 100;
}

/*=============== VARIABLE DARK THEME ===============*/
body.dark-theme {
--title-color: #020520d0;
Expand All @@ -63,26 +64,31 @@ body.dark-theme {
--white-color: hsl(0, 0%, 15%);
--first-color: #f4f4f4;
}

.dark-theme .option__list {
background-color: var(--text-color);
color: #000;

}

.dark-theme .home__description {
color: #766f6f;
}
.dark-theme
.option__list span {

.dark-theme .option__list span {
color: var(--title-color);


}

.dark-theme .option__list:hover {
background: var(--text-color);
}

.dark-theme .option__list:hover span {
background: var(--first-color);
}

.dark-theme .toggle__box {
border: 3px solid var(--text-color);
}
Expand Down Expand Up @@ -222,13 +228,15 @@ h4 {
border-radius: 50%;
}

.toggle__icons i,

.toggle__box {
cursor: pointer;
}

.toggle-icon {
justify-content: flex-start;
}

#show-text {
background: #e93f3f;
padding: 1rem;
Expand All @@ -237,6 +245,7 @@ h4 {
font-size: var(--normal-font-size);

}

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

/**************** HOME *******************/
Expand All @@ -259,6 +268,7 @@ h4 {
flex-direction: column;
row-gap: 1rem;
}

.home__container {
display: flex;
flex-direction: column;
Expand All @@ -276,7 +286,7 @@ h4 {
border-radius: 1rem;
cursor: pointer;
transition: .3s;

}

.option__list:hover {
Expand Down Expand Up @@ -418,7 +428,7 @@ h4 {
}

@media screen and (min-width: 540px) {


.option__list {
display: flex;
Expand Down Expand Up @@ -470,26 +480,30 @@ h4 {
}

@media screen and (min-width: 778px) {


.html-home {
margin-top: 7rem;
text-align: center;
text-align: center;
}

.home__title {
font-size: 4rem;
}

.home__description {
font-size: var(--h2-font-size);
}

.home__options {
width: 800px;
display: flex;
margin-top: 2rem;
align-items: center;
justify-content: center;

}

.option__list {
width: 300px;
justify-content: center;
Expand Down Expand Up @@ -532,22 +546,33 @@ h4 {
justify-content: center;
margin-inline: 2rem;
}
.home__hero,.home__options {

.home__hero,
.home__options {
width: 50%;
}

.option__list {
width: 90%;

}
}

@media screen and (min-width: 1424px) {
.home__container {

column-gap: 3rem;
}

.option__list {
width: 60%;


}

.home__hero {
display: flex;
flex-direction: column;
row-gap: 3rem;
}

.end__heading {
Expand Down

0 comments on commit 401604d

Please sign in to comment.