Skip to content

Commit f015577

Browse files
committed
Remove background image, and apply mobile and tablet breakpoints
1 parent 5b519a8 commit f015577

File tree

8 files changed

+35
-16
lines changed

8 files changed

+35
-16
lines changed

public/img/background.jpg

-204 KB
Binary file not shown.

src/components/SingleList.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
@use "../styles/mixins.scss" as *;
12
@import "../views/unauthenticated/UnauthenticatedHome.scss";
23

34
.SingleList {
45
@extend .custom-button-wrapper;
5-
// @extend .button;
6-
align-items: baseline;
7-
font-size: 1.2em;
8-
width: 120px;
6+
list-style-type: none;
97
}
108

11-
.SingleList-label {
12-
margin-left: 0.2em;
9+
.SingleList button {
10+
width: 100%;
11+
margin: 5px;
12+
@include tablet {
13+
margin: 5px;
14+
}
1315
}

src/styles/_mixins.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ====== MEDIA ========
2+
@mixin tablet {
3+
@media (min-width: 768px) {
4+
@content;
5+
}
6+
}
7+
8+
@mixin mobile {
9+
@media (min-width: 375px) {
10+
@content;
11+
}
12+
}

src/styles/global.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ body {
66
font-weight: 400;
77
font-style: normal;
88
background-color: $primary-beige;
9-
background-image: url("/img/background.jpg");
10-
background-size: cover;
119
}

src/views/Layout.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
height: 100dvh;
1414
}
1515

16-
.Layout > * {
17-
padding-inline: min(5dvw, 3.2rem);
18-
}
16+
// .Layout > * {
17+
// padding-inline: min(5dvw, 3.2rem);
18+
// }
1919

2020
.Layout-header {
2121
background-color: var(--color-bg);
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
@use "../../styles/mixins.scss" as *;
2+
13
.lists {
4+
display: block;
25
margin-top: 20px;
36
padding: 0;
4-
display: flex;
5-
justify-content: space-between;
6-
flex-flow: wrap;
7+
8+
@include tablet {
9+
padding: 0;
10+
display: flex;
11+
justify-content: space-between;
12+
flex-flow: wrap;
13+
}
714
}

src/views/authenticated/AuthenticatedHome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
// import React from "react";
22
import { SingleList, CreateList } from "../../components";
33
import { List, User } from "../../api";
44
import "./AuthenticatedHome.scss";

src/views/unauthenticated/UnauthenticatedHome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
// import React from "react";
22
import "./UnauthenticatedHome.scss";
33
import { useNavigate } from "react-router-dom";
44
import { SignInButton } from "../../api";

0 commit comments

Comments
 (0)