80 lines
3.3 KiB
HTML
80 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
|
|
{% block css %}
|
|
<link rel="stylesheet" href="{% static 'css/style.css' %}">
|
|
<link rel="stylesheet" href="{% static 'css/navbar_style.css' %}">
|
|
<link href="https://fonts.googleapis.com/css2?family=Faster+One&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@900&display=swap" rel="stylesheet">
|
|
{% endblock css %}
|
|
|
|
{% block beforecontent %}
|
|
<div class="contained-img-bar">
|
|
<div class="text-contained-img-bar">In totale nel nostro Salone Bar abbiamo {{ lista_cocktail.count }} cocktails</div>
|
|
</div>
|
|
{% endblock beforecontent %}
|
|
|
|
|
|
{% block content %}
|
|
<!-- CAROUSEL CHE NON MI PIACE -->
|
|
<!-- <div id="carousel-cocktail" class="carousel slide" data-ride="carousel">
|
|
<ol class="carousel-indicators">
|
|
<li data-target="#carousel-cocktail" data-slide-to="0" class="active"></li>
|
|
<li data-target="#carousel-cocktail" data-slide-to="1"></li>
|
|
<li data-target="#carousel-cocktail" data-slide-to="2"></li>
|
|
</ol>
|
|
<div class="carousel-inner">
|
|
{% for cocktails in rand_cocktail %}
|
|
{% if forloop.first %}
|
|
<div class="carousel-item active">
|
|
<img src="{{ cocktails.immagine_cocktail.url }}" class="d-block w-100" alt="...">
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5 class="text-carousel">{{ cocktails.nome_cocktail }}</h5>
|
|
<p class="text-carousel">{{ cocktails.ingredienti.all|join:"," }}</p>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="carousel-item">
|
|
<img src="{{ cocktails.immagine_cocktail.url }}" class="d-block w-100" alt="...">
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5 class="text-carousel">{{ cocktails.nome_cocktail }}</h5>
|
|
<p class="text-carousel">{{ cocktails.ingredienti.all|join:"," }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<a class="carousel-control-prev" href="#carousel-cocktail" role="button" data-slide="prev">
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
<span class="sr-only">Precedente</span>
|
|
</a>
|
|
<a class="carousel-control-next" href="#carousel-cocktail" role="button" data-slide="next">
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
<span class="sr-only">Successivo</span>
|
|
</a>
|
|
</div>
|
|
</div> -->
|
|
<!-- <h1 class="text-center">In totale nel nostro Salone Bar abbiamo {{ lista_cocktail.count }} <i class="fas fa-cocktail"></i> </h1> -->
|
|
<div class="card mt-2 mt-lg-1">
|
|
<div class="card-header"> <h1 class="text-center text-muted">LISTA COCKTAILS : </h1></div>
|
|
</div>
|
|
{% for cocktail in lista_cocktail %}
|
|
{% if forloop.first %} <div class="row"> {% endif %}
|
|
<div class="col-lg-4 my-3">
|
|
<a href="{{ cocktail.get_absolute_url }}">
|
|
<div class="card h-100 my-1 border border-info">
|
|
<div class="card-img-top"><img src="{{ cocktail.immagine_cocktail.url }}" class="img-fluid" alt="{{ cocktail.nome_cocktail }}"></div>
|
|
<div class="text_on_image">{{ cocktail.nome_cocktail }}</div>
|
|
<div class="card-body py-0">
|
|
<p class="mt-2 mb-0 py-3 text-center">{{ cocktail.ingredienti.all|join:"," }}</p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</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 %} |