Skip to content

Commit 951e3e7

Browse files
committed
inserção de favicon
1 parent 28649ab commit 951e3e7

8 files changed

Lines changed: 85 additions & 4 deletions

File tree

‎cart.html‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77

8+
<link rel="icon" href="/img/icon.png" type="image/png" />
9+
<link rel="shortcut icon" href="/img/favicon.ico" />
10+
811
<link rel="stylesheet" type="text/css" href="css/reset.css">
912
<link rel="stylesheet" type="text/css" href="css/style.css">
1013

@@ -35,6 +38,33 @@ <h1><a href="/"><img src="img/logo.png" alt="Brand Logo"></a></h1>
3538
</div>
3639
</header>
3740
<main class="cart">
41+
<section class="top">
42+
<h2>Your cart items</h2>
43+
<a href="">Back to shopping</a>
44+
</section>
45+
<article class="cart-display container">
46+
<section class="row-1">
47+
<h2>Product</h2>
48+
<h3>Price</h3>
49+
<h3>Quantity</h3>
50+
<h3>Total</h3>
51+
</section>
52+
<section class="row-2">
53+
<figure>
54+
<img src="img/img-details-product1.png" alt="product image">
55+
<h2>Spiced Mint Candleaf®</h2>
56+
<span>Remove</span>
57+
</figure>
58+
<p>$ 9.99</p>
59+
<div class="counter">
60+
<p>-</p>
61+
<p>1</p>
62+
<p>+</p>
63+
</div>
64+
<p class="alert-negative">Attention:<br>Quantity can't be negative!</p>
65+
<p class="alert-out">No more items can be added.</p>
66+
</section>
67+
</article>
3868

3969
</main>
4070

‎css/style.css‎

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ main.product figure h3{
449449
.left-column .quantity{
450450
width: 75px;
451451
}
452-
.left-column .counter{
452+
.counter{
453453
display: flex;
454454
justify-content: space-evenly;
455455
font-size: 18px;
@@ -459,7 +459,7 @@ main.product figure h3{
459459
height: 30px;
460460
border: 1px solid var(--green);
461461
}
462-
.left-column .counter p:first-child, .left-column .counter p:last-child{
462+
.counter p:first-child, .counter p:last-child{
463463
color: var(--green);
464464
cursor: pointer;
465465
}
@@ -808,9 +808,54 @@ main.p-details form label.error{
808808
100%{left: 0;}
809809
}
810810

811+
/* CART */
812+
main.cart .top{
813+
margin-top: 77px;
814+
padding: 60px 0;
815+
}
816+
main.cart .top h2{
817+
font-size: 26px;
818+
line-height: 57.6px;
819+
letter-spacing: -.9px;
820+
text-align: center;
821+
}
822+
main.cart .top a{
823+
display: block;
824+
width: 100%;
825+
color: var(--green);
826+
font-size: 18px;
827+
line-height: 25.6px;
828+
letter-spacing: -.9px;
829+
text-decoration: underline;
830+
text-align: center;
831+
}
832+
.cart-display .row-1{
833+
display: flex;
834+
border-bottom: 1px solid #E5E5E5;
835+
padding: 15px 0;
836+
}
837+
.cart-display .row-1 h2{
838+
width: 50%;
839+
font-family: "Roboto", Helvetica, Arial, sans-serif;
840+
font-size: 16px;
841+
line-height: 25.6px;
842+
letter-spacing: -.9px;
843+
}
844+
.cart-display .row-1 h3{
845+
width: 16.6%;
846+
font-size: 16px;
847+
line-height: 25.6px;
848+
letter-spacing: -.9px;
849+
}
850+
.cart-display .row-1 h3:last-child{
851+
text-align: right;
852+
}
853+
811854

812855

856+
/*****************/
813857
/* MEDIA QUERIES */
858+
/*****************/
814859

815860
@media screen and (max-width: 376px){
816861
.mobile_only{

‎img/favicon.ico‎

15 KB
Binary file not shown.

‎img/icon.png‎

1.21 KB
Loading

‎img/open-graph.png‎

302 KB
Loading

‎index.html‎

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

1919
<meta property="og:type" content="website">
2020

21-
<link rel="icon" href="/images/favicon.png" type="image/png" /><!-- 32x32px -->
21+
<link rel="icon" href="/img/icon.png" type="image/png" /><!-- 32x32px -->
2222

23-
<link rel="shortcut icon" href="/favicon.ico" />
23+
<link rel="shortcut icon" href="/img/favicon.ico" />
2424

2525
<link rel="stylesheet" type="text/css" href="css/reset.css">
2626
<link rel="stylesheet" type="text/css" href="css/style.css">

‎p-details.html‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77

8+
<link rel="icon" href="/img/icon.png" type="image/png" />
9+
<link rel="shortcut icon" href="/img/favicon.ico" />
10+
811
<link rel="stylesheet" type="text/css" href="css/reset.css">
912
<link rel="stylesheet" type="text/css" href="css/style.css">
1013

‎product_1.html‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77

8+
<link rel="icon" href="/img/icon.png" type="image/png" />
9+
<link rel="shortcut icon" href="/img/favicon.ico" />
10+
811
<link rel="stylesheet" type="text/css" href="css/reset.css">
912
<link rel="stylesheet" type="text/css" href="css/style.css">
1013

0 commit comments

Comments
 (0)