Compare commits

..

No commits in common. "4404b935e1ebf5e0ab1ad684f913f4da58712c13" and "48a039ed04cf8de4eeebc3fc95152681e30a1dfa" have entirely different histories.

17 changed files with 145 additions and 190 deletions

View File

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

View File

@ -1,6 +1,6 @@
{ {
"version": 3, "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;;AAIpB,2BAAY;EACV,SAAS,EAAE,YA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;IAErB,SAAS,EAAE,UAAS;;IAEpB,SAAS,EAAE,UAAU;;IAErB,SAAS,EAAE,QAAQ;AAEvB,oCAAoC;EAClC,IAAI;IACF,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IAEV,YAAO;MACL,KAAK,EAAE,KAAK;MACZ,MAAM,EAAE,KAAK;MACb,SAAS,EAAE,KAAK;MAChB,UAAU,EAAE,KAAK;MACjB,UAAU,EAAE,MAAM;MAElB,sBAAS;QACP,UAAU,EAAE,MAAM;MAEpB,uBAAU;QACR,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,IAAI;IAEf,YAAO;MACL,cAAc,EAAE,MAAM;IAExB,mBAAc;MACZ,SAAS,EAAE,IAAI;IAEjB,uBAAkB;MAChB,SAAS,EAAE,IAAI;MACf,MAAM,EAAE,IAAI;MACZ,UAAU,EAAE,UAAU;MAEtB,0CAAkB;QAChB,OAAO,EAAE,KAAK;MAEhB;kDAAgB;QAEd,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,WAAU;MAErB,wCAAgB;QACd,KAAK,EAAE,GAAG",
"sources": ["style.sass"], "sources": ["style.sass"],
"names": [], "names": [],
"file": "style.css" "file": "style.css"

View File

@ -47,13 +47,17 @@ body
text-align: center text-align: center
.ingame-screen .ingame-screen
display: grid
grid-template-rows: 2fr 6fr 2fr
.score.focus .score.focus
animation: 1s attention animation: 1s attention
header, footer
padding: 1rem 2rem
.header .header
display: flex display: flex
padding: 1rem 2rem
justify-content: space-between justify-content: space-between
align-items: center align-items: center
background-color: black background-color: black
@ -104,24 +108,21 @@ body
grid-template-columns: 7fr 3fr grid-template-columns: 7fr 3fr
.input-estimate .input-estimate
padding: .25rem
margin: 0 margin: 0
box-sizing: border-box box-sizing: border-box
border-radius: 0
border: 1px solid lightgray
.btn-submit-estimate .btn-submit-estimate
padding: auto .25rem padding: auto .25rem
margin: 0 margin: 0
box-sizing: border-box box-sizing: border-box
border-radius: 0
border: 1px solid lightgray
.question-result-wrapper .question-result-wrapper
padding-top: 1px padding-top: 1px
margin-top: 2rem margin-top: 2rem
display: none display: none
background-color: rgba(21, 45, 59, .7) background-color: rgba(21, 45, 59, .7)
// box-shadow: 0 0 5px 10px rgba(0,0,0,.1) inset
border-radius: 5px
color: white color: white
&.visible &.visible
@ -189,14 +190,13 @@ body
body body
margin: 0 margin: 0
padding: 0 padding: 0
display: block
height: auto
.screen .screen
width: 100vw width: 100vw
height: auto height: 100vh
max-width: 100vw max-width: 100vw
min-height: 100vh min-height: 100vh
overflow-y: scroll
.headline .headline
text-align: center text-align: center
@ -205,36 +205,24 @@ body
padding: 1rem 2rem padding: 1rem 2rem
width: auto width: auto
&.ingame-screen
display: block
height: auto
.header .header
width: 100vw
flex-direction: column flex-direction: column
.question .question-text
display: block font-size: 14pt
width: 100vw
.question-text .question.estimate
font-size: 14pt max-width: 95vw
margin-top: 0 height: auto
box-sizing: border-box
&.estimate .question-estimate
height: auto display: block
box-sizing: border-box
.question-estimate .input-estimate,
display: block .btn-submit-estimate
width: 100%
padding: .5rem 1rem
.input-estimate, .question-result
.btn-submit-estimate width: 60%
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,7 +39,6 @@
{{answer.text}} {{answer.text}}
</button> </button>
</div> </div>
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</article> </article>
<article v-if="isEstimate" class="question estimate" v-bind:class="{revealed: currentQuestionAnswered}"> <article v-if="isEstimate" class="question estimate" v-bind:class="{revealed: currentQuestionAnswered}">
@ -56,8 +55,11 @@
<div class="estimate"></div> <div class="estimate"></div>
</div> </div>
</div> </div>
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</article> </article>
<footer class="footer">
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</footer>
</section> </section>
<section v-if="mode === ENDSCREEN" class="end-screen screen"> <section v-if="mode === ENDSCREEN" class="end-screen screen">

View File

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

View File

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

View File

@ -1,25 +0,0 @@
/*
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"; }