diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..abd38df Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/coders-editpage.css b/coders-editpage.css new file mode 100644 index 0000000..19e2610 --- /dev/null +++ b/coders-editpage.css @@ -0,0 +1,397 @@ +*{ + margin: 0; + padding: 0; + box-sizing: border-box; +} +@media screen and (max-width:760px) { + body{ + height: 100vh; + width: 100vw; + background-color: #78C7E6; + font-family: 'Open Sans', sans-serif; + background-image: url('images/background-mobile.png'); + background-repeat: no-repeat; + background-attachment: fixed; + background-size: cover; + z-index: 1; + } + .container-center{ + width:100vw; + justify-content: center; + margin: 0; + padding: 0; + z-index: 1; + } + .container-header{ + display: inline-flex; + width: 100vw; + justify-content: space-between; + z-index: 1; + } + .logo{ + display: flex; + width: 40vw; + margin-left: 1.5rem; + z-index: 2; + } + #edit--btn{ + margin-top: 4.5vh; + margin-right: 2rem; + width: 20vw; + height: 6vh; + background-color: #003C8D; + border-radius: 0.2rem; + border-style: none; + box-sizing: border-box; + color: white; + cursor: pointer; + list-style: none; + outline: none; + font-family: 'Open Sans'; + font-size: 1.5rem; + font-style: normal; + font-weight: 800; + z-index: 2; + } + .name--container{ + display: flex; + justify-content: center; + border-radius: 1rem; + background: #FFF; + box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10); + padding: 1rem; + margin-top: 3rem; + width: 20rem; + transform: translate(6%, 0%); + } + #newName { + display: inline-block; + color: #000; + background: #EEE; + border-radius: 0.9rem; + font-family: 'Open Sans'; + font-size: 1rem; + font-style: normal; + font-weight: 700; + line-height: normal; + border-style: none; + box-sizing: border-box; + list-style: none; + outline: none; + margin-right: 1rem; + padding: 1rem; + width: 14rem; + } + #add--btn{ + display: inline-block; + border-radius: 0.9rem; + background: #66B511; + color: #FFF; + font-family: 'Open Sans'; + font-size: 1.2rem; + font-style: normal; + font-weight: 800; + line-height: normal; + border-style: none; + box-sizing: border-box; + cursor: pointer; + list-style: none; + outline: none; + padding: 0.5rem; + } + #namesList{ + border-radius: 1rem; + box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10); + margin-top: 2rem; + width: 20rem; + height: 5.5rem; + transform: translate(6%, 0%); + } + ul{ + overflow:scroll; + } + li{ + display: flex; + justify-content: space-between; + align-items: center; + color: #000; + background: #fff; + border-radius: 0.9rem; + font-family: 'Open Sans'; + font-size: 1.2rem; + font-style: normal; + font-weight: 700; + line-height: normal; + border-style: none; + box-sizing: border-box; + list-style: none; + width: 20rem; + height: 5.5rem; + padding: 0.8rem 2rem 0.8rem 2rem; + margin-bottom: 1rem; + gap: 3rem; + } + #editName--btn, #deleteName--btn{ + border-radius: 0.9rem; + background: #eee; + width: 3rem; + height: 3rem; + padding: 0.5rem; + } + #deleteName--btn{ + margin-left: -2.7rem; + } + #deleteAll--btn{ + border-radius: 0.9rem; + background: #BC2024; + color: #FFF; + font-family: 'Open Sans'; + font-size: 1rem; + font-style: normal; + font-weight: 800; + text-align: center; + line-height: normal; + border-style: none; + box-sizing: border-box; + color: white; + cursor: pointer; + list-style: none; + outline: none; + padding: 1rem; + margin-top: 2rem; + width: 20rem; + transform: translate(6%, 0%); + } + + .hero5-container{ + position: relative; + display: flex; + justify-content: end; + margin-right: 4rem; + z-index: 3; + margin-top: 1.5rem; + } + #hero-manage{ + position: absolute; + width: 7rem; + flex-shrink: 0; + margin-top: 2.4rem; + margin-right: 6rem; + } + #bubble-manage{ + position: absolute; + width: 8rem; + transform: rotate(30deg); + margin-top: 1rem; + } +} + +@media screen and (min-width:759px) { + body{ + width: 100vw; + margin: 0; + padding: 0; + font-family: 'Open Sans', sans-serif; + background-image: url('images/background-desktop.png'); + background-repeat: no-repeat; + background-size: cover; + z-index: 1; + } + .container-center{ + height: 100vh; + width: 100vw; + justify-content: center; + margin: 0; + padding: 0; + z-index: 1; + } + .container-header{ + display: inline-flex; + width: 100vw; + justify-content: space-between; + z-index: 1; + } + .logo{ + display: flex; + width: 20vw; + margin-left: 6rem; + z-index: 2; + } + #edit--btn{ + margin-top: 3rem; + margin-right: 5.3rem; + width: 12vw; + height: 6vh; + background-color: #003C8D; + border-radius: 0.2rem; + border-style: none; + box-sizing: border-box; + color: white; + font-family: 'Open Sans'; + font-size: 2rem; + font-style: normal; + font-weight: 800; + outline: none; + z-index: 2; + } + .name--container{ + display: inline-flex; + justify-content: center; + border-radius: 1rem; + background: #FFF; + box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10); + padding: 1.5rem; + width: 30rem; + height: 7rem; + transform: translate(100%, 0%); + margin-top: 1rem; + } + #newName { + display: inline-block; + color: #000; + background: #EEE; + border-radius: 0.9rem; + font-family: 'Open Sans'; + font-size: 1rem; + font-style: normal; + font-weight: 700; + line-height: normal; + border-style: none; + box-sizing: border-box; + list-style: none; + outline: none; + width: 18rem; + height: 4rem; + margin-right: 1rem; + padding: 1rem; + } + #add--btn{ + display: inline-block; + border-radius: 0.9rem; + background: #66B511; + color: #FFF; + font-family: 'Open Sans'; + font-size: 2rem; + font-style: normal; + font-weight: 800; + line-height: normal; + border-style: none; + box-sizing: border-box; + cursor: pointer; + list-style: none; + outline: none; + width: 8rem; + height: 4rem; + padding: 0.5rem; + } + #namesList{ + justify-content: center; + border-radius: 1rem; + box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10); + width: 30rem; + height: 7rem; + transform: translate(100%, 0%); + margin-top: 2rem; + } + li{ + display: flex; + justify-content: space-between; + align-items: center; + color: #000; + background: #FFF; + border-radius: 0.9rem; + font-family: 'Open Sans'; + font-size: 1.2rem; + font-style: normal; + font-weight: 700; + border-style: none; + box-sizing: border-box; + list-style: none; + outline: none; + width: 30rem; + height: 7rem; + padding: 1rem 3rem; + margin-bottom: 1rem; + } + ul{ + overflow:scroll; + } + #editName--btn, #deleteName--btn{ + border-radius: 0.9rem; + background: #EEE; + width: 4rem; + height: 4rem; + padding: 1rem; + } + #deleteName--btn{ + margin-left: -6rem; + } + #deleteAll--btn{ + border-radius: 0.9rem; + background: #BC2024; + color: #FFF; + font-family: 'Open Sans'; + font-size: 2rem; + font-style: normal; + font-weight: 800; + text-align: center; + line-height: normal; + border-style: none; + box-sizing: border-box; + color: white; + cursor: pointer; + outline: none; + width: 30rem; + height: 5rem; + padding: 1rem; + transform: translate(100%, 0%); + margin-top: 2rem; + } + + .hero5-container{ + position: relative; + display: flex; + justify-content: end; + margin-right: 4rem; + z-index: 3; + margin-top: -0.6rem; + } + #hero-manage{ + position: absolute; + width: 13rem; + flex-shrink: 0; + margin-right: 8rem; + animation: slideInRight 1s 1 linear; + } + #bubble-manage{ + position: absolute; + width: 12rem; + margin-right: 4rem; + margin-top: -7rem; + animation: popOut 3s 1; + } +} + +@keyframes slideInRight { + 0% { + transform: translate(20%, 0); + } + 100% { + transform: translate(0, 0); + } +} + +@keyframes popOut { + 0% { + transform: scale(0, 0); + } + 50% { + transform: scale(0, 0); + } + 75% { + transform: scale(1.2, 1.2); + } + 100% { + transform: scale(1, 1); + } +} \ No newline at end of file diff --git a/coders-editpage.html b/coders-editpage.html new file mode 100644 index 0000000..91f5898 --- /dev/null +++ b/coders-editpage.html @@ -0,0 +1,35 @@ + + + + + + Random Supercoder + + + + + + +
+
+ + +
+
+ + +
+ + + + +
+ + + + \ No newline at end of file diff --git a/coders-home.css b/coders-home.css new file mode 100644 index 0000000..dcace6c --- /dev/null +++ b/coders-home.css @@ -0,0 +1,313 @@ +*{ + margin: 0; + padding: 0;} +@media screen and (max-width:760px) { + body{ + height: 100vh; + width: 100vw; + background-color: #78C7E6; + font-family: 'Open Sans', sans-serif; + background-image: url('images/background-mobile.png'); + background-repeat: no-repeat; + background-attachment: fixed; + background-size: cover; + z-index: 1; + + } + .container-center{ + width:100vw; + justify-content: center; + margin: 0; + padding: 0; + z-index: 1; + } + .container-header{ + display: inline-flex; + width: 100vw; + justify-content: space-between; + z-index: 1; + } + .logo{ + display: flex; + width: 40vw; + margin-left: 1.5rem; + z-index: 2; + } + #edit--btn{ + margin-top: 4.5vh; + margin-right: 2rem; + width: 20vw; + height: 6vh; + background-color: #003C8D; + border-radius: 0.2rem; + border-style: none; + box-sizing: border-box; + color: white; + cursor: pointer; + list-style: none; + outline: none; + font-family: 'Open Sans'; + font-size: 1.5rem; + font-style: normal; + font-weight: 800; + z-index: 2; + } + .name--container{ + display: flex; + justify-content: center; + width: 100vw; + height: 100vh; + z-index: 1; + } + #start--btn{ + transform: translate(30%, 50%); + margin-top: 8rem; + background-color: white; + border-radius: 0.5rem; + border-style: none; + box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); + color: black; + outline: none; + text-align: center; + text-decoration: none; + font-size: 3rem; + font-weight: 800; + line-height: normal; + padding: 1rem 2rem; + z-index: 2; + } + .hero1-container{ + position: relative; + margin-top: -1rem; + animation: slideInLeft 1s 1 linear; + } + #hero-welcome{ + position: absolute; + width: 7rem; + transform: rotate(-15deg); + flex-shrink: 0; + margin-left: 8rem; + animation: movimiento 1s 1 linear ; + z-index: 3; + } + #bubble-welcome{ + position: absolute; + width: 7rem; + margin-left: 2rem; + margin-top: 3rem; + animation: popOut 3s 1; + z-index: 4; + } + .hero2-container{ + position: relative; + display: flex; + justify-content: end; + margin-right: 3rem; + margin-top: 5rem; + animation: slideInRight 1s 1 linear; + z-index: 3; + } + #hero-ready{ + position: absolute; + width: 7rem; + flex-shrink: 0; + } + #bubble-ready{ + position: absolute; + width: 9rem; + margin-right: 8rem; + margin-bottom: 10rem; + animation: popOut 4s 1; + } +} + +@media screen and (min-width:761px){ + body{ + width: 100vw; + margin: 0; + padding: 0; + font-family: 'Open Sans', sans-serif; + background-image: url('images/background-desktop.png'); + background-repeat: no-repeat; + background-size: cover; + z-index: 1; + } + .container-center{ + height: 100vh; + width: 100vw; + justify-content: center; + margin: 0; + padding: 0; + z-index: 1; + } + .container-header{ + display: inline-flex; + width: 100vw; + justify-content: space-between; + z-index: 1; + } + .logo{ + display: flex; + width: 20vw; + margin-left: 6rem; + z-index: 2; + } + #edit--btn{ + margin-top: 3rem; + margin-right: 5.3rem; + width: 12vw; + height: 6vh; + background-color: #003C8D; + border-radius: 0.2rem; + border-style: none; + box-sizing: border-box; + color: white; + font-family: 'Open Sans'; + font-size: 2rem; + font-style: normal; + font-weight: 800; + outline: none; + z-index: 2; + } + .name--container{ + display: flex; + justify-content: center; + width: 100vw; + height: 100vh; + z-index: 1; + } + #start--btn{ + margin-top: 16rem; + background-color: white; + border-radius: 0.5rem; + border-style: none; + box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); + color: black; + outline: none; + text-align: center; + text-decoration: none; + font-size: 3rem; + font-weight: 800; + line-height: normal; + padding: 1rem 2rem; + position: relative; + left: 40%; + z-index: 2; + animation: wiggle 4s linear infinite; + animation-delay: 3s; + } + .hero1-container{ + position: relative; + margin-top: -3.5rem; + margin-left: 4rem; + animation: slideInLeft 1s 1 linear; + } + #hero-welcome{ + position: absolute; + width: 16rem; + transform: rotate(-15deg); + flex-shrink: 0; + margin-left: 13rem; + animation: movimiento 1s 1 linear infinite; + z-index: 3; + } + #bubble-welcome{ + position: absolute; + width: 12rem; + margin-left: 6rem; + margin-top: 6.5rem; + animation: popOut 3s 1; + z-index: 4; + } + .hero2-container{ + position: relative; + display: flex; + justify-content: end; + margin-right: 10rem; + margin-top: 1.5rem; + animation: slideInRight 1s 1 linear; + z-index: 3; + + } + #hero-ready{ + position: absolute; + width: 10rem; + flex-shrink: 0; + } + #bubble-ready{ + position: absolute; + width: 12rem; + margin-right: 10rem; + margin-bottom: 10rem; + animation: popOut 4s 1; + } +} + +@keyframes slideInLeft { + 0% { + transform: translate(-20%, 0); + } + 100% { + transform: translate(0, 0); + } +} + +@keyframes slideInRight { + 0% { + transform: translate(20%, 0); + } + 100% { + transform: translate(0, 0); + } +} + +@keyframes popOut { + 0% { + transform: scale(0, 0); + } + 50% { + transform: scale(0, 0); + } + 75% { + transform: scale(1.2, 1.2); + } + 100% { + transform: scale(1, 1); + } +} + +@keyframes wiggle { +0%, 7% { + transform: rotateZ(0); +} +15% { + transform: rotateZ(-15deg); +} +20% { + transform: rotateZ(10deg); +} +25% { + transform: rotateZ(-10deg); +} +30% { + transform: rotateZ(6deg); +} +35% { + transform: rotateZ(-4deg); +} +40%, 100% { + transform: rotateZ(0); +} +} + +@keyframes movimiento{ + 0%{ + transform: translateY(-15deg); +} +50%{ + transform: translateY(30px); +} +100%{ + transform: translateY(-15deg); +} +} \ No newline at end of file diff --git a/coders-home.html b/coders-home.html new file mode 100644 index 0000000..b0e29c8 --- /dev/null +++ b/coders-home.html @@ -0,0 +1,33 @@ + + + + + + Random Supercoder + + + + + + +
+
+ + +
+
+ Bubble for Welcome + Heroe for Welcome +
+
+ +
+ +
+ + + + \ No newline at end of file diff --git a/coders-namespage.css b/coders-namespage.css new file mode 100644 index 0000000..12c086a --- /dev/null +++ b/coders-namespage.css @@ -0,0 +1,369 @@ +*{ + margin: 0; + padding: 0; + box-sizing: border-box; +} +@media screen and (max-width:760px) { + body{ + height: 100vh; + width: 100vw; + background-color: #78C7E6; + font-family: 'Open Sans', sans-serif; + background-image: url('images/background-mobile.png'); + background-repeat: no-repeat; + background-attachment: fixed; + background-size: cover; + z-index: 1; + } + .container-center{ + width:100vw; + justify-content: center; + margin: 0; + padding: 0; + z-index: 1; + } + .container-header{ + display: inline-flex; + width: 100vw; + justify-content: space-between; + z-index: 1; + } + .logo{ + display: flex; + width: 40vw; + margin-left: 1.5rem; + z-index: 2; + } + #edit--btn{ + margin-top: 4.5vh; + margin-right: 2rem; + width: 20vw; + height: 6vh; + background-color: #003C8D; + border-radius: 0.2rem; + border-style: none; + box-sizing: border-box; + color: white; + cursor: pointer; + list-style: none; + outline: none; + font-family: 'Open Sans'; + font-size: 1.5rem; + font-style: normal; + font-weight: 800; + z-index: 2; + } + .program--container{ + display: absolute; + position: absolute; + height: 10vh; + } + .random--name{ + background-color: #003C8D; + padding: 2rem 2rem; + margin:10rem 1.5rem 2rem; + border-radius: 0.4rem; + transform: translate(0%, 0%); + } + #random--name{ + border-radius: 0.4rem; + text-align: center; + color: #000; + font-size: 1.5rem; + font-style: normal; + font-weight: 700; + line-height: normal; + padding: 0.8rem 0.8rem; + background-color: #EEEEEE; + } + .container--btn{ + display: flex; + justify-content: space-around; + align-items: center; + + } + #tryAgain--btn, #reset--btn { + width: 8rem; + height: 3rem; + flex-shrink: 0; + border-radius: 0.5rem; + background: #FFF; + border-style: none; + box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); + font-family: 'Open Sans'; + font-size: 1rem; + font-style: normal; + font-weight: 800; +} + + #tryAgain--btn{ + animation: wiggle 4s linear infinite; + } + + .hero3-container{ + position: relative; + margin-top: -3rem; + margin-left: 2rem; + z-index: 3; + } + #hero-yourturn{ + position: absolute; + width: 6rem; + transform: rotate(5deg); + flex-shrink: 0; + margin-top: 5.5rem; + animation: vuelo 2.5s linear infinite; + } + #bubble-yourturn{ + position: absolute; + width: 10rem; + margin-left: 6rem; + animation: popOut 3s 1; + } + .hero4-container{ + position: relative; + display: flex; + justify-content: end; + margin-right: 5rem; + margin-top: 2rem; + z-index: 3; + } + #hero-gotthis{ + position: absolute; + width: 5.5rem; + margin-top: 1.5rem; + animation: slideInLeft 1s 1 linear; + } + #bubble-gotthis{ + position: absolute; + width: 9rem; + margin-right: 5.5rem; + animation: popOut 3s 1; + } +} + + +@media screen and (min-width:761px){ + body{ + height: 100vh; + width: 100vw; + font-family: 'Open Sans', sans-serif; + background-image: url('images/background-desktop.png'); + background-repeat: no-repeat; + background-size: cover; + } + .container-center{ + width:100vw; + justify-content: center; + margin: 0; + padding: 0; + } + .container-header{ + display: inline-flex; + width: 100vw; + justify-content: space-between; + } + .logo{ + display: flex; + width: 20vw; + margin-left: 6rem; + z-index: 2; + } + #edit--btn{ + margin-top: 3rem; + margin-right: 5.3rem; + width: 12vw; + height: 6vh; + background-color: #003C8D; + border-radius: 0.2rem; + border-style: none; + box-sizing: border-box; + color: white; + font-family: 'Open Sans'; + font-size: 2rem; + font-style: normal; + font-weight: 800; + outline: none; + z-index: 2; + } + .program--container{ + position: relative; + display: flex; + justify-content: center; + z-index: 1; + } + .random--name{ + position: relative; + top: 2rem; + background-color: #003C8D; + padding: 2rem 2rem; + margin: 5rem 0rem 1rem; + border-radius: 0.4rem; + width: 30rem; + transform: translate(100%, 0%); + } + #random--name{ + position: relative; + border-radius: 0.4rem; + text-align: center; + color: #000; + font-size: 1.8rem; + font-style: normal; + font-weight: 700; + line-height: normal; + padding: 0.8rem 0.8rem; + background-color: #EEEEEE; + width: auto; + } + .container--btn{ + display: inline-flex; + justify-content: space-between; + align-items: center; + width: 30rem; + gap: 2rem; + transform: translate(100%, 0%); + } + #tryAgain--btn, #reset--btn { + position: relative; + top: 2rem; + width: 12rem; + height: 4rem; + flex-shrink: 0; + border-radius: 0.5rem; + background: #FFF; + border-style: none; + box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); + font-family: Open Sans; + font-size: 1.2rem; + font-style: normal; + font-weight: 800; + } + + #tryAgain--btn{ + animation: wiggle 4s linear infinite; + } + + .hero3-container{ + position: relative; + z-index: 3; + } + #hero-yourturn{ + position: absolute; + width: 12rem; + transform: rotate(-15deg); + flex-shrink: 0; + margin-left: 19rem; + margin-top: 8rem; + z-index: 4; + animation: vuelo 2.5s linear infinite; + } + #bubble-yourturn{ + position: absolute; + width: 14rem; + margin-left: 9rem; + margin-top: 2rem; + animation: popOut 3s 1; + } + .hero4-container{ + position: relative; + display: flex; + justify-content: end; + margin-right: 8rem; + margin-top: 4rem; + z-index: 3; + } + #hero-gotthis{ + position: absolute; + width: 10rem; + flex-shrink: 0; + animation: slideInRight 1s 1 linear; + } + #bubble-gotthis{ + position: absolute; + width: 10rem; + margin-right: 9rem; + margin-bottom: 12rem; + animation: popOut 3s 1; + } +} + +@keyframes vuelo{ + 0%{ + transform: translateY(0); +} +50%{ + transform: translateY(30px); +} +100%{ + transform: translateY(0); +} +} + +@keyframes slideInLeft { + 0% { + transform: translate(-20%, 0); + } + 100% { + transform: translate(0, 0); + } +} + +@keyframes slideInRight { + 0% { + transform: translate(20%, 0); + } + 100% { + transform: translate(0, 0); + } +} + +@keyframes popOut { + 0% { + transform: scale(0, 0); + } + 50% { + transform: scale(0, 0); + } + 75% { + transform: scale(1.2, 1.2); + } + 100% { + transform: scale(1, 1); + } +} + +@keyframes wiggle { +0%, 7% { + transform: rotateZ(0); +} +15% { + transform: rotateZ(-15deg); +} +20% { + transform: rotateZ(10deg); +} +25% { + transform: rotateZ(-10deg); +} +30% { + transform: rotateZ(6deg); +} +35% { + transform: rotateZ(-4deg); +} +40%, 100% { + transform: rotateZ(0); +} +} + +@keyframes movimiento{ + 0%{ + transform: translateY(-15deg); +} +50%{ + transform: translateY(30px); +} +100%{ + transform: translateY(-15deg); +} +} \ No newline at end of file diff --git a/coders-namespage.html b/coders-namespage.html new file mode 100644 index 0000000..1626f44 --- /dev/null +++ b/coders-namespage.html @@ -0,0 +1,39 @@ + + + + + + Random Supercoder + + + + + + +
+
+ + +
+
+ Heroe for Your Turn + Bubble for Your Turn +
+
+
+

+
+
+ + +
+
+ +
+ + + + \ No newline at end of file diff --git a/images/.DS_Store b/images/.DS_Store new file mode 100644 index 0000000..d4527e3 Binary files /dev/null and b/images/.DS_Store differ diff --git a/images/Desktop - 3.png b/images/Desktop - 3.png new file mode 100644 index 0000000..9729492 Binary files /dev/null and b/images/Desktop - 3.png differ diff --git a/images/Desktop - 5.png b/images/Desktop - 5.png new file mode 100644 index 0000000..9a38784 Binary files /dev/null and b/images/Desktop - 5.png differ diff --git a/images/Page 2 B&W.png b/images/Page 2 B&W.png new file mode 100644 index 0000000..954ba33 Binary files /dev/null and b/images/Page 2 B&W.png differ diff --git a/images/Page 3 B&W.png b/images/Page 3 B&W.png new file mode 100644 index 0000000..cf7c578 Binary files /dev/null and b/images/Page 3 B&W.png differ diff --git a/images/background-desktop.png b/images/background-desktop.png new file mode 100644 index 0000000..61e1c17 Binary files /dev/null and b/images/background-desktop.png differ diff --git a/images/background-mobile.png b/images/background-mobile.png new file mode 100644 index 0000000..ab14a3b Binary files /dev/null and b/images/background-mobile.png differ diff --git a/images/close.png b/images/close.png new file mode 100644 index 0000000..80f24fa Binary files /dev/null and b/images/close.png differ diff --git a/images/deletebutton.png b/images/deletebutton.png new file mode 100644 index 0000000..8279768 Binary files /dev/null and b/images/deletebutton.png differ diff --git a/images/draw.png b/images/draw.png new file mode 100644 index 0000000..d055e14 Binary files /dev/null and b/images/draw.png differ diff --git a/images/edit-dsk-bubble-manage.png b/images/edit-dsk-bubble-manage.png new file mode 100644 index 0000000..1f84502 Binary files /dev/null and b/images/edit-dsk-bubble-manage.png differ diff --git a/images/editbutton.png b/images/editbutton.png new file mode 100644 index 0000000..a6e9c42 Binary files /dev/null and b/images/editbutton.png differ diff --git a/images/header-desktop.png b/images/header-desktop.png new file mode 100644 index 0000000..c63668f Binary files /dev/null and b/images/header-desktop.png differ diff --git a/images/header-mobile.png b/images/header-mobile.png new file mode 100644 index 0000000..0a29204 Binary files /dev/null and b/images/header-mobile.png differ diff --git a/images/heroe1.png b/images/heroe1.png new file mode 100644 index 0000000..948d43e Binary files /dev/null and b/images/heroe1.png differ diff --git a/images/heroe2.png b/images/heroe2.png new file mode 100644 index 0000000..227bda9 Binary files /dev/null and b/images/heroe2.png differ diff --git a/images/heroe3.png b/images/heroe3.png new file mode 100644 index 0000000..8dba55f Binary files /dev/null and b/images/heroe3.png differ diff --git a/images/heroe4.png b/images/heroe4.png new file mode 100644 index 0000000..2f8ed6d Binary files /dev/null and b/images/heroe4.png differ diff --git a/images/heroe5.png b/images/heroe5.png new file mode 100644 index 0000000..d629966 Binary files /dev/null and b/images/heroe5.png differ diff --git a/images/home-background-desktop.png b/images/home-background-desktop.png new file mode 100644 index 0000000..e06970e Binary files /dev/null and b/images/home-background-desktop.png differ diff --git a/images/home-background-mobile.png b/images/home-background-mobile.png new file mode 100644 index 0000000..34a80ed Binary files /dev/null and b/images/home-background-mobile.png differ diff --git a/images/home-dsk-bubble-ready.png b/images/home-dsk-bubble-ready.png new file mode 100644 index 0000000..2c73440 Binary files /dev/null and b/images/home-dsk-bubble-ready.png differ diff --git a/images/home-dsk-bubble-welcome.png b/images/home-dsk-bubble-welcome.png new file mode 100644 index 0000000..e0322f6 Binary files /dev/null and b/images/home-dsk-bubble-welcome.png differ diff --git a/images/i-can-yo-puedo.gif b/images/i-can-yo-puedo.gif new file mode 100644 index 0000000..2b30ad6 Binary files /dev/null and b/images/i-can-yo-puedo.gif differ diff --git a/images/logoSuperCoders-01.png b/images/logoSuperCoders-01.png new file mode 100644 index 0000000..3c96571 Binary files /dev/null and b/images/logoSuperCoders-01.png differ diff --git a/images/names-dsk-bubble-yougot.png b/images/names-dsk-bubble-yougot.png new file mode 100644 index 0000000..2d5940e Binary files /dev/null and b/images/names-dsk-bubble-yougot.png differ diff --git a/images/names-dsk-bubble-yourturn.png b/images/names-dsk-bubble-yourturn.png new file mode 100644 index 0000000..6167580 Binary files /dev/null and b/images/names-dsk-bubble-yourturn.png differ diff --git a/images/namespage-background-desktop.png b/images/namespage-background-desktop.png new file mode 100644 index 0000000..43b3073 Binary files /dev/null and b/images/namespage-background-desktop.png differ diff --git a/images/namespage-background-mobile.png b/images/namespage-background-mobile.png new file mode 100644 index 0000000..a450607 Binary files /dev/null and b/images/namespage-background-mobile.png differ diff --git a/supercoder.js b/supercoder.js new file mode 100644 index 0000000..a73184c --- /dev/null +++ b/supercoder.js @@ -0,0 +1,127 @@ +const superCoders = [ "Cyntia", "Diego A", "Fernando", "Geovanny", "Gisela", "Jaime", "Jassed", "Jes", "Jimmy", "Jorge", "Pedro", "Raúl", "Rubén", "Sophia", "Thuanny", "Virginia", "Adriana", "Luis", "Ainhoa", "Andrea", "Diego B", "Emily", "Víctor", "Wanda", "Bryan"]; + +function changeName() { + if (superCoders.length <= 0) { + alert("El último Coder ya ha sido seleccionado."); // Alerta cuando es el último coder + window.location.href = "coders-home.html"; // Volver a la pantalla de inicio + return; + } + + let index = Math.floor(Math.random() * superCoders.length); + let coderName = superCoders[index]; + superCoders.splice(index, 1); // No volverá a aparecer el coder seleccionado + + document.getElementById("random--name").textContent = coderName; + swal.fire({ + title: `${coderName}, It's your turn!`, + text: 'You can!!!', + width: 600, + padding: '3em', + color: '#78C7E6', + background: '#fff url(/images/trees.png)', + backdrop: ` + rgba(120, 199, 230, 0.4) + url("images/i-can-yo-puedo.gif") + top + no-repeat + ` + }); // Aviso del nombre del coder seleccionado +} + +//agregar nombres +function anotherCoder(){ + let newName = document.querySelector("#newName").value + superCoders.push(newName); + document.querySelector("#newName").value = ""; + showNames(); +}; + +//mostrar lista +function showNames(){ + let list = document.querySelector("#namesList"); + list.innerHTML = ""; + for (let i = 0; i < superCoders.length; i++){ + let li = document.createElement("li"); + li.innerHTML = `${superCoders[i]} `; + list.appendChild(li); + } +}; + +function editName(index){ + let namePrompt = prompt("Edita el nombre del superCoder", superCoders[index]); + superCoders[index] = namePrompt + showNames(); +} + +function removeName(index) { + Swal.fire({ + title: 'Are you sure?', + text: "You won't be able to revert this!", + icon: 'warning', + showCancelButton: true, + confirmButtonColor: '#3085d6', + cancelButtonColor: '#d33', + confirmButtonText: 'Yes, delete it!', + backdrop:` + rgba(0,0,123,0.4) + url("images/spiderman-deadpool.gif") + left-start + no-repeat + ` + }).then((result) => { + if (result.isConfirmed) { + superCoders.splice(index,1) + showNames() + Swal.fire({ + title: 'Deleted!', + text: 'Your file has been deleted.', + icon: 'success', + }) + } + }) +} + +function reset(){ + location.reload() +} + +showNames() + + +function deleteAll() { + superCoders.length = 0; + showNames(); +} + + +document.getElementById("deleteAll--btn").addEventListener("click", deleteAll); + + + +//Animación de heroes +let firstHero = document.getElementByClass("hero1-container"); +let opacity = 0; + +let fadeInFirstHero = setInterval(() => { + if (opacity >= 1) { + clearInterval(fadeInFirstHero); + } + firstHero.style.opacity = opacity; + opacity += 0.01; +}, 5); + +function alertMsj(){ + Swal.fire({ + position: 'center', + icon: 'success', + title: 'Your work has been saved', + showConfirmButton: false, + timer: 2000, + backdrop: ` + rgba(120, 199, 230, 0.4) + url("images/spiderman-deadpool.gif") + left-start + no-repeat + ` + }) +}