feat(home): ajustando css footer e remodelando funciton de footer para não sobrescrever e inserindo img pelo css

This commit is contained in:
Bernardo Cunha Ernani Waldhelm 2022-12-15 20:55:56 -03:00
parent a521478217
commit c5ef84a9f9
4 changed files with 107 additions and 54 deletions

View File

@ -138,22 +138,14 @@ export default class Footer {
</li>`;
this.footerCheckoutDeveloped.innerHTML = `
<li class="footerCheckout__developedBy__links">
<li>
<a href="https://vtex.com/br-pt/">
<span> Powered By </span>
<img class="vtex"
src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png"
alt="Logo da VTEX"
/>
</a>
</li>
<li class="footerCheckout__developedBy__links">
<li>
<a href="https://agenciam3.com/">
<span>Developed By</span>
<img class="m3"
src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png"
alt="Logo da M3"
/>
</a>
</li>

View File

@ -13,10 +13,10 @@
display: none;
}
.cart {
border: 3px solid $color-gray3;
border: 1px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
padding: 16px;
padding: 16px 31px;
@include mq(md, max) {
margin: 0px 0 25px 0;
@ -111,12 +111,12 @@
}
th {
font-family: $font-family-secundary;
color: $color-black;
padding: 0 0 16px;
font-style: normal;
font-weight: bold;
font-size: 14px;
line-height: 16px;
font-weight: 400;
font-size: 28px;
line-height: 33px;
@include mq(md, max) {
&.quantity-price,
@ -129,7 +129,7 @@
.product-image {
height: auto;
padding: 0;
width: 60px;
width: 146px;
@include mq(sm, max) {
width: 72px;

View File

@ -12,8 +12,7 @@ html {
// width: 94.9734%;
// margin: auto auto 0 auto;
// }
footer .footerCheckout__prateleira,
header {
footer .footerCheckout__prateleira{
width: 79.53125%;
margin: 0 auto 54px;
@ -23,6 +22,15 @@ header {
}
}
header{
width: 79.53125%;
@media #{$mq-mobile} {
width: 90%;
}
}
body {
display: flex;
flex-direction: column;
@ -71,7 +79,22 @@ body {
color: $color-black !important;
}
#cart-title,
#cart-title {
margin: 18px 0;
text-align: left;
font-family: $font-family;
font-weight: 700;
font-size: 48px;
line-height: 65px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-black;
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
font-size: 24px;
line-height: 33px;
}
}
#orderform-title {
color: $color-gray2;
font-family: $font-family;

View File

@ -127,62 +127,100 @@
}
&__developedBy {
align-items: center;
display: flex;
justify-content: end;
align-items: center;
list-style-type: none;
margin: 0;
width: 33%;
gap: 11px;
@media #{$mq-mobile}, #{$mq-tablet} {
order: 3;
justify-content: flex-start;
}
&__links {
li:first-child {
width: auto;
a {
span {
font-size: 9px;
line-height: 12px;
color: $color-black;
margin-right: 10px;
}
display: flex;
.vtex{
width: 88px;
&::after {
content: '';
background: url('https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png') no-repeat center center;
background-size: 100%;
display: block;
height: 32px;
margin-right: 10px;
width: 88px;
@media #{$mq-desktop}, #{$mq-mobile}, #{$mq-tablet} {
width: 45px;
height: 16px;
}
}
.m3 {
width: 56px;
height: 30px;
@media #{$mq-desktop}, #{$mq-mobile}, #{$mq-tablet} {
width: 29px;
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
width: 44.92px;
height: 16px;
}
}
span {
display: flex;
align-items: center;
font-family: $font-family;
font-style: normal;
font-weight: 400;
margin-right: 10.6px;
font-size: 18px;
line-height: 25px;
color: $color-black;
white-space: nowrap;
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
font-size: 9px;
line-height: 12px;
margin-right: 10.97px;
}
}
}
}
a {
align-items: center;
color: $color-gray2;
display: flex;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
text-decoration: none;
li:last-child {
a {
display: flex;
span {
margin-right: 8px;
&::after {
content: '';
background: url('https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png') no-repeat center center;
background-size: 100%;
display: block;
width: 55.98px;
height: 30.56px;
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
width: 28.66px;
height: 15.65px;
}
}
span {
display: flex;
align-items: center;
font-family: $font-family;
font-style: normal;
font-weight: 400;
margin-right: 10.6px;
font-size: 18px;
line-height: 25px;
color: $color-black;
white-space: nowrap;
@media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} {
font-size: 9px;
line-height: 12px;
margin-right: 10.97px;
}
}
}
}
}
.desable {