@@ -35,7 +35,7 @@
Total sessions: {{this.$store.getters.nbSessions}}
@@ -148,7 +148,6 @@ export default {
position: relative;
background: #504746;
width: 100%;
- height: 300px;
border-radius: 16px;
padding: 16px 24px 18px 24px;
color: white;
@@ -162,7 +161,6 @@ export default {
font-size: 36px;
}
-
#word-definition {
margin-top: 16px;
}
@@ -179,17 +177,14 @@ export default {
font-weight: lighter;
}
-#btn {
+#btn-newword {
text-align: center;
- margin-top: 24px;
+ margin-top: 16px;
}
.btn {
font-size: 20px;
padding: 8px;
-}
-
-#fetch {
margin-bottom: 8px;
}
@@ -205,12 +200,9 @@ export default {
#see-words {
margin-top: 16px;
}
-
-@media (max-width: 835px) {
- #container-infos {
- display: none;
- }
-}
+/* ********** */
+/* RESPONSIVE */
+/* ********** */
@media (max-width: 1400px) {
#time {
@@ -218,4 +210,18 @@ export default {
}
}
+@media (max-width: 835px) {
+ #container-infos {
+ width: 50%;
+ margin-left: 8px;
+ }
+}
+
+
+@media (max-width: 550px) {
+ #container-infos {
+ display: none;
+ }
+}
+
\ No newline at end of file
diff --git a/src/components/Pomodoro.vue b/src/components/Pomodoro.vue
index d09afbf..82e9f5b 100644
--- a/src/components/Pomodoro.vue
+++ b/src/components/Pomodoro.vue
@@ -135,7 +135,7 @@ export default {
} else {
alert("SESSION TERMINรE ๐");
this.nbSessionsFinished++;
- this.$store.commit("setNbSessions");
+ this.$store.commit("updateNbSessionsFinished");
if (this.nbSessionsFinished === 4) {
this.setupPauseTimer(LONG_PAUSE);
this.nbSessionsFinished = 0;
@@ -199,9 +199,9 @@ export default {
this.seconds = "0" + this.seconds;
}
if (this.isRestingTime) {
- document.title = "PAUSE ๐ " + this.minutes + ":" + this.seconds;
+ document.title = "๐ " + this.minutes + ":" + this.seconds;
} else {
- document.title = "WORKING ๐
" + this.minutes + ":" + this.seconds;
+ document.title = "๐
" + this.minutes + ":" + this.seconds;
}
}
},
@@ -305,27 +305,41 @@ export default {
-webkit-transform: rotate(45deg);
}
-@media (min-width: 635px) {
+#message {
+ font-size: 1.6rem;
+}
+
+.dot {
+ height: 25px;
+ width: 25px;
+ background-color: lightslategrey;
+ border-radius: 50%;
+ margin: 12px 4px 12px 4px;
+ display: inline-block;
+}
+
+.active {
+ height: 25px;
+ width: 25px;
+ background-color: mediumseagreen;
+ border-radius: 50%;
+ margin: 12px 4px 12px 4px;
+ display: inline-block;
+}
+/* ********** */
+/* RESPONSIVE */
+/* ********** */
+
+@media (max-width: 835px) {
+ #container {
+ margin-top: 16px;
+ }
#message {
font-size: 1.6rem;
}
-
- .dot {
- height: 25px;
- width: 25px;
- background-color: lightslategrey;
- border-radius: 50%;
- margin: 12px 4px 12px 4px;
- display: inline-block;
- }
-
- .active {
- height: 25px;
- width: 25px;
- background-color: mediumseagreen;
- border-radius: 50%;
- margin: 12px 4px 12px 4px;
- display: inline-block;
+ .pomodoro {
+ margin-right: 8px;
+ width: 50%;
}
}
@@ -337,38 +351,12 @@ export default {
margin-right: 8px;
margin-left: 8px;
}
- #container {
- margin-left: 16px;
- margin-right: 16px;
- }
}
-@media (max-width: 835px) {
+@media (max-width: 550px) {
.pomodoro {
- margin-right: 0px;
width: 100%;
- }
-
- #message {
- font-size: 1.6rem;
- }
-
- .dot {
- height: 25px;
- width: 25px;
- background-color: lightslategrey;
- border-radius: 50%;
- margin: 12px 4px 12px 4px;
- display: inline-block;
- }
-
- .active {
- height: 25px;
- width: 25px;
- background-color: mediumseagreen;
- border-radius: 50%;
- margin: 12px 4px 12px 4px;
- display: inline-block;
+ margin-right: 0;
}
}
diff --git a/src/components/Settings.vue b/src/components/Settings.vue
index f7dca1f..fbae9bd 100644
--- a/src/components/Settings.vue
+++ b/src/components/Settings.vue
@@ -1,8 +1,8 @@
-
@@ -21,7 +21,7 @@ export default {
grey: "#d4d4e8",
salmon: "#E6CEBD"
},
- activeColor: "#504746"
+ activeColor: "#504746",
}
},
methods: {
@@ -32,14 +32,14 @@ export default {
this.$store.commit("setColorSelected", color);
},
removeActiveColorFromPalette() {
- const palette = document.querySelectorAll(".color-palette-item");
+ const palette = document.querySelectorAll(".bubble-item");
for (let i = 0; i < palette.length; i++) {
palette[i].style.borderColor = "lightslategrey";
}
},
setFirstColor() {
// get first div of color-palette
- const palette = document.querySelectorAll(".color-palette-item");
+ const palette = document.querySelectorAll(".bubble-item");
palette[0].style.borderColor = this.activeColor;
}
},
@@ -52,7 +52,7 @@ export default {
\ No newline at end of file
diff --git a/src/components/YtbPlayer.vue b/src/components/YtbPlayer.vue
index 5ad13e5..c5256db 100644
--- a/src/components/YtbPlayer.vue
+++ b/src/components/YtbPlayer.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/store/index.js b/src/store/index.js
index 7795e76..bcf28cb 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,6 +1,5 @@
// store/index.js
-
import Vue from "vue";
import Vuex from "vuex";
@@ -29,7 +28,7 @@ export default new Vuex.Store({
setColorSelected(state, color) {
state.colorSelected = color;
},
- setNbSessions(state) {
+ updateNbSessionsFinished(state) {
state.nbSessions++;
}
},