Cocktail-DB/cocktail_list/templates/bicchieri.html

36 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% load static %}
{% block css %}
<link rel="stylesheet" href="{% static 'css/navbar_style.css' %}">
<link rel="stylesheet" href="{% static 'css/style.css' %}">
<link href="https://fonts.googleapis.com/css2?family=Faster+One&display=swap" rel="stylesheet">
{% endblock css %}
{% block title %}
STRUMENTI
{% endblock title %}
{% block content %}
{% for bicchieri in lista_bicchieri %}
{% if forloop.first %} <div class="row"> {% endif %}
<div class="col-lg-4 my-3">
<div class="card h-100 my-1 border border-info">
<div class="card-img-top"><img src="{{ bicchieri.immagine_bicchieri.url }}" class="img-fluid" alt="{{ bicchieri.nome_bicchiere }}"></div>
<div class="card-body py-0">
<br>
<div class="text-center" id="color-for-glass">{{ bicchieri.nome_bicchiere }}</div>
<p class="mt-2 mb-0 py-3 text-center">{{ bicchieri.descrizione}}</p>
</div>
</div>
</div>
{% if forloop.counter|divisibleby:"3" or forloop.last %}
</div>
{% endif %}
{% if forloop.counter|divisibleby:"3" and not forloop.last %}
<div class="row">
{% endif %}
{% endfor %}
{% endblock content %}