Skip to content

Commit f4661fb

Browse files
committed
Continuação página produto
1 parent 69d461d commit f4661fb

2 files changed

Lines changed: 115 additions & 13 deletions

File tree

‎css/style.css‎

Lines changed: 92 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
transition: all .3s ease-in;
1010
scroll-behavior: smooth;
1111
}
12-
p,a,span{
12+
p,a,span, label{
1313
font: 500 16px/28px "Roboto", Helvetica, Arial, sans-serif;
1414
}
1515
h1,h2,h3,h4,h5,h6, blockquote, figcaption {
@@ -391,35 +391,125 @@ footer figcaption{
391391
}
392392

393393
/* PAGINA PRODUTO */
394+
main.product{
395+
padding-bottom: 114px;
396+
}
394397
main.product article.container{
395398
display: flex;
396399
margin-top: 130px;
397400
}
398401
main.product figure, .add-to-cart{
399-
width: 50%;
402+
width: 49%;
403+
}
404+
main.product figure{
405+
margin-right: 2%;
406+
}
407+
408+
main.product figure img{
409+
width: 100%;
410+
}
411+
main.product figure img:hover{
412+
filter: saturate(200%) contrast(110%);;
413+
}
414+
.add-to-cart h2, .add-to-cart h3{
415+
font-size: 26px;
416+
line-height: 57.6px;
417+
letter-spacing: -.9px;
418+
}
419+
.add-to-cart h3{
420+
color: var(--green);
421+
}
422+
.add-to-cart h4{
423+
font: 400 18px/25.6px "Roboto", Helvetica, Arial, sans-serif;
424+
letter-spacing: -.9px;
425+
text-align: center;
400426
}
401427
.add-to-cart input{
402428
width: 16px;
403429
height: 16px;
404430
margin-right: 20px;
405431
}
432+
main.product figcaption, main.product figure h3{
433+
font-size: 20px;
434+
line-height: 25.6px;
435+
letter-spacing: -.9px;
436+
text-align: center;
437+
margin-top: 22px;
438+
}
439+
main.product figure h3{
440+
color: var(--green);
441+
}
406442
.left-column{
407443
width: 190px;
408444
float: left;
409445
}
446+
.left-column .quantity{
447+
width: 75px;
448+
}
449+
.left-column .counter{
450+
display: flex;
451+
justify-content: space-evenly;
452+
height: 30px;
453+
border: 1px solid var(--green);
454+
}
410455
.right-column{
411456
width: 350px;
412457
float: left;
413458
}
414459
.right-column div{
460+
margin-top: 15px;
415461
display: flex;
416462
align-items: center;
417463
flex-wrap: wrap;
464+
border: 1px solid var(--green);
465+
border-radius: 4px;
466+
padding: 20px 10px 20px 20px ;
467+
}
468+
.right-column div p, .right-column div p a{
469+
font: 400 14px/15.6px "Helvetica", Arial, sans-serif;
470+
color: #818181;
471+
margin-top: 10px;
472+
}
473+
.right-column div p a{
474+
color: var(--green);
475+
}
476+
.right-column label{
477+
font-weight: 400;
478+
line-height: 15.6px;
479+
letter-spacing: -.9px;
480+
width: 60%;
481+
}
482+
.right-column select{
483+
width: 25%;
484+
float: right;
485+
border: 1px solid var(--black);
418486
}
419487
.add-to-cart button{
420488
width: 350px;
489+
margin-top: 67px;
421490
margin-left: 190px;
491+
font-size: 20px;
492+
line-height: 23px;
493+
}
494+
.add-to-cart button span{
495+
font-size: 20px;
496+
line-height: 23px;
497+
}
498+
.add-to-cart .product-description{
499+
padding: 20px;
500+
border: 1px solid #e6e6e6;
501+
border-radius: 7px;
502+
margin-top: 40px;
503+
504+
}
505+
.add-to-cart .product-description p{
506+
font-weight: 400;
507+
color: #818181;
422508
}
509+
.add-to-cart .product-description span{
510+
color: #1D252C;
511+
}
512+
423513

424514

425515

‎product_1.html‎

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,40 @@ <h3>🚚 FREE SHIPPING</h3>
4646
<h2>Spiced Mint Candleaf®</h2>
4747
<div class="left-column">
4848
<h3>$ 9.99</h3>
49-
<h4>Quantity</h4>
50-
<div class="counter">
51-
49+
<div class="quantity">
50+
<h4>Quantity</h4>
51+
<div class="counter">
52+
<p>-</p>
53+
<p>0</p>
54+
<p>+</p>
55+
</div>
5256
</div>
5357
</div>
5458
<div class="right-column">
5559
<div>
56-
<input type="radio" name="radio" id="one" checked>
60+
<input type="radio" name="radio" id="one" >
5761
<label for="one">One time purchase</label>
5862
</div>
5963
<div>
60-
<input type="radio" name="radio" id="always">
64+
<input type="radio" name="radio" id="always" checked>
6165
<label for="always">Subscribe and delivery every</label>
66+
<select>
67+
<option value="1 week">1 week</option>
68+
<option value="1 week">2 weeks</option>
69+
<option value="1 week">3 weeks</option>
70+
<option value="1 week">4 weeks</option>
71+
</select>
6272
<p>Subscribe now and get the 10% of discount on every recurring order. The discount will be applied at checkout. <a href="#">See details</a></p>
63-
</div>
73+
</div>
6474
</div>
6575
<div class="clear"></div>
66-
<button class="btn"></button>
67-
<div>
68-
<p></p>
69-
<p></p>
70-
<p></p>
76+
<button class="btn"><span class="material-icons-outlined">shopping_cart</span> + Add to cart</button>
77+
<div class="product-description">
78+
<p><span>Wax:</span> Top grade Soy wax that delivers a smoke less, consistent burn</p>
79+
<p><span>Fragrance:</span> Premium quality ingredients with natural essential oils </p>
80+
<p><span>Burning Time:</span> 70-75 hours
81+
<span>Dimension:</span> 10cm x 5cm
82+
<span>Weight:</span> 400g </p>
7183
</div>
7284
</article>
7385
</article>

0 commit comments

Comments
 (0)