Skip to content

Commit 88034a3

Browse files
committed
add code-examples include file
1 parent 3ebe69d commit 88034a3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

includes/code-examples.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div class="my-6 pt-6">
2+
<h2 class="mb-2 font-mktg h1">{% data ui.product_landing.code_examples %}</h2>
3+
4+
<div class="pr-lg-3 mb-5 mt-3">
5+
<input class="js-filter-card-filter input-lg py-2 px-3 col-12 col-lg-8 form-control" placeholder="{% data ui.product_landing.search_code_examples %}" type="search" autocomplete="off" aria-label="Search code examples"/>
6+
</div>
7+
8+
<div class="d-flex flex-wrap gutter">
9+
{% render code-example-card for productCodeExamples as example %}
10+
</div>
11+
12+
<button class="js-filter-card-show-more btn btn-outline float-right" data-js-filter-card-max="6">{% data ui.product_landing.show_more %} {% octicon "arrow-right" %}</button>
13+
14+
<div class="js-filter-card-no-results d-none py-4 text-center color-text-secondary font-mktg">
15+
<div class="mb-3">{% octicon "search" width="24" %}</div>
16+
<h3 class="text-normal">{% data ui.product_landing.sorry %} <strong class="js-filter-card-value"></strong></h3>
17+
<p class="my-3 f4">{% data ui.product_landing.no_result %}<br>{% data ui.product_landing.try_another %}</p>
18+
<a href="https://github.com/github/docs/blob/main/data/variables/actions_code_examples.yml">{% data ui.product_landing.learn %} {% octicon "arrow-right" %}</a>
19+
</div>
20+
</div>

0 commit comments

Comments
 (0)