Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Style and text updates to voting route components #241

Merged
merged 3 commits into from
May 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions src/components/VoteLeaderboardSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@
<v-row>
<v-col>
<h2 class="ballot-header mt-8 mb-8">
<slot name="header">Vote Now</slot>
<slot name="header">Hall of Champions</slot>
</h2>
<SearchBar v-model="searchText" />

<div style="color:#0d1d41" class="mb-6 mt-4 text-center">
<slot name="content">
Behold, the final contestants who have completed 21 coding
challenges, a noble and righteous accomplishment! Now, they have
defeated the mighty dragon in the end boss level and qualified for
the grand prize, but they need your help!
Each of these amazing kid coders has used their coding skills for
good and successfully helped Nym and the AllSnacks Alliance save the
galaxy. Now, they have a chance to win the $100 grand prize, but
they need your help!
<br />
<br />
<b>
View the contestants and their code, then Vote for the winner of
our first ever kids coding challenge, The Dragon Quest. Their fate
is in your hands.
</b>
View the contestants and their code, then vote for the winner of
our 2021 Code Challenge, The Deep Space Crystal Chase. </b
>The 10 students with the most votes will have their code
<router-link :to="'/mission'"
>reviewed by the Galactic Wizard Panel</router-link
>
and one worthy student will be our champion.
</slot>
</div>

