Skip to content

Commit eb8f445

Browse files
committed
Merge branch 'master' of https://github.com/Miodec/monkey-type
2 parents 65d30ad + c812481 commit eb8f445

10 files changed

Lines changed: 78 additions & 32 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ If you wish to support further development and feeling extra awesome, you can do
3535
1. Head to [the firebase console](https://console.firebase.google.com/u/0/) and make a new project (the project name doesnt really matter, but just name it `monkey-type`). You dont need to enable analytics for it.
3636
2. Install the [Firebase Command Line Interface](https://firebase.google.com/docs/cli), and use `firebase login` to log in to the same google account as you just used to make the project
3737
3. Make sure the project name inside `.firebaserc` is the same as what you made it in step 1
38-
4. Git clone the project and then run `firebase serve --only functions` to start a local server on post 5000. Use ctrl+c to stop it.
38+
4. Git clone the project and then run `firebase serve --only hosting` to start a local server on post 5000. Use ctrl+c to stop it.
3939

4040
That should be it. If you run into any problems, let me know.

public/css/style.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,21 @@ a:hover {
351351
transition: 0.25s;
352352
padding: 0.5rem;
353353
border-radius: var(--roundness);
354+
&.discord{
355+
position: relative;
356+
&::after{
357+
transition: .25s;
358+
width: .5rem;
359+
height: .5rem;
360+
content: "";
361+
position: absolute;
362+
background: #da3333;
363+
border-radius: 1rem;
364+
top: .25rem;
365+
right: .25rem;
366+
border: 2px solid var(--bg-color);
367+
}
368+
}
354369
&:focus{
355370
background: var(--sub-color);
356371
color: var(--main-color);
@@ -360,6 +375,9 @@ a:hover {
360375
}
361376
}
362377

378+
#top.focus #menu .button.discord::after{
379+
background: transparent;
380+
}
363381

364382
#menu .button .icon {
365383
display: grid;

public/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
<i class="fas fa-fw fa-info"></i>
8383
</div>
8484
</div>
85+
<a class="button discord" tabindex="2" href="https://discord.gg/xMYrWg6" onclick="this.blur();" target="_blank" style="text-decoration: none;">
86+
<div class="icon">
87+
<i class="fab fa-discord"></i>
88+
</div>
89+
</a>
8590
<div class="button" tabindex="2" href="/settings" onclick="this.blur();">
8691
<div class="icon">
8792
<i class="fas fa-fw fa-cog"></i>
@@ -200,7 +205,7 @@ <h1>stats</h1>
200205
</div>
201206
<div class="section">
202207
<h1>bug report or feature request</h1>
203-
<p>If you encounter a bug, or have a feature request - send me a message on Reddit, create an issue on <a href="https://github.com/Miodec/monkey-type">GitHub</a> or send me a message using the command line <key>esc</key>.</p>
208+
<p>If you encounter a bug, or have a feature request - join the <a href="https://discord.gg/xMYrWg6">Discord server</a>, send me a message on Reddit, create an issue on <a href="https://github.com/Miodec/monkey-type">GitHub</a> or send me a message using the command line <key>esc</key>.</p>
204209
</div>
205210
<div class="section">
206211
<h1>credits</h1>

public/js/account.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ firebase.auth().onAuthStateChanged(function(user) {
122122
var providerData = user.providerData;
123123
showNotification('Signed in', 2000);
124124
$(".pageLogin .preloader").addClass('hidden');
125-
updateAccountLoginButton()
125+
updateAccountLoginButton();
126126
}
127127
});
128128

public/js/commandline.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ let commands = {
9696
showCommandLine();
9797
}
9898
},
99+
{
100+
id: "joinDiscord",
101+
display: "Join the Discord server",
102+
exec: () => {
103+
window.open("https://discord.gg/xMYrWg6")
104+
}
105+
},
99106
{
100107
id: "sendDevMessage",
101108
display: "Send a message ( bug report / feature request / feedback )...",

public/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ function updateAccountLoginButton() {
791791
// $("#menu .button.account").removeClass('hidden');
792792
// $("#menu .button.login").addClass('hidden');
793793
} else {
794-
swapElements($("#menu .button.login"), $("#menu .button.account"), 250);
794+
swapElements($("#menu .button.account"), $("#menu .button.login"), 250);
795795
// $("#menu .button.login").removeClass('hidden');
796796
// $("#menu .button.account").addClass('hidden');
797797
}

public/themes/dots.css

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,44 @@
2121
color: #121520;
2222
}
2323

