Add figure partial
This commit is contained in:
parent
baf9ac5809
commit
a5a4bdd465
8
source/_partials/figure.html.twig
Normal file
8
source/_partials/figure.html.twig
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<figure class="block">
|
||||||
|
<img src="{{ image.src }}" alt="{{ image.alt }}" class="p-1 border">
|
||||||
|
{% if caption %}
|
||||||
|
<figcaption class="mt-2 mb-0 italic text-sm text-center text-gray-800">
|
||||||
|
{{ caption }}
|
||||||
|
</figcaption>
|
||||||
|
{% endif %}
|
||||||
|
</figure>
|
|
@ -108,30 +108,41 @@ This was the first page that I rebuilt - the Environments page for an applicatio
|
||||||
|
|
||||||
Vue Router is configured to show the
|
Vue Router is configured to show the
|
||||||
|
|
||||||
|
{% include 'figure' with {
|
||||||
<figure>
|
image: {
|
||||||
<img src="/images/blog/rebuilding-acquia-vue-tailwind/3-environments.png" alt="A screenshot of the rebuilt Environments page." class="border border-grey-light p-1">
|
src: '/images/blog/rebuilding-acquia-vue-tailwind/3-environments.png',
|
||||||
<figcaption>The rebuilt Environments page for an application.</figcaption>
|
alt: 'A screenshot of the rebuilt Environments page.',
|
||||||
</figure>
|
},
|
||||||
|
caption: 'The rebuilt Environments page for an application.',
|
||||||
|
} %}
|
||||||
|
|
||||||
## The applications page
|
## The applications page
|
||||||
|
|
||||||
<figure>
|
{% include 'figure' with {
|
||||||
<img src="/images/blog/rebuilding-acquia-vue-tailwind/1-applications.png" alt="A screenshot of the rebuilt Applications page." class="border border-gray-300 p-2">
|
image: {
|
||||||
<figcaption>The rebuilt Applications page.</figcaption>
|
src: '/images/blog/rebuilding-acquia-vue-tailwind/1-applications-grid.png',
|
||||||
</figure>
|
alt: 'The rebuild Applications page, with applications displayed in a grid.',
|
||||||
|
},
|
||||||
|
caption: 'The rebuilt Applications page - grid view',
|
||||||
|
} %}
|
||||||
|
|
||||||
<figure>
|
{% include 'figure' with {
|
||||||
<img src="/images/blog/rebuilding-acquia-vue-tailwind/2-applications-list.png" alt="A screenshot of the rebuilt Applications page as a list." class="border border-grey-light p-1">
|
image: {
|
||||||
<figcaption>The rebuilt Applications page.</figcaption>
|
src: '/images/blog/rebuilding-acquia-vue-tailwind/2-applications-list.png',
|
||||||
</figure>
|
alt: 'The rebuild Applications page, with applications displayed as a list.',
|
||||||
|
},
|
||||||
|
caption: 'The rebuilt Applications page - list view',
|
||||||
|
} %}
|
||||||
|
|
||||||
## An environment page
|
## An environment page
|
||||||
|
|
||||||
<figure>
|
{% include 'figure' with {
|
||||||
<img src="/images/blog/rebuilding-acquia-vue-tailwind/3-environment.png" alt="A screenshot of the rebuilt page for an environment within an application." class="border border-gray-300 p-2">
|
image: {
|
||||||
<figcaption>The rebuilt page for an environment within an application.</figcaption>
|
src: '/images/blog/rebuilding-acquia-vue-tailwind/4-environment.png',
|
||||||
</figure>
|
alt: 'A screenshot of the rebuilt Environment page.',
|
||||||
|
},
|
||||||
|
caption: 'The rebuilt page for an environment within an application.',
|
||||||
|
} %}
|
||||||
|
|
||||||
[github]: https://github.com/opdavies/rebuilding-acquia
|
[github]: https://github.com/opdavies/rebuilding-acquia
|
||||||
[netlify]: https://rebuilding-acquia.oliverdavies.uk
|
[netlify]: https://rebuilding-acquia.oliverdavies.uk
|
||||||
|
|
Loading…
Reference in a new issue