Expand Down Expand Up @@ -101,7 +104,7 @@ export default {
showModal: false,
searchText: "",
item: null,
per: 50,
per: 10,
pageData: {
hasNext: false,
hasPrev: false,
Expand Down
13 changes: 9 additions & 4 deletions src/views/Voting/Ballot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,18 @@ h2 {
.colored {
display: block;
position: relative;
background-color: #a1c5d3;
color: #011e41;

background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAJOBAMAAAAZi7vnAAAAFVBMVEUAAAANHUENHUENHUENHUENHUENHUGmH0x+AAAAB3RSTl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wblSM3FOk+QHAWdx8DVkh4NahL0d0bVbNc747pv1t8a1yFT5yBxP2CdewBHivWzMNiY9Ztl1ki6NJm5Bl2cKj2Crk3EbkCHw5RqAl2bRH4EXRxEfgVdmwB/AF2cXj+Ark3er0CHHkBVgy7+jwcj6BwkXjzrECSIFOjvbFs1oEOQqO6gQw+AOrDe2/a6ov4Q9Ir0syk1gH4zqcakfjKt6qQeTawxobemVrOud9Hkmlb1t6bXcU3vrERdV/RHEf2wrPdWpoZF/VZIr5b0s5WqekG/WLEan/TWylX9pGOQ/jxSs/7OSlbzq95Z2brPOvQAKVLRIEhSP4gGPUCKVDQIktQPokEPkCIVDQ5TKVLRIEjS4sEWIgW6WNOu+hF0NVK76gfQxRp21SvQxapBV+sTmm8p+Vy1KnIAAAAASUVORK5CYII=),
background-image: url(https://codewizardshq.com/wp-content/uploads/2021/02/night-sky-stars-2021.svg);
background-size: cover;

/* background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAJOBAMAAAAZi7vnAAAAFVBMVEUAAAANHUENHUENHUENHUENHUENHUGmH0x+AAAAB3RSTlMAJggOHxQakIj64wAAB35JREFUeNrt3c2u0zAQhuEhTbN3mmbtIC6gRWJPuIIWiX0jcf/XgPgN0MSvyecgkGa2HJ7jpv7G56B6sD+oj7Zj1eGt7Vdj6AxKWXoIre1UVfhc0fap4Yt+sl3qEL7Wxfao+zf9bDvUMXyvh5Wv6Yfel8ebMFf5SI0zXj5Sdfi53u239PKRGn6mS/eDanZ3iNT1ST/vEaS5bgV7wHP1ewQpFO8H06Le7RCk4v1gXNG7WHbpECk5SKX7wZDQT/phmqpbySBBP5B6QPlITaD3pXpA+UiNqHdKkLhaZelcUQ9S+cVXwGpH7HVB6iBSUpA6G6EfKD3grdVlItWsbO5Jj9SK8kh8VzlIfeKJ6UG6rXf8KC/9nAhZKwfpwn/IxcsbhCOWH60SKd4WWqSOuKVH4YiFOGqRauB1C5GClw0PTwgSNv9W6QGctwg0RkWIFKw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aWjKTeOHA2g3IvXy9HqK7a3IovTiuuFC2RulXsUKAUTnupH/8TFpZJ7y2P5FeTf7vZv0EwkjbLvPoQUwAAAAASUVORK5CYII=);
background-position: left center, right center;
background-repeat: no-repeat;
background-repeat: no-repeat; */

h2 {
color: white;
}

a {
small {
Expand Down
34 changes: 26 additions & 8 deletions src/views/Voting/CodeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,38 @@ export default {
instructionComments() {
if (this.isPython) {
return `
# A prime number is a number that is divisible only by itself and 1 (e.g. 2, 3, 5, 7, 11).
# I want you to create a computer program, written in Python that does the following;
# find all prime numbers < 1000
# add all those prime numbers up and display the result
# A Caeser Cipher is one of the earliest examples of cryptography. It was used to encrypt messages so that they could not be read by just anyone, only those who knew how the encryption works. Today, encryption is all around us - in our emails, over WiFi, everywhere!

# Your task is to implement the Caesar Cipher algorithm. Please review this video of how the algorithm works before beginning your code: https://www.youtube.com/watch?v=o6TPx1Co_wg.

# Please encrypt this string using this algorithm: "Glorm is defeated and the crystal has been returned by the Allsnacks Alliance!"
# *You should assume that a space will remain a space in the encrypted string.

# You must adhere to the following guidelines:
# --As defined in the video, the algorithm uses a numeric "shift" value. You should use a shift of 8 in your code.
# --You should IGNORE any characters that are not a letter (this includes symbols such as #*!$^) and they should not be in your output.
# --Your output should take into account both uppercase and lowercase letters. That is, both a lowercase ''a'' and uppercase ''A'' will have the same shift value.
# --Your final answer should be in all capital letters.

# Your submission should be the FULL CODE you used to generate the output, not just one line that displays the output. Please submit the code you used to actually do the encryption. Good luck!

`;
} else {
return `
// A prime number is a number that is divisible only by itself and 1 (e.g. 2, 3, 5, 7, 11).
// I want you to create a computer program, written in Python that does the following;
// find all prime numbers < 1000
// add all those prime numbers up and display the result
// A Caeser Cipher is one of the earliest examples of cryptography. It was used to encrypt messages so that they could not be read by just anyone, only those who knew how the encryption works. Today, encryption is all around us - in our emails, over WiFi, everywhere!

// Your task is to implement the Caesar Cipher algorithm. Please review this video of how the algorithm works before beginning your code: https://www.youtube.com/watch?v=o6TPx1Co_wg.

// Please encrypt this string using this algorithm: "Glorm is defeated and the crystal has been returned by the Allsnacks Alliance!"
// *You should assume that a space will remain a space in the encrypted string.

// You must adhere to the following guidelines:
// --As defined in the video, the algorithm uses a numeric "shift" value. You should use a shift of 8 in your code.
// --You should IGNORE any characters that are not a letter (this includes symbols such as #*!$^) and they should not be in your output.
// --Your output should take into account both uppercase and lowercase letters. That is, both a lowercase ''a'' and uppercase ''A'' will have the same shift value.
// --Your final answer should be in all capital letters.

// Your submission should be the FULL CODE you used to generate the output, not just one line that displays the output. Please submit the code you used to actually do the encryption. Good luck!

`;
}
Expand Down