From f276aca352264228a2bbc862796d9ba583111274 Mon Sep 17 00:00:00 2001
From: Kingsten Banh
Date: Mon, 22 Oct 2018 07:04:31 -0400
Subject: [PATCH] Replaced VueJs with vanila js for the simon game
---
docs/css/style.css | 76 ++----------
docs/index.html | 80 +++++++------
docs/simon.js | 285 ++++++++++++++++++++++----------------------
docs/theme/theme.js | 3 +-
4 files changed, 197 insertions(+), 247 deletions(-)
diff --git a/docs/css/style.css b/docs/css/style.css
index c36f875..a243c99 100644
--- a/docs/css/style.css
+++ b/docs/css/style.css
@@ -5,7 +5,7 @@
--brand-yellow: #ffba08;
--brand-red: #f35325;
--brand-green: #81bc06;
- --white: #ffffff;
+ --white: #fff;
--off-white: #bbb;
--dark-grey: #121212;
/* typeface defaults */
@@ -218,18 +218,6 @@ h1 {
}
}
-main p:nth-child(2) {
- animation-delay: calc(var(--move-in-base-delay) * 6);
-}
-
-main p:nth-child(3) {
- animation-delay: calc(var(--move-in-base-delay) * 7);
-}
-
-main p:nth-child(4) {
- animation-delay: calc(var(--move-in-base-delay) * 8);
-}
-
/* Logo */
.logo-link {
@@ -239,12 +227,6 @@ main p:nth-child(4) {
margin: var(--large-space) auto;
}
-.logo-image {
- display: block;
- width: 100%;
- height: auto;
-}
-
.logo {
display: flex;
flex-wrap: wrap;
@@ -260,78 +242,44 @@ main p:nth-child(4) {
margin: 2.5%;
outline: 1px solid transparent;
animation: var(--logo-tiles-in-animation);
-}
-
-.winner {
- display: block;
- margin: auto;
- text-align: center;
-}
-
-.logo-tile--red {
- background-color: var(--brand-red);
transition: 150ms;
}
-.logo-tile--largered {
- background-color: var(--brand-red);
+.logo-tile.large {
transform: scale(1.2) translateY(-3px);
- transition: 150ms;
}
-.logo-tile--red:active {
+.logo-tile:active {
transform: scale(0.8);
}
-.logo-tile--green {
- background-color: var(--brand-green);
- animation-delay: var(--logo-tiles-in-delay);
- transition: 150ms;
+.logo-tile--red {
+ background-color: var(--brand-red);
}
-.logo-tile--largegreen {
+.logo-tile--green {
background-color: var(--brand-green);
- transform: scale(1.2) translateY(-3px);
animation-delay: var(--logo-tiles-in-delay);
- transition: 150ms;
-}
-
-.logo-tile--green:active {
- transform: scale(0.8);
}
.logo-tile--blue {
background-color: var(--brand-blue);
animation-delay: calc(var(--logo-tiles-in-delay) * 2);
- transition: 150ms;
-}
-
-.logo-tile--largeblue {
- background-color: var(--brand-blue);
- transform: scale(1.2) translateY(-3px);
- animation-delay: calc(var(--logo-tiles-in-delay) * 2);
- transition: 150ms;
-}
-
-.logo-tile--blue:active {
- transform: scale(0.8);
}
.logo-tile--yellow {
background-color: var(--brand-yellow);
animation-delay: calc(var(--logo-tiles-in-delay) * 3);
- transition: 150ms;
}
-.logo-tile--largeyellow {
- background-color: var(--brand-yellow);
- transform: scale(1.2) translateY(-3px);
- animation-delay: calc(var(--logo-tiles-in-delay) * 3);
- transition: 150ms;
+.winner {
+ display: none;
+ margin: auto;
+ text-align: center;
}
-.logo-tile--yellow:active {
- transform: scale(0.8);
+.winner.show {
+ display: block;
}
/* Main */
diff --git a/docs/index.html b/docs/index.html
index 77d4956..72b4744 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -24,32 +24,37 @@
- š Simon says...A winner is you! š
+ š Simon says...A winner is you! š
- Microsoft is looking for designers who code to help create the most compelling developer tools & services on
+ Microsoft is looking for designers who code to help create the most compelling developer
+ tools & services on
the planet.
- We have open positions for technical product designers & design leaders in San Francisco, Seattle, and elsewhere.
+ We have open positions for technical product designers & design leaders in San Francisco, Seattle, and
+ elsewhere.
- We use PCs, Macs, Figma, Sketch, GitHub, JavaScript, ZEIT, and other modern tools to design, prototype, and build the future
+ We use PCs, Macs, Figma, Sketch, GitHub, JavaScript, ZEIT, and other modern tools to design, prototype, and
+ build the future
of software development.
- We believe in diversity, openness, and building delightful tools that empower every person and organization to achieve more.
+ We believe in diversity, openness, and building delightful tools that empower every person and organization to
+ achieve more.
Interested? Send a PR with any improvement to
- microsoft/join-dev-design or
+ microsoft/join-dev-design
+ or
email us.
@@ -81,48 +86,45 @@
-
-
-
-
-
-
-
-
+
+