-
Notifications
You must be signed in to change notification settings - Fork 18
Add use-case and outcome lens pages and cross-link includes #5376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dimitrieh
wants to merge
3
commits into
split/nav
Choose a base branch
from
split/usecase
base: split/nav
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| {# ============================================================ | ||
| USE CASES FOR THIS INDUSTRY - derived grid. | ||
| Lists every use-case page whose `industries[]` front-matter | ||
| contains the current page's fileSlug. Mapping source of truth: | ||
| the Use Cases Asana project (Industry field). | ||
| ============================================================ #} | ||
| {% set industrySlug = page.fileSlug %} | ||
| <div class="w-full py-16 sm:py-24 px-6 bg-gray-50 border-y border-gray-100"> | ||
| <div class="max-w-screen-lg mx-auto"> | ||
| <h2 class="max-md:text-center">Use cases in <span class="text-indigo-600">{{ industryDisplayName or hero.eyebrow or title }}</span></h2> | ||
| <p class="mt-4 max-w-3xl text-gray-600">Operational workflow patterns teams in this industry build and own with FlowFuse.</p> | ||
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 mt-10"> | ||
| {% for uc in collections["use-case"] | sort(false, true, "data.title") %} | ||
| {% if uc.data.industries and industrySlug in uc.data.industries %} | ||
| <a href="{{ uc.url }}" class="group hover:no-underline flex flex-col gap-3 rounded-xl border border-gray-200 p-6 bg-white hover:border-indigo-300 hover:shadow-sm transition-all"> | ||
| <h3 class="m-0 text-gray-800 group-hover:text-indigo-600 transition-colors">{{ uc.data.title }}</h3> | ||
| <p class="m-0 text-gray-600 text-sm flex-grow">{{ uc.data.problem }}</p> | ||
| <span class="ff-animated-link mt-2 text-indigo-600 text-sm font-semibold flex items-center gap-2"> | ||
| View use case | ||
| <span class="w-4 h-4 shrink-0 flex items-center [&>svg]:w-full [&>svg]:h-full">{% include "components/icons/arrow-right.svg" %}</span> | ||
| </span> | ||
| </a> | ||
| {% endif %} | ||
| {% endfor %} | ||
| </div> | ||
| </div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| {# ============================================================ | ||
| USE CASE CONTEXT BAND - labeled links to the industry lens | ||
| pages. Reads `industries[]` (slugs) from page front-matter. | ||
| The slug->label maps mirror | ||
| the Use Cases Asana project fields (source of truth). | ||
| Rendered near the end of the use-case page, not under the hero. | ||
| ============================================================ #} | ||
| {% set industryLabels = { | ||
| "automotive": "Automotive", | ||
| "food-beverage": "Food & Beverage", | ||
| "life-sciences": "Life Sciences", | ||
| "aviation-aerospace": "Aviation & Aerospace", | ||
| "aerospace-components": "Aerospace Components", | ||
| "renewables": "Renewables", | ||
| "semiconductors": "Semiconductors", | ||
| "electronics-appliances": "Electronics & Appliances" | ||
| } %} | ||
| {% if industries %} | ||
| <div class="w-full px-6 py-10 bg-gray-50 border-y border-gray-100"> | ||
| <div class="max-w-screen-lg mx-auto grid grid-cols-1 sm:grid-cols-[12rem_1fr] gap-x-8 gap-y-4 items-baseline"> | ||
| {% if industries %} | ||
| <span class="uppercase text-xs font-semibold text-gray-400 tracking-widest">Common in these industries</span> | ||
| <p class="m-0 text-gray-700"> | ||
| {% for slug in industries %}<a href="/industries/{{ slug }}/" class="text-indigo-600 hover:text-indigo-800 font-medium">{{ industryLabels[slug] or slug }}</a>{% if not loop.last %}, {% endif %}{% endfor %} | ||
| <span class="text-gray-400">·</span> <a href="/industries/" class="text-gray-500 hover:text-indigo-600 text-sm">all industries</a> | ||
| </p> | ||
| {% endif %} | ||
| </div> | ||
| </div> | ||
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| {# ============================================================ | ||
| USE CASE LINKS - systematic cross-link cards. | ||
| The host page declares which use cases to feature: | ||
| {% set featuredUseCases = ["slug-a", "slug-b"] %} | ||
| {% include "components/use-case-links.njk" %} | ||
| Card content (title, problem line, url) derives from each | ||
| use-case page's own front matter, so copy lives in one place. | ||
| ============================================================ #} | ||
| {% if featuredUseCases %} | ||
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 mt-10"> | ||
| {% for slug in featuredUseCases %} | ||
| {% for uc in collections["use-case"] %} | ||
| {% if uc.fileSlug == slug %} | ||
| <a href="{{ uc.url }}" class="group hover:no-underline flex flex-col gap-3 rounded-xl border border-gray-200 p-6 bg-white hover:border-indigo-300 hover:shadow-sm transition-all"> | ||
| <h3 class="m-0 text-gray-800 group-hover:text-indigo-600 transition-colors">{{ uc.data.title }}</h3> | ||
| <p class="m-0 text-gray-600 text-sm flex-grow">{{ uc.data.problem }}</p> | ||
| <span class="ff-animated-link mt-2 text-indigo-600 text-sm font-semibold flex items-center gap-2">View use case <span class="w-4 h-4">{% include "components/icons/arrow-right.svg" %}</span></span> | ||
| </a> | ||
| {% endif %} | ||
| {% endfor %} | ||
| {% endfor %} | ||
| </div> | ||
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introducing it here creates an inconsistency with the rest of links across the website. I would reserve this for the main nav exclusively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see you've been adding that class to other elements as well, lets reserve this class for the main nav only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For instance, here, the hover effect on the card is enough, no need for that effect there
