cc-bhu / marketplace

MIT License
1 stars 3 forks source link

Create a product card #9

Closed PradyumnaKrishna closed 1 year ago

PradyumnaKrishna commented 1 year ago

Create a product card that will show a product details on the home page. The card will contains few details like product name, type, price and image. We will need to setup a storage for image as well, so we will look into the details of image later on.

For now create a product template under template and that will be included later on into the index.html or any other template using jinja2 formatting.

References

https://stackoverflow.com/questions/10985950/how-do-you-insert-a-template-into-another-template https://devsheet.com/include-template-django/ https://docs.djangoproject.com/en/4.2/ref/templates/builtins/

PradyumnaKrishna commented 1 year ago

The card will contain an image. If product doesn't have any image then it should use a placeholder. Other fields are name, price and description.

https://getbootstrap.com/docs/5.0/components/card/