Skip to content

Commit

Permalink
fix quiz and task description frames
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdaniculae committed Apr 3, 2024
1 parent 3ed5241 commit 949ebbd
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 33 deletions.
4 changes: 2 additions & 2 deletions src/Experience/Components/Quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export default class Quiz {

quizHTML() {
instance.quizContainer = _gl.elementFromHtml(`
<div class="absolute inset-0 task-container grid place-content-center" id="quiz-game">
<div class="relative mx-auto task-container_box group/quiz flex flex-col">
<div class="absolute inset-0 task-container" id="quiz-game">
<div class="task-container_box group/quiz flex flex-col">
<div class="progress-bar-container">
<div class="progress-bar-background">
<div class="progress-bar-foreground" id="progress-bar-quiz"></div>
Expand Down
60 changes: 29 additions & 31 deletions src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -359,26 +359,6 @@
}
}

.button-task-action {
position: relative;
display: flex;
align-items: center;
justify-content: center;
background-image: url('../../static/interface/Task_Shape_button_action_s.png');
background-repeat: no-repeat;
background-size: contain;
pointer-events: auto;
aspect-ratio: 572/171;
width: 100%;
font-size: var(--font-size-text);
cursor: pointer;

&.active,
&:hover {
background-image: url('../../static/interface/Task_Shape_button_active_s.png');
}
}

/* #endregion */

/* #region Masks */
Expand Down Expand Up @@ -872,11 +852,11 @@ $themes: (
&_box {
position: relative;
width: clamp(48rem, 65vw, 100%);
background-image: url('../../static/frames/Task_Shape.png');
background-image: url('../../static/frames/Task_Shape_frame.png');
background-repeat: no-repeat;
background-size: contain;
aspect-ratio: 974/529;
padding: 8% 5% 7%;
aspect-ratio: 3719/2029;
padding: 6% 3%;
display: flex;
flex-flow: column nowrap;
gap: 5%;
Expand All @@ -885,7 +865,7 @@ $themes: (

&_heading {
position: absolute;
top: 7.5%;
top: 4.25%;
left: 50%;
transform: translateX(-50%);
font-size: var(--font-size-heading);
Expand All @@ -909,11 +889,29 @@ $themes: (
}
}


&_actions {
width: 19vw;
aspect-ratio: 3719/2029;
background-image: url('../../static/interface/Task_Shape_button_active.png');
background-repeat: no-repeat;
background-size: contain;
position: absolute;
bottom: 0%;
inset: 0;

button {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 1%;
height: 14%;
width: 30%;
pointer-events: auto;
font-size: var(--font-size-text);
cursor: pointer;
}

&:hover {
background-image: url('../../static/interface/Task_Shape_button_action.png');
}
}
}

Expand Down Expand Up @@ -1010,6 +1008,10 @@ $themes: (

#quiz-game {

#quiz-wrapper {
width: clamp(10rem, 50vw, 100%);
}

.task-container_box {
background-image: url('../../static/frames/Quiz_window.png');
aspect-ratio: 3721/1879;
Expand Down Expand Up @@ -1091,10 +1093,6 @@ $themes: (
}

.quiz-item {
>div {
margin-inline: auto;
width: clamp(20rem, 45vw, 100%);
}

textarea {
width: 100%;
Expand Down
Binary file added static/frames/Task_Shape_frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/interface/Task_Shape_button_action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/interface/Task_Shape_button_action_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/interface/Task_Shape_button_active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/interface/Task_Shape_button_active_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/interface/Task_Shape_button_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/interface/Task_Shape_button_s_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 949ebbd

Please sign in to comment.