Compare commits

..

4 Commits

Author SHA1 Message Date
4404b935e1 Update 2023-01-12 10:34:58 +01:00
d6a4b2fe7a Fix mobile styles 2020-11-29 11:31:32 +01:00
c8683108ef Fix one question 2020-11-29 11:31:26 +01:00
13fe0af2e2 Remove unused fonts 2020-11-29 11:31:20 +01:00
17 changed files with 189 additions and 144 deletions

View File

@ -39,105 +39,105 @@ body {
.start-screen .score, .end-screen .score {
text-align: center; }
.ingame-screen {
display: grid;
grid-template-rows: 2fr 6fr 2fr; }
.ingame-screen .score.focus {
animation: 1s attention; }
.ingame-screen header, .ingame-screen footer {
padding: 1rem 2rem; }
.ingame-screen .header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: black;
color: white; }
.ingame-screen .header h1 {
margin: 0;
padding: 0; }
.ingame-screen .question {
padding: 2rem; }
.ingame-screen .question.revealed .answer {
background-color: lightgray; }
.ingame-screen .question.revealed .answer.chosen {
background-color: #b34040;
color: white; }
.ingame-screen .question.revealed .answer.correct {
.ingame-screen .score.focus {
animation: 1s attention; }
.ingame-screen .header {
display: flex;
padding: 1rem 2rem;
justify-content: space-between;
align-items: center;
background-color: black;
color: white; }
.ingame-screen .header h1 {
margin: 0;
padding: 0; }
.ingame-screen .question {
padding: 2rem; }
.ingame-screen .question.revealed .answer {
background-color: lightgray; }
.ingame-screen .question.revealed .answer.chosen {
background-color: #b34040;
color: white; }
.ingame-screen .question.revealed .answer.correct {
background-color: #8fb340;
color: white; }
.ingame-screen .question.revealed .answer.correct.chosen {
background-color: #8fb340;
color: white; }
.ingame-screen .question.revealed .answer.correct.chosen {
background-color: #8fb340;
color: white; }
.ingame-screen .question .question-answers .answer {
display: block;
padding: 0.5rem;
width: 100%;
margin-bottom: 2px;
border: 1px solid lightgray;
border-radius: 0;
text-align: left;
counter-increment: answer; }
.ingame-screen .question .question-answers .answer::before {
content: counter(answer);
color: lightgray;
padding: 0.5em; }
.ingame-screen .question .question-estimate {
display: grid;
grid-template-columns: 7fr 3fr; }
.ingame-screen .question .question-estimate .input-estimate {
margin: 0;
box-sizing: border-box; }
.ingame-screen .question .question-estimate .btn-submit-estimate {
padding: auto 0.25rem;
margin: 0;
box-sizing: border-box; }
.ingame-screen .question .question-result-wrapper {
padding-top: 1px;
margin-top: 2rem;
display: none;
background-color: rgba(21, 45, 59, 0.7);
border-radius: 5px;
color: white; }
.ingame-screen .question .question-result-wrapper.visible {
display: block; }
.ingame-screen .question .question-result {
position: relative;
height: 100px;
width: 80%;
margin: 0 auto;
margin-top: 7rem;
border-top: 2px solid #ddd; }
.ingame-screen .question .question-result .correct-result, .ingame-screen .question .question-result .estimate {
position: absolute;
transform: translateX(-50%) translateY(20px);
text-align: center; }
.ingame-screen .question .question-result .correct-result strong, .ingame-screen .question .question-result .estimate strong {
font-size: 150%; }
.ingame-screen .question .question-result .correct-result::before, .ingame-screen .question .question-result .estimate::before {
content: "";
display: block;
position: absolute;
width: 30px;
height: 30px;
left: 50%;
transform: translateX(-50%) translateY(-37px); }
.ingame-screen .question .question-result .correct-result {
z-index: 5;
transform: translateX(-50%) translateY(-75px); }
.ingame-screen .question .question-result .correct-result::before {
background-image: url(../img/star.png);
background-size: contain;
transform: translateX(-50%) translateY(55px); }
.ingame-screen .question .question-result .estimate::before {
background-image: url(../img/snowflake.png);
background-size: contain; }
.ingame-screen .btn-continue {
.ingame-screen .question .question-answers .answer {
display: block;
margin-top: 1rem;
padding: 0.5rem;
width: 100%;
border-radius: 0;
margin-bottom: 2px;
border: 1px solid lightgray;
padding: 0.5rem; }
border-radius: 0;
text-align: left;
counter-increment: answer; }
.ingame-screen .question .question-answers .answer::before {
content: counter(answer);
color: lightgray;
padding: 0.5em; }
.ingame-screen .question .question-estimate {
display: grid;
grid-template-columns: 7fr 3fr; }
.ingame-screen .question .question-estimate .input-estimate {
padding: 0.25rem;
margin: 0;
box-sizing: border-box;
border-radius: 0;
border: 1px solid lightgray; }
.ingame-screen .question .question-estimate .btn-submit-estimate {
padding: auto 0.25rem;
margin: 0;
box-sizing: border-box;
border-radius: 0;
border: 1px solid lightgray; }
.ingame-screen .question .question-result-wrapper {
padding-top: 1px;
margin-top: 2rem;
display: none;
background-color: rgba(21, 45, 59, 0.7);
color: white; }
.ingame-screen .question .question-result-wrapper.visible {
display: block; }
.ingame-screen .question .question-result {
position: relative;
height: 100px;
width: 80%;
margin: 0 auto;
margin-top: 7rem;
border-top: 2px solid #ddd; }
.ingame-screen .question .question-result .correct-result, .ingame-screen .question .question-result .estimate {
position: absolute;
transform: translateX(-50%) translateY(20px);
text-align: center; }
.ingame-screen .question .question-result .correct-result strong, .ingame-screen .question .question-result .estimate strong {
font-size: 150%; }
.ingame-screen .question .question-result .correct-result::before, .ingame-screen .question .question-result .estimate::before {
content: "";
display: block;
position: absolute;
width: 30px;
height: 30px;
left: 50%;
transform: translateX(-50%) translateY(-37px); }
.ingame-screen .question .question-result .correct-result {
z-index: 5;
transform: translateX(-50%) translateY(-75px); }
.ingame-screen .question .question-result .correct-result::before {
background-image: url(../img/star.png);
background-size: contain;
transform: translateX(-50%) translateY(55px); }
.ingame-screen .question .question-result .estimate::before {
background-image: url(../img/snowflake.png);
background-size: contain; }
.ingame-screen .btn-continue {
display: block;
margin-top: 1rem;
width: 100%;
border-radius: 0;
border: 1px solid lightgray;
padding: 0.5rem; }
@keyframes attention {
0% {
@ -153,33 +153,44 @@ body {
@media screen and (max-width: 600px) {
body {
margin: 0;
padding: 0; }
padding: 0;
display: block;
height: auto; }
body .screen {
width: 100vw;
height: 100vh;
height: auto;
max-width: 100vw;
min-height: 100vh;
overflow-y: scroll; }
min-height: 100vh; }
body .screen .headline {
text-align: center; }
body .screen .btn-start {
padding: 1rem 2rem;
width: auto; }
body .screen.ingame-screen {
display: block;
height: auto; }
body .header {
width: 100vw;
flex-direction: column; }
body .question-text {
font-size: 14pt; }
body .question.estimate {
max-width: 95vw;
height: auto;
box-sizing: border-box; }
body .question.estimate .question-estimate {
display: block; }
body .question.estimate .input-estimate,
body .question.estimate .btn-submit-estimate {
width: 100%;
padding: 0.5rem 1rem; }
body .question.estimate .question-result {
width: 60%; } }
body .question {
display: block;
width: 100vw; }
body .question .question-text {
font-size: 14pt;
margin-top: 0; }
body .question.estimate {
height: auto;
box-sizing: border-box; }
body .question.estimate .question-estimate {
display: block; }
body .question.estimate .input-estimate,
body .question.estimate .btn-submit-estimate {
width: 100%;
display: block;
padding: 0.5rem 1rem; }
body .question.estimate .question-result {
width: 70%;
margin-top: 5rem;
height: 5rem; } }
/*# sourceMappingURL=style.css.map */

View File

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": "AAAA,CAAC;EACC,UAAU,EAAE,UAAU;;AAExB,IAAI;EACF,MAAM,EAAE,KAAK;EACb,UAAU,EAAE,UAAU;EACtB,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,WAAW,EAAE,MAAM;EACnB,gBAAgB,EAAE,0BAA0B;EAC5C,eAAe,EAAE,KAAK;EACtB,qBAAqB,EAAE,KAAK;EAE5B,YAAO;IACL,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,wBAAuB;EAE3C,OAAE;IACA,WAAW,EAAE,gBAAgB;IAC7B,SAAS,EAAE,IAAI;EAEjB,OAAE;IACA,WAAW,EAAE,MAAM;EAErB,iBAAY;IACV,gBAAgB,EAAE,IAAI;;AAE1B,0BAA0B;EACxB,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,cAAc,EAAE,MAAM;EAEtB,sCAAK;IACH,SAAS,EAAE,KAAK;EAElB,gDAAU;IACR,OAAO,EAAE,MAAK;IACd,MAAM,EAAE,mBAAmB;IAC3B,aAAa,EAAE,CAAC;IAChB,KAAK,EAAE,GAAG;EAEZ,wCAAM;IACJ,UAAU,EAAE,MAAM;;AAEtB,cAAc;EACZ,OAAO,EAAE,IAAI;EACb,kBAAkB,EAAE,WAAW;EA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AAS,EAAE,KAAK;MAChB,UAAU,EAAE,KAAK;MAEjB,sBAAS;QACP,UAAU,EAAE,MAAM;MAEpB,uBAAU;QACR,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,IAAI;MAEb,0BAAe;QACb,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,IAAI;IAEhB,YAAO;MACL,KAAK,EAAE,KAAK;MACZ,cAAc,EAAE,MAAM;IAExB,cAAS;MACP,OAAO,EAAE,KAAK;MACd,KAAK,EAAE,KAAK;MAEZ,6BAAc;QACZ,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,CAAC;MAEf,uBAAU;QACR,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,UAAU;QAEtB,0CAAkB;UAChB,OAAO,EAAE,KAAK;QAEhB;oDAAgB;UAEd,KAAK,EAAE,IAAI;UACX,OAAO,EAAE,KAAK;UACd,OAAO,EAAE,WAAU;QAErB,wCAAgB;UACd,KAAK,EAAE,GAAG;UACV,UAAU,EAAE,IAAI;UAChB,MAAM,EAAE,IAAI",
"sources": ["style.sass"],
"names": [],
"file": "style.css"

View File

@ -47,17 +47,13 @@ body
text-align: center
.ingame-screen
display: grid
grid-template-rows: 2fr 6fr 2fr
.score.focus
animation: 1s attention
header, footer
padding: 1rem 2rem
.header
display: flex
padding: 1rem 2rem
justify-content: space-between
align-items: center
background-color: black
@ -108,21 +104,24 @@ body
grid-template-columns: 7fr 3fr
.input-estimate
padding: .25rem
margin: 0
box-sizing: border-box
border-radius: 0
border: 1px solid lightgray
.btn-submit-estimate
padding: auto .25rem
margin: 0
box-sizing: border-box
border-radius: 0
border: 1px solid lightgray
.question-result-wrapper
padding-top: 1px
margin-top: 2rem
display: none
background-color: rgba(21, 45, 59, .7)
// box-shadow: 0 0 5px 10px rgba(0,0,0,.1) inset
border-radius: 5px
color: white
&.visible
@ -190,13 +189,14 @@ body
body
margin: 0
padding: 0
display: block
height: auto
.screen
width: 100vw
height: 100vh
height: auto
max-width: 100vw
min-height: 100vh
overflow-y: scroll
.headline
text-align: center
@ -205,24 +205,36 @@ body
padding: 1rem 2rem
width: auto
&.ingame-screen
display: block
height: auto
.header
width: 100vw
flex-direction: column
.question-text
font-size: 14pt
.question
display: block
width: 100vw
.question.estimate
max-width: 95vw
height: auto
box-sizing: border-box
.question-text
font-size: 14pt
margin-top: 0
.question-estimate
display: block
&.estimate
height: auto
box-sizing: border-box
.input-estimate,
.btn-submit-estimate
width: 100%
padding: .5rem 1rem
.question-estimate
display: block
.question-result
width: 60%
.input-estimate,
.btn-submit-estimate
width: 100%
display: block
padding: .5rem 1rem
.question-result
width: 70%
margin-top: 5rem
height: 5rem

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -39,6 +39,7 @@
{{answer.text}}
</button>
</div>
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</article>
<article v-if="isEstimate" class="question estimate" v-bind:class="{revealed: currentQuestionAnswered}">
@ -55,11 +56,8 @@
<div class="estimate"></div>
</div>
</div>
</article>
<footer class="footer">
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</footer>
</article>
</section>
<section v-if="mode === ENDSCREEN" class="end-screen screen">

View File

@ -58,7 +58,6 @@ const app = new Vue({
this.evaluateEstimate()
}
default:
console.log(e.key)
return
}
})

View File

@ -86,7 +86,7 @@ const questionCatalog = [
},
{
type: 'estimate',
text: 'Wie hoch über dem Meeresspiegel liegt die Altenburg und überblickt somit ungehindert ganz Bamberg?',
text: 'Wie viele Meter über dem Meeresspiegel liegt die Altenburg und überblickt somit ungehindert ganz Bamberg?',
correctAnswer: 390
},
{
@ -97,7 +97,7 @@ const questionCatalog = [
{
type: 'estimate',
text: 'Wie viele eigene (Teil-)Bibliotheken hat die Universität Bamberg?',
correctAnswer: 7
correctAnswer: 6
},
{
type: 'estimate',

25
style.css Normal file
View File

@ -0,0 +1,25 @@
/*
Errno::ENOENT: No such file or directory @ rb_sysopen - style.sass
Backtrace:
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:454:in `read'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:454:in `update_stylesheet'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:209:in `each'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:294:in `watch'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin.rb:109:in `method_missing'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/sass_scss.rb:358:in `watch_or_update'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/sass_scss.rb:51:in `process_result'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/base.rb:50:in `parse'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/base.rb:18:in `parse!'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/bin/sass:13:in `<top (required)>'
/home/florian/.rvm/gems/ruby-2.5.1/bin/sass:23:in `load'
/home/florian/.rvm/gems/ruby-2.5.1/bin/sass:23:in `<main>'
/home/florian/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
/home/florian/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
*/
body:before {
white-space: pre;
font-family: monospace;
content: "Errno::ENOENT: No such file or directory @ rb_sysopen - style.sass"; }