Refactored the whole app 🔧

This commit is contained in:
2022-05-05 20:31:45 -03:00
parent 3fb0f5bc6c
commit c9115e2ef8
90 changed files with 2738 additions and 3566 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,15 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- CSS -->
<link rel="stylesheet" href="./css_styles/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rambla:wght@400;700&display=swap" rel="stylesheet">
<!-- CSS -->
<meta charset="utf-8" />
<link rel="icon" href="./img/favicon.ico" id="favicon" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

View File

@@ -1,95 +0,0 @@
#about-this, #credits {
height: 83vh;
padding: 0px 3vw;
padding-top: 5vh;
padding-bottom: 5vh;
display: flex;
flex-direction: column;
align-items: stretch;
.titles {
display: flex;
h3 {
width: 50%;
@include titleFont;
@include normalizeTitle;
font-size: 22pt;
.line-through {
text-decoration: line-through;
text-decoration-thickness: 3px;
}
}
}
.information {
display: flex;
ul {
width: 50%;
li {
margin-top: 3vh;
h4 {
@include normalizeTitle;
@include bodyFont;
font-size: 18pt;
}
p {
@include normalizeBody;
@include bodyFont;
font-size: 13pt;
margin-left: 2vw;
margin-top: 1vh;
}
}
}
}
}
#credits {
height: 95vh;
}
@media (max-width: 918px) {
#about-this, #credits {
height: auto;
padding-bottom: 5vh;
}
}
#about-this.dark-mode-component, #credits.dark-mode-component {
background-color: $second-color-dark;
color: #ffffff;
.information {
display: flex;
ul {
li {
p {
a {
color: $lightest-color-dark;
}
}
}
}
}
}

View File

@@ -1,213 +0,0 @@
html, body {
height: 100%;
}
.account-container {
height: 69vh; //xd
#message {
padding-left: 5vw;
background-color: #ff6a6a;
h1 {
@include titleFont();
@include normalizeTitle();
color: #ffffff;
padding: 2vh 0px;
}
}
.successfully {
background-color: #75b7ff !important;
h1 {color: #3a3a3a !important;}
}
.next-step {
.disabled {
user-select: none;
cursor: initial;
pointer-events: none;
opacity: 30%;
}
.next-step-title {
padding-left: 5vw;
padding-top: 5vh;
background-color: $light-color;
h1, h2 {
@include normalizeTitle();
@include titleFont();
color: $second-color;
padding-bottom: 3vh;
}
}
form {
width: 50vw;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 1vh;
input {
height: 4vh;
width: 60%;
margin-bottom: 1vh;
border: none;
border-bottom: 1px solid $border-color;
outline: none;
}
input[type=submit] {
width: 50%;
border: $border-color solid 1px;
}
}
form .disabled {
opacity: 0%;
}
.flex-container-change-api-container {
padding-left: 5vw;
.change-api-container {
width: 50vw;
background-color: $lightest-color;
display: flex;
flex-direction: column;
padding-top: 1vh;
border-radius: 2px;
padding-left: 1vw;
.api-preview-container {
.title {
@include normalizeTitle();
@include titleFont();
}
.api-preview {
font-weight: bold;
}
}
#change-API-button {
height: 4vh;
width: 20vw;
margin-bottom: 1vh;
border: none;
outline: none;
border: $border-color solid 1px;
}
}
}
}
}
.loading-container {
width: 100%;
height: 83vh;
display: flex;
justify-content: center;
align-items: center;
}
@media (max-width: 991.98px) {
.account-container {
.next-step {
display: flex;
.next-step-title {
h1 {
font-size: 15pt;
}
h2 {
font-size: 12pt;
}
}
.flex-container-change-api-container{
.change-api-container {
width: auto;
}
}
}
}
}
.account-container.dark-mode-component {
background-color: $second-color-dark;
.next-step {
.next-step-title {
background-color: $lightest-color-dark;
h1, h2 {
color: #ffffff;
a {
color: $lightest-color;
}
a:visited {
color: $light-color;
}
}
}
.flex-container-change-api-container {
.change-api-container {
background-color: $lightest-color-dark;
.api-preview-container {
p {
color: rgb(255, 255, 255)
}
}
}
}
}
}
.loading-container.dark-mode-component {
background-color: $second-color-dark
}

View File

