integration menu small screen
This commit is contained in:
parent
d950c90754
commit
dcc3672c45
|
|
@ -106,6 +106,7 @@ class ConfigurationAdmin(SingletonModelAdmin):
|
|||
'organisation',
|
||||
'short_description',
|
||||
'long_description',
|
||||
'logo',
|
||||
'img',
|
||||
'adress',
|
||||
'phone',
|
||||
|
|
|
|||
|
|
@ -111,6 +111,19 @@ class Configuration(SingletonModel):
|
|||
verbose_name='Background'
|
||||
)
|
||||
|
||||
logo = StdImageField(upload_to='images/',
|
||||
null=True, blank=True,
|
||||
# validators=[MaxSizeValidator(1920, 1920)],
|
||||
variations={
|
||||
'fhd': (1920, 1920),
|
||||
'hdr': (720, 720),
|
||||
'med': (480, 480),
|
||||
'thumbnail': (300, 120),
|
||||
},
|
||||
delete_orphans=True,
|
||||
verbose_name='Logo'
|
||||
)
|
||||
|
||||
mollie_api_key = models.CharField(max_length=50,
|
||||
blank=True, null=True)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
|
|
@ -18,12 +18,20 @@
|
|||
{% endblock header %}
|
||||
|
||||
{% block nav %}
|
||||
{% get_media_prefix as MEDIA_PREFIX %}
|
||||
|
||||
<!-- MENU -->
|
||||
<nav class="menu">
|
||||
<!-- START LOGO -->
|
||||
|
||||
<div><img src="{% static 'arnaud_mvc/img/logotibillet.png' %}" alt="TiBillet"
|
||||
class="logotibillet"></div>
|
||||
<div>
|
||||
{% if configuration.logo %}
|
||||
<img src="{{ MEDIA_PREFIX }}{{ configuration.logo.thumbnail }}" alt="TiBillet"
|
||||
class="logotibillet">
|
||||
{% else %}
|
||||
<img src="{% static 'arnaud_mvc/img/logotibillet.png' %}" alt="TiBillet"
|
||||
class="logotibillet">
|
||||
{% endif %}
|
||||
</div>
|
||||
<!-- END LOGO -->
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -30,9 +30,7 @@
|
|||
<br/>
|
||||
<span class="text-event">{{ configuration.long_description }}</span>
|
||||
<div class="linksocial">
|
||||
{% if configuration.button_adhesion %}
|
||||
<a href="" class="btn-adherer">Adhérer à l'association</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if configuration.facebook %}
|
||||
<a href="{{ configuration.facebook }}" style="padding: 5px; color: black;"><i
|
||||
|
|
@ -46,43 +44,17 @@
|
|||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<a href="{{ configuration.site_web }}" style="text-decoration:none; color:black;padding-left:5%;">
|
||||
<i class="fas fa-globe fa-1x"></i>
|
||||
{{ configuration.site_web }}
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<!-- END DESCRIPTION -->
|
||||
|
||||
{% include 'arnaud_mvc/menu.html' %}
|
||||
|
||||
<!-- MENU LIEUX -->
|
||||
<div class="menu-page">
|
||||
<a href="#calendar" class="btn-menu-page">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/calendriern.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">CALENDRIER</h4>
|
||||
</a>
|
||||
<a href="#events" class="btn-menu-page">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/concerts.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">CONCERTS</h4>
|
||||
</a>
|
||||
{# <a href="" class="btn-menu-page">#}
|
||||
{# <img src="{% static 'arnaud_mvc/img/menu/photo.svg' %}" alt="billeterie Ti Billet">#}
|
||||
{# <h4 style="font-size: 0.8rem;">PHOTO</h4>#}
|
||||
{# </a>#}
|
||||
{# <a href="" class="btn-menu-page">#}
|
||||
{# <img src="{% static 'arnaud_mvc/img/menu/video.svg' %}" alt="billeterie Ti Billet">#}
|
||||
{# <h4 style="font-size: 0.8rem;">VIDEO</h4>#}
|
||||
{# </a>#}
|
||||
{# <a href="" class="btn-menu-page">#}
|
||||
{# <img src="{% static 'arnaud_mvc/img/menu/programme.svg' %}" alt="billeterie Ti Billet">#}
|
||||
{# <h4 style="font-size: 0.8rem;">PROGRAMME</h4>#}
|
||||
{# </a>#}
|
||||
<a href="{{ MEDIA_PREFIX }}{{ configuration.map_img }}" class="btn-menu-page"
|
||||
style="margin-right:0;">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/map.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">MAP</h4>
|
||||
</a>
|
||||
</div>
|
||||
<!-- END MENU LIEUX -->
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
{% load static %}
|
||||
{% get_media_prefix as MEDIA_PREFIX %}
|
||||
|
||||
<nav class="nav-responsive">
|
||||
{% if configuration.button_adhesion %}
|
||||
<a href="" class="btn-responsive">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/adhesion_card.png' %}" alt="adhesion">
|
||||
<h4 style="font-size: 0.8rem;">Adhérer</h4>
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="#calendar" class="btn-responsive">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/calendriern.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4>Calendrier</h4>
|
||||
</a>
|
||||
<a href="#events" class="btn-responsive">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/concerts.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4>Concerts</h4>
|
||||
</a>
|
||||
{# <a href="" class="btn-responsive">#}
|
||||
{# <img src="../img/menu/programme.svg" alt="Programme">#}
|
||||
{# <h4>Programme</h4>#}
|
||||
{# </a>#}
|
||||
<a href="{{ MEDIA_PREFIX }}{{ configuration.map_img }}" class="btn-responsive">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/map.svg' %}" alt="Map">
|
||||
<h4>Map</h4>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<!-- MENU LIEUX -->
|
||||
<div class="menu-page">
|
||||
{% if configuration.button_adhesion %}
|
||||
<a href="" class="btn-menu-page">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/adhesion_card.png' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">ADHERER</h4>
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="#calendar" class="btn-menu-page">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/calendriern.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">CALENDRIER</h4>
|
||||
</a>
|
||||
<a href="#events" class="btn-menu-page">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/concerts.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">CONCERTS</h4>
|
||||
</a>
|
||||
{# <a href="" class="btn-menu-page">#}
|
||||
{# <img src="{% static 'arnaud_mvc/img/menu/video.svg' %}" alt="billeterie Ti Billet">#}
|
||||
{# <h4 style="font-size: 0.8rem;">VIDEO</h4>#}
|
||||
{# </a>#}
|
||||
{# <a href="" class="btn-menu-page">#}
|
||||
{# <img src="{% static 'arnaud_mvc/img/menu/programme.svg' %}" alt="billeterie Ti Billet">#}
|
||||
{# <h4 style="font-size: 0.8rem;">PROGRAMME</h4>#}
|
||||
{# </a>#}
|
||||
<a href="{{ MEDIA_PREFIX }}{{ configuration.map_img }}" class="btn-menu-page"
|
||||
style="margin-right:0;">
|
||||
<img src="{% static 'arnaud_mvc/img/menu/map.svg' %}" alt="billeterie Ti Billet">
|
||||
<h4 style="font-size: 0.8rem;">MAP</h4>
|
||||
</a>
|
||||
</div>
|
||||
<!-- END MENU LIEUX -->
|
||||
Loading…
Reference in New Issue