From 72767c1ca59c8bebb070dd7ccf0bb05a4348755e Mon Sep 17 00:00:00 2001 From: Reppard Date: Tue, 8 Feb 2022 13:27:43 -0500 Subject: [PATCH] cleanup and style --- src/App.vue | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/src/App.vue b/src/App.vue index d654acb..9de3f91 100644 --- a/src/App.vue +++ b/src/App.vue @@ -212,7 +212,6 @@ export default { this.pattern = [] this.check = [] this.score = 0 - //this.generatePattern() this.addToPattern() this.playPattern() }, @@ -239,28 +238,6 @@ export default { addToPattern() { this.pattern.push(Math.floor(Math.random() * 4)) }, - - generatePattern() { - let pattern = [] - - for(let i = 0; i < this.count; i++ ) { - pattern[i] = Math.floor(Math.random() * 4) - setTimeout(()=> { - setTimeout(()=> { - this.blink = pattern[i] - - }, 600) - - setTimeout(()=> { - this.blink = null - }, 800) - }, 600 * (i+1)) - } - - this.pattern = pattern - - return pattern - } } } @@ -397,10 +374,11 @@ html, body{ outline: none; font-size: 24px; font-weight: bold; + font-family: monospace; height: 100%; - background: darkslategray; - text-shadow: 0px 0px 3px white; - color: black; + background: linear-gradient(45deg, black, transparent); + text-shadow: 0px 0px 12px black; + color: silver; width: 100%; } @@ -408,6 +386,10 @@ html, body{ border-radius: 100px 100px 0 0; } +.start button:disabled { + color: black; +} + .reset button { border-radius: 0 0 100px 100px; }