@@ -1,104 +0,0 @@
.banner-login {
background-color: #D17262;
color: white;
@include bodyFont();
display: flex;
align-items: center;
justify-content: space-between;
padding: 0px 5vw;
height: 8vh;
p {
@include normalizeBody();
}
.button-container {
width: 20vw;
display: flex;
justify-content: space-around;
button {
@include normalizeButton();
font-size: 12pt;
font-weight: bold;
color: #ffffff;
height: 6vh;
cursor: pointer;
}
.register {
border: solid 1px #ffffff;
border-radius: 24px;
}
.login {
background-color: #00000057;
border-radius: 24px;
}
}
}
.banner-login.blank {
opacity: 0%;
}
@media (max-width: 918px) {
.banner-login {
justify-content: initial;
height: auto;
padding: 2vh 2vw;
p {
width: 33.3%;
}
.button-container {
width: 66.6%;
justify-content: space-around;
button {
width: 30%;
}
}
}
}
@media (max-width: 576px) {
.banner-login {
p {
width: 50%;
}
.button-container {
width: 50%;
flex-direction: column;
button {
width: 75%;
margin: 10px;
}
}
}
}
.banner-login.blank.dark-mode-component {
opacity: 100%;
background-color: $main-color-dark;
}

View File

@@ -1,114 +0,0 @@
.clockify-tasks-display {
width: 20vw;
position: absolute;
top: 60vh;
left: 2.5vw;
&.loading-container {
width: 20vw;
height: auto;
background: none;
}
&.disabled {
user-select: none;
cursor: initial;
pointer-events: none;
opacity: 30%;
}
.workspace-selector, .project-selector {
width: 15vw;
height: 3vw;
&.disabled {
user-select: none;
cursor: initial;
pointer-events: none;
opacity: 30%;
}
}
select {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
input[type=text] {
width: 15vw;
height: 3vw;
@include bodyFont();
font-size: 12pt;
outline: none;
padding: 1px 2px;
box-sizing: border-box;
&.disabled {
user-select: none;
cursor: initial;
pointer-events: none;
opacity: 30%;
}
}
}
@media (max-width: 991.98px) {
.clockify-tasks-display {
position: initial;
width: auto;
display: flex;
justify-content:space-around;
padding: 3vh 5vw;
&.loading-container {
width: 90%;
height: auto;
}
.workspace-selector, .project-selector, input[type=text] {
width: 20vw;
height: 5vw;
}
}
}
@media (max-width: 576px) {
.clockify-tasks-display {
position: initial;
width: auto;
display: flex;
flex-direction: column;
align-items: center;
&.loading-container {
width: 90%;
height: auto;
}
.workspace-selector, .project-selector, input[type=text] {
width: 70%;
height: 4vh;
margin-top: 1vh;
}
}
}
.clockify-tasks-display-container.dark-mode-container {
background-color: $second-color-dark;
}

View File

@@ -1,81 +0,0 @@
.dark-mode {
position: absolute;
top: 1.7vh;
left: calc(100% - 5vw);
#dark-mode_toogle-switch {
width: 0;
height: 0;
visibility: hidden;
}
label {
display: block;
width: 4vw;
height: 4vh;
background-color: $lightest-color;
border-radius: 100px;
position: relative;
cursor: pointer;
transition: 0.5s;
box-shadow: 0 0 20px #477a8550;
}
label::after {
content: "";
width: 3.5vh;
height: 3.5vh;
background-color: #b632eb;
position: absolute;
border-radius: 100%;
top: 0.25vh;
left: 0.25vh;
transition: 0.5s;
}
input:checked + label:after {
left: calc(100% - 0.25vh);
transform: translateX(-100%);
background-color: $lightest-color;
}
input:checked + label{
background-color: #b632eb;
}
}
@media (max-width: 991.98px) {
.dark-mode {
position: initial;
label {
width: 50px;
height: 20px;
}
label::after {
width: 15px;
height: 15px;
}
}
}
@media (max-width: 576px) {
.dark-mode {
label {
width: 50px;
height: 20px;
}
label::after {
width: 15px;
height: 15px;
}
margin-bottom: 20px;
}
}

View File

