Skip to content

Commit e22a403

Browse files
dimitriehYndira-E
andauthored
Use case: Production Monitoring (#5083)
Co-authored-by: Yndira-E <yndira@flowfuse.com>
1 parent 9af86e4 commit e22a403

32 files changed

Lines changed: 576 additions & 36 deletions

.eleventy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ module.exports = function(eleventyConfig) {
221221
eleventyConfig.addLayoutAlias('page', 'layouts/page.njk');
222222
eleventyConfig.addLayoutAlias('nohero', 'layouts/nohero.njk');
223223
eleventyConfig.addLayoutAlias('solution', 'layouts/solution.njk');
224+
eleventyConfig.addLayoutAlias('use-case', 'layouts/use-case.njk');
224225
eleventyConfig.addLayoutAlias('catalog', 'layouts/catalog.njk');
225226
eleventyConfig.addLayoutAlias('redirect', 'layouts/redirect.njk');
226227

nuxt/components/AppHeader.vue

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

src/_data/features.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"imageFolder": "./images/pictograms/",
3131
"imageFile": "edge_blue.png",
3232
"imageAlt": " edge management.",
33-
"content": "FlowFuse allows you to deploy and manage Node-RED instances out to <a href='/solutions/edge-connectivity/'>edge devices</a>. This allows you to deploy the exact same instance out to hundreds or thousands of edge devices and monitor their status."
33+
"content": "FlowFuse allows you to deploy and manage Node-RED instances out to <a href='/use-cases/edge-connectivity/'>edge devices</a>. This allows you to deploy the exact same instance out to hundreds or thousands of edge devices and monitor their status."
3434
},{
3535
"title": "Software Delivery Pipelines",
3636
"imageFolder": "./images/pictograms/",
Lines changed: 10 additions & 2 deletions
Loading
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{# ============================================================
2+
RELATED RESOURCES
3+
Three columns: Case studies / eBooks and Whitepapers / Blog.
4+
Content opts in via a dedicated front matter field:
5+
usecase:
6+
- production-monitoring
7+
The layout passes `useCaseSlug` (e.g. "production-monitoring").
8+
============================================================ #}
9+
10+
{% set caseStudies = [] %}
11+
{% set whitepapers = [] %}
12+
{% set blogPosts = [] %}
13+
{% for item in collections.all %}
14+
{% if item.data.usecase and useCaseSlug in item.data.usecase %}
15+
{% if "/customer-stories/" in item.url %}
16+
{% set caseStudies = (caseStudies.push(item), caseStudies) %}
17+
{% elif "/ebooks/" in item.url or "/whitepaper/" in item.url %}
18+
{% set whitepapers = (whitepapers.push(item), whitepapers) %}
19+
{% elif "/blog/" in item.url %}
20+
{% set blogPosts = (blogPosts.push(item), blogPosts) %}
21+
{% endif %}
22+
{% endif %}
23+
{% endfor %}
24+
25+
{% set columns = [
26+
{heading: "Case studies", items: caseStudies},
27+
{heading: "eBooks and Whitepapers", items: whitepapers},
28+
{heading: "Blog", items: blogPosts}
29+
] %}
30+
31+
<div class="w-full py-16 sm:py-24 px-6 bg-gray-50 border-y border-gray-100">
32+
<div class="max-w-screen-lg mx-auto">
33+
<h2 class="max-md:text-center">Related resources</h2>
34+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-10">
35+
{% for column in columns %}
36+
<div>
37+
<h4 class="text-gray-800 border-b border-gray-200 pb-3 mb-4">{{ column.heading }}</h4>
38+
{% if column.items.length %}
39+
<ul class="flex flex-col gap-3 list-none p-0 m-0">
40+
{% for item in column.items %}
41+
<li>
42+
<a href="{{ item.url }}" class="text-indigo-600 hover:text-indigo-800">{{ item.data.title or item.data.meta.title or item.data.contentTitle | safe }}</a>
43+
</li>
44+
{% endfor %}
45+
</ul>
46+
{% else %}
47+
<div class="rounded-lg border border-dashed border-gray-300 bg-white p-6 text-center">
48+
<p class="m-0 text-gray-400 text-sm">More coming soon</p>
49+
</div>
50+
{% endif %}
51+
</div>
52+
{% endfor %}
53+
</div>
54+
</div>
55+
</div>

src/_includes/layouts/base.njk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ eleventyComputed:
218218
</li>
219219
{% navoption "By Use Case", null, 1, null, true, "pl-3 title border-l-2 sm:col-start-2 sm:row-start-1" %}{% endnavoption %}
220220
<li class="contents">
221-
<ul class="sub-menu grid grid-rows-subgrid row-span-6 ml-7 auto-rows-auto border-l-2 sm:col-start-2 sm:row-start-2">
222-
{% navoption "IT/OT middleware", "/solutions/it-ot-middleware/", 1, "cog" %}{% endnavoption %}
223-
{% navoption "Unified Namespace", "/solutions/uns/", 1, "uns" %}{% endnavoption %}
224-
{% navoption "SCADA", "/solutions/scada/", 1, "adjustments-horizontal" %}{% endnavoption %}
225-
{% navoption "MES", "/solutions/mes/", 1, "chart" %}{% endnavoption %}
226-
{% navoption "Edge Connectivity", "/solutions/edge-connectivity/", 1, "chip" %}{% endnavoption %}
227-
{% navoption "Data integration", "/solutions/data-integration/", 1, "db" %}{% endnavoption %}
221+
<ul class="sub-menu grid grid-rows-subgrid row-span-7 ml-7 auto-rows-auto border-l-2 sm:col-start-2 sm:row-start-2">
222+
{% navoption "Production Monitoring", "/use-cases/production-monitoring/", 1, "pulse" %}{% endnavoption %}
223+
{% navoption "IT/OT middleware", "/use-cases/it-ot-middleware/", 1, "cog" %}{% endnavoption %}
224+
{% navoption "Unified Namespace", "/use-cases/uns/", 1, "uns" %}{% endnavoption %}
225+
{% navoption "MES", "/use-cases/mes/", 1, "chart" %}{% endnavoption %}
226+
{% navoption "Edge Connectivity", "/use-cases/edge-connectivity/", 1, "chip" %}{% endnavoption %}
227+
{% navoption "See all use cases", "/use-cases/", 1, "arrow-right" %}{% endnavoption %}
228228
</ul>
229229
</li>
230230
</ul>

0 commit comments

Comments
 (0)