Skip to content

Commit 9b371b5

Browse files
committed
Some fixings. In style: 1) Improved visualitzation in desktop env 2) added media queries for wide desktop devices (up to 1800px) 3) Visualitzation of a link on the footer fixed. Typos: 1) Error on settings form.
1 parent 5a7282e commit 9b371b5

File tree

8 files changed

+47
-4
lines changed

8 files changed

+47
-4
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
## About this project
1+
# Flow app
22

33
This is not a pomodoro app. We want to do a timer that follows a different approach. Be focus and just leave time flows.
44

5-
Of course, we will update this readme with some information while we're working on and pushing updates.
5+
## About this project
6+
7+
This is a simple portfolio project. Don't use it in a production environment like it is.
8+
9+
This app follows a [Frontend Mentor's design](https://www.frontendmentor.io/challenges/pomodoro-app-KBFnycJ6G) but with a different functionalities.
10+
11+
## How it works
12+
13+
Contrary to a pomodoro timer, in this timer we want you to work as much as you can. You won't have a shorty interval follow it of a much shorter interval of free time. You will be able to decide how much you want to work and you will had time for relaxing acordently.
14+
15+
Some things that you would should know before use it:
16+
17+
- You have a predifined intervals of time of 50min, 1.30h or 2.20h.
18+
- You can use a short breaks if you need it. But, be careful! You have a limited quantity of them and when you would had used, you won't be able to stop the clock until the time reaches the end.
19+
- You can choose how long the short breaks are. Between 1 to 5 minuts long. Rememeber: it's a short break!
20+
- When time reaches the end, we assign automatically 30% of this time as a free time.
21+
22+
### Demo
23+
24+
You can see this code running in [this site](https://tangerine-starlight-433510.netlify.app/).

components/footer/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function Footer(){
66
<footer className={styles.footer}>
77
<div className={styles.options_wrapper}>
88
<Link href="/settings">
9-
<a>Settings</a>
9+
<a className={styles.footer__link}>Settings</a>
1010
</Link>
1111
<p>Make it with Next.js</p>
1212
</div>

components/footer/footer.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@
1212
padding: $m-spacing 0;
1313
text-align: center;
1414
}
15+
16+
.footer__link {
17+
text-decoration: none;
18+
color: $font-color;
19+
}

components/settingsForm/SettingForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function SettingsFrom(props){
3939
totalTime = "1 hour and 30 minutes ";
4040
shortBrakeCount = "3";
4141
} else if (form.time === "130") {
42-
totalTime = "1 hour and 30 minutes ";
42+
totalTime = "2 hour and 10 minutes ";
4343
shortBrakeCount = "4";
4444
}
4545

components/settingsForm/settingsForm.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
box-sizing: border-box;
44
border-radius: 8px;
55
background-color: $font-color;
6+
@media (min-width: $desktop) {
7+
padding: $m-spacing;
8+
max-width: 45vw;
9+
}
10+
@media (min-width: $wide-desktop-width) {
11+
max-width: 35vw;
12+
}
613
}
714

815
.nav-bar {

components/timer/timer.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
justify-content: center;
1010
align-items: center;
1111
padding: $xl-spacing 0;
12+
@media (min-width: $desktop) {
13+
max-width: 90%;
14+
padding: $xl-spacing $m-spacing;
15+
}
1216
}
1317

1418
.timer__svg {

styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $input-size: 30px;
99
$mobile-width: 300px;
1010
$tablet-width: 600px;
1111
$desktop-width: 1140px;
12+
$wide-desktop-width: 1850px;
1213

1314
/* width for screen size */
1415

styles/main.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,16 @@
3434

3535
.modal_main {
3636
color: $main-bg;
37+
box-sizing: border-box;
3738
position: absolute;
3839
z-index: 1;
3940
padding: 20px;
41+
@media (min-width: $desktop) {
42+
min-width: 100vw;
43+
min-height: 100vh;
44+
display: grid;
45+
place-items: center;
46+
}
4047
}
4148

4249
.section_main {

0 commit comments

Comments
 (0)