@@ -1,49 +0,0 @@
.go-down {
height: 8vh;
display: flex;
justify-content: center;
svg {
height: 6vh;
width: 6vh;
cursor: pointer;
path {
fill: rgb(170, 170, 170);
// CREDITS TO https://stackoverflow.com/a/49627345
}
}
}
.go-down-separator-line {
width: 100%;
display: flex;
justify-content: center;
hr {
height: 1px;
width: 75%;
border: none;
border-top: 1px solid rgb(184, 184, 184);
}
}
.go-down-separator-line.dark-mode-component {
background-color: $main-color-dark;
}
.go-down.dark-mode-component {
background-color: $main-color-dark;
}
.go-down.dark-mode-component#go-to-credits {
background-color: $second-color-dark;
}

View File

@@ -1,104 +0,0 @@
.go-to-account {
width: 3vw;
height: 3vw;
position: absolute;
top: 10.5vh;
left: 87vw;
background-color: $second-color;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
.go-to-account-text {
@include titleFont();
font-size: 1vw;
text-decoration: none;
user-select: none;
color: #ffffff;
}
}
.close-session {
width: 7vw;
height: 3vw;
position: absolute;
top: 10.5vh;
left: 91vw;
background-color: $second-color;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5%;
.close-session-text {
@include titleFont();
font-size: 1vw;
text-decoration: none;
user-select: none;
color: #ffffff;
}
}
@media (max-width: 991.98px) {
//! I fucking hate make the responsive design
.go-to-account, .close-session {
position: initial;
padding: 1vw;
}
.go-to-account {
.go-to-account-text {
font-size: 9pt;
}
margin-top: 10px;
margin-bottom: 10px;
}
.close-session {
.close-session-text {
font-size: 9pt;
}
}
}
@media (max-width: 576px) {
.go-to-account, .close-session {
width: auto;
height: auto;
}
.go-to-account-text, .close-session-text {
position: initial;
margin:10px 10px;
}
}
.go-to-account.dark-mode-component, .close-session.dark-mode-component {
background-color: $second-color-dark;
}

View File

@@ -1,134 +0,0 @@
.header-main-page {
background-color: $main-color;
display: flex;
flex-direction: column;
// align-items: center;
justify-content: center;
height: 14vh;
padding: 0vh 1vw;
box-sizing: border-box;
a {
text-decoration: none;
}
.title-link {
width: fit-content;
}
h1 {
color: #ffffff;
font-size: 3vw;
display: inline;
@include titleFont();
@include normalizeTitle();
}
.konami-code {
@include titleFont();
color: $lightest-color-dark;
}
}
.notification-select {
background-color: $second-color;
height: 3vh;
display: flex;
align-items: flex-end;
padding-left: 1vw;
box-sizing: border-box;
color: #fff;
@include bodyFont();
p {
display: inline-block;
align-self: center;
padding: 0;
margin: 0;
margin-right: 1vw;
}
button {
height: 80%;
width: 5%;
margin-right: 0.5vw;
border: none;
border-radius: 2px;
align-self: center;
color: #fff;
font-weight: bold;
cursor: pointer;
}
button.yes {
background-color: rgb(76, 175, 80);
}
button.no {
background-color: rgb(211, 47, 47);
}
}
@media (max-width: 991.98px) {
.header-main-page {
height: auto;
padding: 3vw 0px;
align-items: center;
h1 {
font-size: 26pt;
}
h3 {
font-size: 13pt;
}
}
.notification-select {
height: auto;
flex-wrap: wrap;
p {
width: 100%;
margin-top: 1vh;
margin-bottom: 1vh;
}
button {
height: 30px;
width: 20%;
margin-bottom: 1vh;
}
}
}
.header-main-page.dark-mode-component {
background-color: $main-color-dark;
border-bottom: 1px solid #ffffff72;
}
.notification-select.dark-mode-component {
background-color: $second-color-dark;
}

View File