24-
#menu .button:nth-child(1){
25-
background: #9261ff;
26-
}
27-
28-
#menu:before{
24+
/* #menu:before{
2925
content: "";
3026
background: #f94348;
3127
width: 1.25rem;
3228
height: 1.25rem;
3329
padding: .5rem;
3430
border-radius: 10rem;
35-
}
31+
} */
3632

37-
#menu:after{
38-
content: "";
39-
background: #ff9349;
40-
width: 1.25rem;
41-
height: 1.25rem;
42-
padding: .5rem;
43-
border-radius: 10rem;
33+
#menu .button:nth-child(1){
34+
background: #f94348;
4435
}
4536

4637
#menu .button:nth-child(2){
47-
background: #3cc5f8;
38+
background: #9261ff;
4839
}
4940

5041
#menu .button:nth-child(3){
42+
background: #3cc5f8;
43+
}
44+
45+
#menu .button:nth-child(4){
5146
background: #4acb8a;
5247
}
5348

54-
#menu .button:nth-child(4), #menu .button:nth-child(5){
49+
#menu .button:nth-child(5), #menu .button:nth-child(6){
5550
background: #ffd543;
56-
}
51+
}
52+
53+
#menu:after{
54+
content: "";
55+
background: #ff9349;
56+
width: 1.25rem;
57+
height: 1.25rem;
58+
padding: .5rem;
59+
border-radius: 10rem;
60+
}
61+
62+
#top.focus #menu .button.discord::after{
63+
border-color: transparent;
64+
}

public/themes/dracula.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,25 @@
1818
}
1919

2020
#menu .button:nth-child(1){
21-
color: #8be9fd;
21+
color: #ec75c4;
2222
}
2323

2424
#menu .button:nth-child(2){
25-
color: #50fa7b;
25+
color: #8be9fd;
2626
}
2727

2828
#menu .button:nth-child(3){
29-
color: #f1fa8c;
29+
color: #50fa7b;
3030
}
3131

3232
#menu .button:nth-child(4){
33-
color: #ffb86c;
33+
color: #f1fa8c;
3434
}
3535

3636
#menu .button:nth-child(5){
3737
color: #ffb86c;
38+
}
39+
40+
#menu .button:nth-child(6){
41+
color: #ffb86c;
3842
}

public/themes/oblivion.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@
66
}
77

88
#menu .button:nth-child(1){
9-
color: #8db14b;
9+
color: #9a90b4;
1010
}
1111

1212
#menu .button:nth-child(2){
13-
color: #fca321;
13+
color: #8db14b;
1414
}
1515

1616
#menu .button:nth-child(3){
17+
color: #fca321;
18+
}
19+
20+
#menu .button:nth-child(4){
1721
color: #2984a5;
1822
}
1923

20-
#menu .button:nth-child(4),
21-
#menu .button:nth-child(5){
24+
#menu .button:nth-child(5),
25+
#menu .button:nth-child(6){
2226
color: #dd452e;
2327
}

public/themes/serika.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:root {
2-
--bg-color: #e2b714;
3-
--main-color: #323437;
4-
--caret-color: #323437;
5-
--sub-color: #d1d0c5;
2+
--main-color: #e2b714;
3+
--caret-color: #e2b714;
4+
--sub-color: #323437;
5+
--bg-color: #e1e1e3;
66
}

0 commit comments

Comments
 (0)