feat: adiciona link dos produtos nos botoes da prateleira

This commit is contained in:
Rafael Sampaio de Oliveira 2022-12-12 06:38:50 -03:00
parent 1e83dc174d
commit fa79557cb4
2 changed files with 8 additions and 2 deletions

View File

@ -47,6 +47,7 @@ export default class Footer {
name: prod.productName, name: prod.productName,
skus: prod.items.map((item) => item.name), skus: prod.items.map((item) => item.name),
image: prod.items[0].images[0].imageUrl, image: prod.items[0].images[0].imageUrl,
link: prod.link,
})); }));
return products; return products;
@ -88,7 +89,7 @@ export default class Footer {
</ul> </ul>
</div> </div>
<button> <button>
VER PRODUTO <a href="${item.link}">VER PRODUTO</a>
</button> </button>
</li> </li>
`; `;

View File

@ -114,11 +114,16 @@
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
font-size: 13px; font-size: 13px;
color: $color-white;
line-height: 18px; line-height: 18px;
padding: 0; padding: 0;
background: $color-blue; background: $color-blue;
border-radius: 8px; border-radius: 8px;
cursor: pointer;
a {
text-decoration: none;
color: $color-white;
}
} }
} }