Skip to content
Snippets Groups Projects
Commit 57c68acf authored by Alexa Valentová's avatar Alexa Valentová
Browse files

add alt attributes

parent ad5dba90
No related branches found
No related tags found
2 merge requests!994Release,!988Redesign
This commit is part of merge request !994. Comments created here will be created in the context of that merge request.
Showing
with 36 additions and 65 deletions
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
<h1 class="head-alt-lg mb-8"> <h1 class="head-alt-lg mb-8">
404 404
</h1> </h1>
<img src="{% static 'shared/img/logo_black.svg' %}" alt class="mb-8"/> <img
src="{% static 'shared/img/logo_black.svg' %}"
alt="Pirátské logo"
class="mb-8"
>
<h1 class="head-alt-md mb-8"> <h1 class="head-alt-md mb-8">
Narazili jsme na mělčinu... Narazili jsme na mělčinu...
</h1> </h1>
......
...@@ -17,7 +17,10 @@ ...@@ -17,7 +17,10 @@
</p> </p>
{% elif block.block_type == "image" %} {% elif block.block_type == "image" %}
<a href="{{ block.value.href }}"> <a href="{{ block.value.href }}">
<img src="{{ block.value.image.url }}"> <img
src="{{ block.value.image.url }}"
alt="{{ block.value.image.alt }}
>
</a> </a>
<p>{{ block.value.text }}</p> <p>{{ block.value.text }}</p>
{% endif %} {% endif %}
......
...@@ -9,12 +9,7 @@ ...@@ -9,12 +9,7 @@
lg:mx-8 lg:my-4 lg:w-2/5 lg:mx-8 lg:my-4 lg:w-2/5
" "
> >
{% image image max-512x512 as side_image %} {% image image max-512x512 class="my-0" %}
<img
class="my-0"
src="{{ side_image.url }}"
>
{% if image_source %} {% if image_source %}
<span class="text-grey-600 text-sm flex gap-2 items-center"> <span class="text-grey-600 text-sm flex gap-2 items-center">
......
{% load wagtailimages_tags %} {% load wagtailimages_tags %}
<figure class="flex flex-col gap-2 max-w-max py-4"> <figure class="flex flex-col gap-2 max-w-max py-4">
{% image self.img width-1430 as img %} {% image self.img width-1430 %}
<img
src="{{ img.url }}"
alt="{{ img.alt }}"
>
{% if self.caption %} {% if self.caption %}
<figcaption <figcaption
......
...@@ -12,17 +12,7 @@ ...@@ -12,17 +12,7 @@
" "
id="ytVideo{{ self.video_id }}PosterContainer" id="ytVideo{{ self.video_id }}PosterContainer"
> >
{% image self.poster_image width-720 as img %} {% image self.poster_image width-720 class="object-cover mb-2 aspect-video rounded opacity-50 duration-200 group-hover:blur-sm" %}
<img
src="{{ img.url }}"
alt="{{ img.alt }}"
class="
object-cover mb-2 aspect-video rounded opacity-50 duration-200
group-hover:blur-sm
"
>
<div <div
class="absolute top-0 left-0 flex justify-center items-center w-full h-full" class="absolute top-0 left-0 flex justify-center items-center w-full h-full"
......
...@@ -9,12 +9,7 @@ ...@@ -9,12 +9,7 @@
data-id="{{ article.id }}" data-id="{{ article.id }}"
> >
<a href="{{ article.url }}"> <a href="{{ article.url }}">
{% image article.image width-1024 as image %} {% image article.image width-1024 class="w-full object-cover object-center h-[27rem]" %}
<img
src="{{ image.url }}"
class="w-full object-cover object-center h-[27rem]"
>
</a> </a>
<div class="flex flex-col px-8 pb-6 pt-5 h-full"> <div class="flex flex-col px-8 pb-6 pt-5 h-full">
......
...@@ -17,14 +17,8 @@ ...@@ -17,14 +17,8 @@
" "
> >
{% if self.page.profile_image %} {% if self.page.profile_image %}
{% image self.page.profile_image fill-150x150 as profile_image %} {% image self.page.profile_image fill-150x150 class="w-12 object-cover" %}
{% endif %} {% endif %}
<img
class="w-12 object-cover"
alt="Portrét osoby {{ self.page.title }}"
src="{% if profile_image %}{{ profile_image.url }}{% endif %}"
>
</div> </div>
<h4 <h4
...@@ -42,6 +36,7 @@ ...@@ -42,6 +36,7 @@
{% if self.page.is_pirate %} {% if self.page.is_pirate %}
<img <img
class="w-8" class="w-8"
alt="Logo pirátské strany"
src="{% static "styleguide2/images/logo-round-black.svg" %}" src="{% static "styleguide2/images/logo-round-black.svg" %}"
> >
...@@ -53,6 +48,7 @@ ...@@ -53,6 +48,7 @@
<img <img
class="w-8" class="w-8"
alt="Logo {{ self.page.other_party }}"
src="{{ other_party_logo_image.url }}" src="{{ other_party_logo_image.url }}"
> >
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
data-fancybox="gallery" data-fancybox="gallery"
data-caption="{{ thumb.alt }}" data-caption="{{ thumb.alt }}"
> >
<img class="rounded" src="{{ thumb.url }}" alt="thumb.alt" /> <img class="rounded" src="{{ thumb.url }}" alt="{{ thumb.alt }}" />
</a> </a>
{% endfor %} {% endfor %}
</div> </div>
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<div class="flex flex-wrap gap-4 lg:flex-nowrap"> <div class="flex flex-wrap gap-4 lg:flex-nowrap">
<div class="grow lg:grow-0 lg:basis-2/3 prose max-w-screen-lg"> <div class="grow lg:grow-0 lg:basis-2/3 prose max-w-screen-lg">
{% include "styleguide2/includes/atoms/text/paragraph.html" with text=hoax %} {% include "styleguide2/includes/atoms/text/paragraph.html" with text=hoax %}
<img <img
class="mt-10" class="mt-10"
src="{% static "images/hoax.webp" %}" src="{% static "images/hoax.webp" %}"
......
...@@ -20,13 +20,7 @@ ...@@ -20,13 +20,7 @@
</div> </div>
{% if guarantor_page.profile_image %} {% if guarantor_page.profile_image %}
{% image guarnator_page.profile_image fill-150x150 as person_image %} {% image guarnator_page.profile_image fill-150x150 class="w-10 h-10 opacity-75 m-0 p-0 rounded-full" %}
<img
alt="Obrázek osoby {{ guarantor_page.title }}"
class="w-10 h-10 opacity-75 m-0 p-0 rounded-full"
src="{{ person_image.url }}"
>
{% endif %} {% endif %}
<strong> <strong>
......
...@@ -63,15 +63,10 @@ ...@@ -63,15 +63,10 @@
</div> </div>
{% if self.image %} {% if self.image %}
{% image self.image max-512x512 as person_image %} {% image self.image max-512x512 class="lg:h-96 h-64" %}
{% else %} {% else %}
{% image self.person_page.image max-512x512 as person_image %} {% image self.person_page.image max-512x512 class="lg:h-96 h-64" %}
{% endif %} {% endif %}
<img
class="lg:h-96 h-64"
src="{{ person_image.url }}"
>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -77,12 +77,7 @@ ...@@ -77,12 +77,7 @@
flex justify-center items-start grow w-full flex justify-center items-start grow w-full
" "
> >
{% image image max-756x756 as person_image %} {% image image max-756x756 class="lg:w-3/5" %}
<img
class="lg:w-3/5"
src="{{ person_image.url }}"
>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
{% load static %} {% load static %}
{% block navbar_logo_images %} {% block navbar_logo_images %}
<img class="navbar__logo--white w-[220px] lg:w-[280px]" src="{% static 'elections/logo-full-white.svg' %}" alt=""> <img class="navbar__logo--white w-[220px] lg:w-[280px]" src="{% static 'elections/logo-full-white.svg' %}" alt="Pirátské logo">
<img class="navbar__logo--black w-[220px] lg:w-[280px]" src="{% static 'elections/logo-full-black.svg' %}" alt=""> <img class="navbar__logo--black w-[220px] lg:w-[280px]" src="{% static 'elections/logo-full-black.svg' %}" alt="Pirátské logo">
{% endblock %} {% endblock %}
{% block popout_logo_image %} {% block popout_logo_image %}
<img <img
class="w-[220px] mt-3" class="w-[220px] mt-3"
src="{% static 'elections/logo-full-black.svg' %}" src="{% static 'elections/logo-full-black.svg' %}"
alt="" alt="Pirátské logo"
> >
{% endblock %} {% endblock %}
......
...@@ -21,8 +21,16 @@ ...@@ -21,8 +21,16 @@
<!-- BEGIN Logo--> <!-- BEGIN Logo-->
<a href="{{ page.root_page.url }}" class="z-20 xl:mt-2 hover:no-underline"> <a href="{{ page.root_page.url }}" class="z-20 xl:mt-2 hover:no-underline">
{% block navbar_logo_images %} {% block navbar_logo_images %}
<img class="navbar__logo--white w-[150px] lg:w-[180px]" src="{% static 'styleguide2/images/logo-full-white.svg' %}" alt=""> <img
<img class="navbar__logo--black w-[150px] lg:w-[180px]" src="{% static 'styleguide2/images/logo-full-black.svg' %}" alt=""> class="navbar__logo--white w-[150px] lg:w-[180px]"
src="{% static 'styleguide2/images/logo-full-white.svg' %}"
alt="Pirátské logo"
>
<img
class="navbar__logo--black w-[150px] lg:w-[180px]"
src="{% static 'styleguide2/images/logo-full-black.svg' %}"
alt="Pirátské logo"
>
{% endblock %} {% endblock %}
</a> </a>
<!-- END Logo --> <!-- END Logo -->
...@@ -165,7 +173,7 @@ ...@@ -165,7 +173,7 @@
<img <img
class="w-[150px] mt-3" class="w-[150px] mt-3"
src="{% static 'styleguide2/images/logo-full-black.svg' %}" src="{% static 'styleguide2/images/logo-full-black.svg' %}"
alt="" alt="Pirátské logo"
> >
{% endblock %} {% endblock %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment