Skip to content

Commit 155837d

Browse files
feat: add visual user (#105)
- create a new user called “visual_user” - Take 2 of the cards and right-justify the Title - Deliberately misalign the Add to Cart button - Move the shopping cart icon to the left, enough to be noticeable - Change one of the images to the pug (preferably a card that hasn’t been altered yet) - Leave everything else as-is, so that our tool will pick up everything - On this screen, shift the Checkout button - fix linting - add tests
1 parent d2db0a8 commit 155837d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+844
-337
lines changed

package-lock.json

Lines changed: 42 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/BrokenComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const BrokenComponent = () => {
2-
throw new Error('This component failed to render!');
2+
throw new Error("This component failed to render!");
33
};
44

55
export default BrokenComponent;

src/components/Button.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
}
2121

2222
.btn_secondary {
23-
border: 1px solid #E2231A;
23+
border: 1px solid #e2231a;
2424
background-color: #fff;
25-
color: #E2231A;
25+
color: #e2231a;
2626
}
2727

2828
.btn_action {
29-
background-color: #3DDC91;
29+
background-color: #3ddc91;
3030
border-radius: 4px;
3131
color: #132322;
3232
}
@@ -57,6 +57,17 @@
5757
width: 100%;
5858
}
5959

60+
.btn_inventory_misaligned {
61+
position: absolute;
62+
right: -20px;
63+
}
64+
65+
.btn_visual_failure {
66+
position: absolute;
67+
right: 0;
68+
top: 0;
69+
}
70+
6071
@media only screen and (max-width: 900px) {
6172
.btn_small,
6273
.btn_medium,

src/components/CartItem.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.cart_item {
2-
border: 1px solid #EDEDED;
2+
border: 1px solid #ededed;
33
border-radius: 8px;
44
background: #fff;
55
display: flex;
@@ -8,7 +8,7 @@
88
}
99

1010
.cart_quantity {
11-
border: 1px solid #EDEDED;
11+
border: 1px solid #ededed;
1212
box-sizing: border-box;
1313
text-align: center;
1414
font-size: 14px;

src/components/DrawerMenu.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
}
55
}
66
.menu-item {
7-
border-bottom: 1px solid #EDEDED;
8-
color: #18583A;
7+
border-bottom: 1px solid #ededed;
8+
color: #18583a;
99
display: inline-block;
10-
font-family: 'DM Mono', 'sans-serif';
10+
font-family: "DM Mono", "sans-serif";
1111
font-size: 16px;
1212
margin-bottom: 7px;
1313
text-decoration: none;
@@ -16,7 +16,7 @@
1616
}
1717

1818
.menu-item:hover {
19-
color: #3DDC91;
19+
color: #3ddc91;
2020
}
2121

2222
/* ===============Burger button styling==================== */

src/components/Footer.jsx

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
import React from 'react';
2-
import './Footer.css';
1+
import React from "react";
2+
import "./Footer.css";
33

44
const SwagLabsFooter = () => {
55
return (
66
<footer className="footer">
77
{/* <div className="footer_container"> */}
8-
<ul className="social">
9-
<li className="social_twitter">
10-
<a
11-
href="https://twitter.com/saucelabs"
12-
target="_blank"
13-
rel="noreferrer"
14-
>
15-
Twitter
16-
</a>
17-
</li>
18-
<li className="social_facebook">
19-
<a
20-
href="https://www.facebook.com/saucelabs"
21-
target="_blank"
22-
rel="noreferrer"
23-
>
24-
Facebook
25-
</a>
26-
</li>
27-
<li className="social_linkedin">
28-
<a
29-
href="https://www.linkedin.com/company/sauce-labs/"
30-
target="_blank"
31-
rel="noreferrer"
32-
>
33-
LinkedIn
34-
</a>
35-
</li>
36-
</ul>
8+
<ul className="social">
9+
<li className="social_twitter">
10+
<a
11+
href="https://twitter.com/saucelabs"
12+
target="_blank"
13+
rel="noreferrer"
14+
>
15+
Twitter
16+
</a>
17+
</li>
18+
<li className="social_facebook">
19+
<a
20+
href="https://www.facebook.com/saucelabs"
21+
target="_blank"
22+
rel="noreferrer"
23+
>
24+
Facebook
25+
</a>
26+
</li>
27+
<li className="social_linkedin">
28+
<a
29+
href="https://www.linkedin.com/company/sauce-labs/"
30+
target="_blank"
31+
rel="noreferrer"
32+
>
33+
LinkedIn
34+
</a>
35+
</li>
36+
</ul>
3737

38-
<div className="footer_copy">
39-
&copy; {new Date().getFullYear()} Sauce Labs. All Rights Reserved.
40-
Terms of Service | Privacy Policy
41-
</div>
38+
<div className="footer_copy">
39+
&copy; {new Date().getFullYear()} Sauce Labs. All Rights Reserved. Terms
40+
of Service | Privacy Policy
41+
</div>
4242
{/* </div> */}
4343
</footer>
4444
);

src/components/HeaderContainer.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
.primary_header .app_logo {
21-
font-family: DM Mono, 'sans-serif';
21+
font-family: DM Mono, "sans-serif";
2222
font-size: 24px;
2323
line-height: 48px;
2424
text-align: center;
@@ -32,6 +32,13 @@
3232
top: 10px;
3333
right: 20px;
3434
}
35+
.primary_header .shopping_cart_container.visual_failure {
36+
height: 40px;
37+
width: 40px;
38+
position: absolute;
39+
top: 40px;
40+
right: 205px;
41+
}
3542

3643
.header_secondary_container {
3744
background: #fff;
@@ -46,7 +53,7 @@
4653

4754
.header_secondary_container .title {
4855
color: #132322;
49-
font-family: 'DM Sans', sans-serif;
56+
font-family: "DM Sans", sans-serif;
5057
font-size: 18px;
5158
font-weight: 500;
5259
line-height: 48px;

0 commit comments

Comments
 (0)