@@ -1,49 +0,0 @@
.history-button {
@include normalizeButton;
height: 9vh;
width: 9vh;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
left: 6vh;
border-radius: 100%;
background-color: $light-color;
svg {
@include svgStyle;
path {
fill: rgba(80, 80, 80, 0.556);
}
width: 6vh;
height: 6vh;
}
&:hover {
animation: spin 0.4s ease-in-out;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
}

View File

@@ -1,184 +0,0 @@
html, body {
height: 100%;
}
.identify-container {
&:has {
height: 100%;
}
display: flex;
flex-direction: column;
align-items: center;
flex-grow: 1;
.error-message-container, .success-message-container {
width: 70vw;
background-color: #D17262;
display: flex;
justify-content: center;
align-items: center;
p {
margin: 2vw;
color: #ffffff;
@include titleFont();
user-select: none;
font-size: 22pt;
}
}
.success-message-container {
background-color: $lightest-color;
p {
color: #464646;
}
}
.identify {
width: 70vw;
.options-container {
display: flex;
.option {
width: 35vw;
display: flex;
justify-content: space-around;
padding: 5vh 0px;
background-color: $second-color;
cursor: pointer;
transition: 0.4s ease-in-out;
h2 {
@include titleFont();
@include normalizeTitle();
color: #ffffff;
}
}
.active-option {
cursor: initial;
background-color: $second-color-darker;
}
}
.form-container {
display: flex;
justify-content: center;
form {
width: 50vw;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 1vh;
input {
height: 4vh;
width: 60%;
margin-bottom: 1vh;
border: none;
border-bottom: 1px solid $border-color;
outline: none;
}
input[type=submit] {
width: 50%;
border: $border-color solid 1px;
}
}
}
}
}
.loading-container {
width: 100%;
height: 83vh;
display: flex;
justify-content: center;
align-items: center;
&.dark-mode-component {
background-color:$main-color-dark ;
}
}
.reset-password {
height: 4vh;
width: 60%;
margin-bottom: 1vh;
border: none;
border-bottom: 1px solid $border-color;
outline: none;
width: 50%;
border: $border-color solid 1px;
background-color: $main-color;
}
.identify-container.dark-mode-component {
background-color: $second-color-dark;
.identify {
.options-container {
.option {
background-color: $light-color-dark;
}
.active-option{
background-color: $light-color-dark-darker;
}
}
.form-container {
form {
input {
color: white;
background: none;
}
input[type=submit] {
background-color: $main-color-dark;
}
}
}
}
}

View File

@@ -1,20 +0,0 @@
.made-with-love a {
color: #ff8787
}
.made-with-love {
color:rgb(185, 185, 185);
margin-top: auto;
width: 100%;
padding-top: 5vh;
padding-bottom: 5vh;
padding-left: 3vw;
box-sizing: border-box;
}
.made-with-love.dark-mode-component {
background-color: $main-color-dark;
}

View File

@@ -1,109 +0,0 @@
.main-pomodoro {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 68vh;
.timer {
display: flex;
justify-content: center;
@include bodyFont;
font-weight: bold;
font-size: 130pt;
color: $second-color;
}
.style-display {
display: flex;
align-items: center;
flex-direction: column;
@include bodyFont;
h4 {
font-size: 24pt;
@include normalizeBody;
color: $second-color;
user-select: none;
}
h3 {
font-size: 30pt;
@include normalizeBody;
color: $second-color;
cursor: pointer;
user-select: none;
}
}
.start-pomodoro {
@include normalizeButton;
@include titleFont;
margin-top: 6vh;
width: 30vw;
height: 8vh;
background: $second-color;
border-radius: 24px;
font-size: 5vh;
color: white;
}
}
@media (max-width: 576px) {
.main-pomodoro {
height: auto;
.timer {
font-size: 80pt;
}
.start-pomodoro {
font-size: 13pt;
}
}
}
.main-pomodoro-container.dark-mode-component {
background-color: $main-color-dark;
.main-pomodoro {
.timer {
color: #ffffff;
}
.style-display {
h3, h4 {
color: #ffffff;
}
}
.start-pomodoro{
background-color: $lightest-color-dark;
}
}
}

View File

@@ -1,71 +0,0 @@
.pomodoro-counter {
position: absolute;
top: 29vh;
ul {
li {
display: flex;
@include bodyFont;
list-style-type: none;
margin-top: 2vh;
font-size: 15pt;
color: #00000070;
.separator {
user-select: none;
margin: 0px 0.5vw;
}
.quantity {
@include titleFont;
user-select: none;
display: flex;
justify-content: center;
align-items: center;
height: 30px;
width: 30px;
border-radius: 100%;
color: $second-color;
background-color: $light-color;
}
}
}
}
@media (max-width: 991.98px) {
.pomodoro-counter {
position: initial;
padding-bottom: 5vh;
}
}
.pomodoro-counter.dark-mode-component {
ul {
li {
color: #ffffff;
.quantity {
color: $lightest-color-dark;
background: $second-color-dark;
}
}
}
}

View File

@@ -1,215 +0,0 @@
.style-selector{
width: calc(20vw - 1px);
padding-left: 3vw;
padding-bottom: 12vh;
position: absolute;
top: 29vh;
left: 75vw;
box-shadow: 1px 6px 15px #00000020;
z-index: 50;
h2 {
@include bodyFont;
color: $second-color;
font-size: 30pt;
text-align: center;
margin-left: -3vw;
margin-top: 1vh;
margin-bottom: 3vh;
}
.style-selection-container {
.style-container{
display: flex;
height: 10vh;
align-items: center;
label {
display: flex;
flex-direction: column;
justify-content: center;
.title {
@include bodyFont;
font-size: 13pt;
}
.times {
@include bodyFont;
color: $second-color;
font-size: 13pt;
}
}
}
input {
width: 65px;
opacity: 0;
}
.checkbox__input {
display: grid;
grid-template-areas: "checkbox";
> * {
grid-area: checkbox;
}
}
.checkbox_control {
display: inline-grid;
width: 45px;
height: 45px;
border: 3px solid $main-color;
border-radius: 0.25em;
border-radius: 100%;
transition: ease-in-out 0.2s ;
}
.checkbox__input input:checked + .checkbox_control {
background-color: $light-color;
}
// CREDITS TO https://moderncss.dev/pure-css-custom-checkbox-style/
}
transition: 0.2s ease-in-out;
}
.style-selector-show {
opacity: 100%;
pointer-events: auto;
}
.style-selector-hidden {
opacity: 0%;
pointer-events: none;
}
@media (max-width: 991.98px) {
.style-selector {
position: initial;
margin: 0 0 5% 0;
width: 100%;
padding: 0;
padding: 0px 5vw;
box-sizing: border-box;
h2 {
text-align: start;
margin-left: 0;
}
.style-selection-container {
display: flex;
flex-wrap: wrap;
width: 100%;
.style-container{
height: 100%;
width: 30%;
margin: 1% 10%;
}
}
}
}
@media (max-width: 918px) {
.style-selector {
.style-selection-container {
flex-wrap: nowrap;
flex-direction: column;
.style-container {
width: 60% ;
}
}
margin-bottom: 5vh;
}
}
@media (max-width: 462px) {
.style-selector {
.style-selection-container {
.style-container{
width: 100%;
}
}
}
}
.style-selector-container.dark-mode-component {
.style-selector {
h2 {
color: #ffffff;
}
.style-selection-container {
.style-container{
label {
.title {
color: #ffffff;
}
.times {
color: $lightest-color-dark;
}
}
}
.checkbox_control {
border: 3px solid $lightest-color-dark-darker;
}
.checkbox__input input:checked + .checkbox_control {
background-color: $lightest-color-dark;
}
}
}
}

View File

@@ -1,77 +0,0 @@
@mixin titleFont {
font-family: 'Raleway', sans-serif;
font-weight: 700;
}
@mixin bodyFont {
font-family: 'Rambla', sans-serif;
}
@mixin normalizeTitle {
margin: 0;
padding: 0;
user-select: none;
}
@mixin normalizeBody {
margin: 0;
padding: 0;
}
@mixin normalizeButton {
background: none;
border: none;
width: 8vw;
}
@mixin svgStyle {
cursor: pointer;
path {
fill: rgb(170, 170, 170);
// CREDITS TO https://stackoverflow.com/a/49627345
}
}
$background-color: #ffffff;
$border-color: #969696;
$main-color: #62D2A2;
$second-color: #1FAB89;
$second-color-darker: #15745c;
$light-color: #9DF3C4;
$lightest-color: #D7FBE8;
$main-color-dark: #303841;
$second-color-dark: #3A4750;
$light-color-dark: #D72323;
$light-color-dark-darker: #7c1414;
$lightest-color-dark: #4c8ad5;
$lightest-color-dark-darker: #eff3f8;
@import 'header';
@import 'banner-login';
@import 'mainPomodoro';
@import 'styleSelector';
@import 'goDownArrow';
@import 'aboutThis';
@import 'historyButton';
@import 'pomodoro-counter';
@import 'identify';
@import 'dark-mode_toogle-switch';
@import 'account';
@import 'goToAccount';
@import 'clockify-tasks-display';
@import 'made-with-love';
html, body {
margin: 0;
padding: 0;
}
body {
height: 100%;
background-color: $background-color;
}