-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post practice session report #48
Closed
Closed
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6be4d56
Added PostPracticeSession's basic UI and made a route
milindvishnoi 3bda212
Didn't commit last commit
milindvishnoi 26d31b2
Added Concepts Practiced Section
milindvishnoi b256fba
Checkpoint
milindvishnoi eedd002
Checkpoint
milindvishnoi 8904a01
Added AnswerDescription component and vuex backend for post practice …
milindvishnoi d0a0c00
Fixed Answer Description icon issue
milindvishnoi 8acfe47
Added time feature
milindvishnoi acdc4e5
Added reset feature on PostPracticeSession. Fixed animation bug
milindvishnoi 95ec79e
Added a test module
milindvishnoi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,68 @@ | ||
<template> | ||
<div class="container q-mb-md"> | ||
<div class="col question-container"> | ||
<div class="question-text">{{ question.question }}</div> | ||
<div class="answer-text"> | ||
Given Answer: {{ question.answer }} | ||
<br /> | ||
Correct Answer: {{ question.correctAnswer }} | ||
</div> | ||
</div> | ||
<div class="col correctness-display"> | ||
<!-- <img v-if="skipped" src="../public/img/loading.svg" class="img-container" /> | ||
<img v-if="correct" src="../public/img/tick.svg" class="img-container" /> | ||
<img v-if="!correct" src="../public/img/close.svg" class="img-container" /> --> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { QuestionReport } from "../store/practice/models"; | ||
import { boolean } from "mathjs"; | ||
export default { | ||
props: { | ||
question: { | ||
type: QuestionReport, | ||
required: true, | ||
} | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.container { | ||
width: 100%; | ||
height: 98px; | ||
border-radius: 10px; | ||
box-shadow: -2px 0px 2px 2px #767676; | ||
background: #ffffff; | ||
} | ||
.question-text { | ||
font-family: Varela Round; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-size: 18px; | ||
line-height: 32px; | ||
/* identical to box height, or 178% */ | ||
color: #767676; | ||
margin: 0 0 25px; | ||
} | ||
.answer-text { | ||
font-family: Montserrat; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 10px; | ||
line-height: 18px; | ||
/* or 180% */ | ||
color: #767676; | ||
bottom: -10px; | ||
} | ||
.img-container { | ||
height: 50px; | ||
width: 50px; | ||
} | ||
.question-container { | ||
width: 80%; | ||
margin-left: 20px; | ||
} | ||
</style> |
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ export default { | |
}; | ||
</script> | ||
|
||
<style> | ||
<style scoped> | ||
.config-header { | ||
width: 140%; | ||
height: 384px; | ||
|
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,147 @@ | ||
<template> | ||
<q-page class="mobile-container"> | ||
<div class="config-header" /> | ||
<div class="column q-pb-lg"> | ||
<router-link to="/" class="absolute-top-left left-btn"> | ||
<q-btn flat round size="40px" class="btn-style"> | ||
<q-icon name="mdi-file-document-outline" size="50px" class="left-btn-icon" /> | ||
</q-btn> | ||
</router-link> | ||
<router-link to="/" class="absolute-top-right home-btn"> | ||
<q-btn flat round size="40px" class="btn-style"> | ||
<q-icon name="home" size="50px" class="home-btn-icon" /> | ||
</q-btn> | ||
</router-link> | ||
<span class="config-header-label text-center">Summary</span> | ||
<span class="config-header-label config-sub-header-label text-center">Session Completed!</span> | ||
<div class="full-width config-btn row justify-center"> | ||
<div class="config-btn-border"> | ||
<router-link to="/practice"> | ||
<q-btn flat size="25px" class="config-btn-style btn-style" rounded> | ||
Play Again | ||
<q-icon name="mdi-rotate-left" right /> | ||
</q-btn> | ||
</router-link> | ||
</div> | ||
</div> | ||
<div class="column q-ma-lg"> | ||
<div class="headings">Concepts Practiced</div> | ||
<div class="row justify-center"> | ||
<q-chip | ||
color="pink" | ||
size="16px" | ||
v-for="operator in operators" | ||
:key="operator" | ||
>{{ operator }}</q-chip> | ||
</div> | ||
</div> | ||
<div class="column content-center"> | ||
<span style="width:80%" v-for="question in practiceAttemptedQuestions.questions" :key="question.question"> | ||
<AnswerDescription | ||
:question="question" | ||
/> | ||
</span> | ||
</div> | ||
</div> | ||
</q-page> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { PracticeGetters } from "../store/practice/practice"; | ||
import { mapGetters } from "vuex"; | ||
import AnswerDescription from "../components/AnswerDescription.vue"; | ||
|
||
export default { | ||
computed: { | ||
...mapGetters({ | ||
operators: PracticeGetters.OPERATORS, | ||
practiceAttemptedQuestions: PracticeGetters.PRACTICE_ATTEMPTED_QUESTIONS, | ||
}), | ||
}, | ||
components: { | ||
AnswerDescription, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.mobile-container { | ||
width: 420px; | ||
min-height: 85%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
@media (max-width: 599px) { | ||
.mobile-container { | ||
width: 100%; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
} | ||
.config-header { | ||
width: 140%; | ||
height: 384px; | ||
background: linear-gradient(0deg, #114489, #114489), #2f80ed; | ||
border-radius: 50%; | ||
margin-top: -192px; | ||
position: absolute; | ||
margin-left: -20%; | ||
} | ||
.config-header-label { | ||
color: white; | ||
font-size: 32px; | ||
font-family: "Montserrat", sans-serif; | ||
top: 24px; | ||
z-index: 2; | ||
position: relative; | ||
} | ||
.config-sub-header-label { | ||
font-size: 24px; | ||
} | ||
.config-btn { | ||
margin-top: 75px; | ||
z-index: 2; | ||
} | ||
.btn-style { | ||
color: #ffffff; | ||
background: #2f80ed; | ||
} | ||
.config-btn-style { | ||
border-radius: 30px; | ||
top: -6px; | ||
} | ||
.config-btn-border { | ||
background: #114489; | ||
border-radius: 30px; | ||
color: #ffffff; | ||
z-index: 1; | ||
width: 230px; | ||
box-shadow: 0px 0px 5px grey; | ||
} | ||
.home-btn { | ||
top: -35px; | ||
right: -35px; | ||
} | ||
.home-btn-icon { | ||
left: -15px; | ||
bottom: -15px; | ||
} | ||
.left-btn { | ||
top: -35px; | ||
left: -35px; | ||
} | ||
.left-btn-icon { | ||
right: -15px; | ||
bottom: -15px; | ||
} | ||
.headings { | ||
font-family: "Montserrat", sans-serif; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-size: 18px; | ||
line-height: 32px; | ||
} | ||
</style> |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What were you trying to fix with this?