Replicate the following result summary component
The colors, font and font size were provided by Frontend Mentor. Margins and paddings were not provided, and I've fixed them by fine-tuning.
Name, price and description of the project are hard-coded inside the html page.
Due to the absence of any data or dynamics, the solution is a static page built with html and css.
In a real scenario I would build a custom component for the card. In particular, using Svelte I would define a component like Product.svelte
<script>
export let name;
export let desc;
export let priceFull;
export let priceSales;
export let category;
</script>
<div class="right">
<div class="category">
{category}
</div>
<div class="product-name">
{name}
</div>
<div class="product-desc">
{desc}
</div>
<div class="price">
<div class="sale-price">
{priceSales}
</div>
<div class="full-price">
{priceFull}
</div>
</div>
<button>
<div>
<img src="images/icon-cart.svg" alt="" srcset="">
<span>
Add to Cart
</span>
</div>
</button>
</div>
<style>
<!--- CSS style for the component--->
</style>
and use it as
<Product {...productData} />
The responsive layout will be implemented soon.