-
Notifications
You must be signed in to change notification settings - Fork 198
feat(Logo section): Support block level usage #5744
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
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
85 changes: 85 additions & 0 deletions
85
templates/docs/examples/patterns/logo-section/block-scoped.html
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,85 @@ | ||
| {% extends "_layouts/examples.html" %} | ||
| {% from "_macros/vf_logo-section.jinja" import vf_logo_section %} | ||
| {% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %} | ||
| {% block title %}Logo section / Default{% endblock %} | ||
| {% block standalone_css %}patterns_all{% endblock %} | ||
| {% set is_paper = true %} | ||
| {% block content %} | ||
| {%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%} | ||
| {%- if slot == 'title' -%} | ||
| <h2>H2 - up to two lines; ideally one.</h2> | ||
| {%- endif -%} | ||
|
|
||
| {%- if slot == 'description' -%} | ||
| <p>A <a href="#">private cloud</a> provides organisations with on-demand | ||
| compute, storage and other resources that can be accessed over the network | ||
| and that are reserved exclusively for them - either in their own data centre | ||
| or via a 3rd party. | ||
| </p> | ||
| {%- endif -%} | ||
|
|
||
| {%- if slot == 'list_item_title_1' -%} | ||
| <h3 class="p-heading--5">Rich portfolio of products</h3> | ||
| {%- endif -%} | ||
|
|
||
| {%- if slot == 'list_item_description_1' -%} | ||
| <p>Resell the full range of Canonical’s portfolio of private and public | ||
| cloud products: OpenStack, Kubernetes, IoT, support, security and | ||
| compliance for Ubuntu. | ||
| </p> | ||
|
|
||
| {% call(slot) vf_logo_section( | ||
| title={"text": ""}, | ||
| top_rule_variant="none", | ||
| padding="none", | ||
| scope="block", | ||
| blocks=[ | ||
| { | ||
| "type": "logo-block", | ||
| "item": { | ||
| "logos": [ | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/38fdfd23-Dell-logo.png", | ||
| "alt": "Dell Technologies" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/cd5f636a-hp-logo.png", | ||
| "alt": "Hewlett Packard" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/f90702cd-lenovo-logo.png", | ||
| "alt": "Lenovo" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/2ef3c028-amazon-web-services-logo.png", | ||
| "alt": "Amazon Web Services" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/cb7ef8ac-ibm-cloud-logo.png", | ||
| "alt": "IBM Cloud" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/210f44e4-microsoft-azure-new-logo.png", | ||
| "alt": "Microsoft Azure" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/a554a818-google-cloud-logo.png", | ||
| "alt": "Google Cloud Platform" | ||
| }, | ||
| { | ||
| "src": "https://assets.ubuntu.com/v1/b3e692f4-oracle-new-logo.png", | ||
| "alt": "Oracle" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| ) -%} | ||
| {% endcall -%} | ||
|
|
||
| <div class="p-cta-block"> | ||
| <a href="#">Learn more ›</a> | ||
| </div> | ||
| {%- endif -%} | ||
| {% endcall -%} | ||
| {% endblock %} |
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.
Uh oh!
There was an error while loading. Please reload this page.