|
5 | 5 | as |subsectionId subsectionTitle subsectionDescription|
|
6 | 6 | }}
|
7 | 7 | <section
|
8 |
| - data-test-subsection={{subsectionTitle}} |
9 | 8 | aria-labelledby="{{@sectionId}}__{{subsectionId}}"
|
| 9 | + data-test-subsection={{subsectionTitle}} |
10 | 10 | >
|
11 |
| - <h3 |
12 |
| - data-test-field="Subsection Title" |
13 |
| - id="{{@sectionId}}__{{subsectionId}}" |
14 |
| - > |
15 |
| - <a href="#{{@sectionId}}__{{subsectionId}}" title={{subsectionTitle}} class="permalink"> |
16 |
| - {{t "component.guide-section.section"}} |
17 |
| - </a> |
18 |
| - {{subsectionTitle}} |
| 11 | + <div local-class="title-container"> |
| 12 | + <h3 |
| 13 | + data-test-field="Subsection Title" |
| 14 | + id="{{@sectionId}}__{{subsectionId}}" |
| 15 | + local-class="title" |
| 16 | + > |
| 17 | + {{subsectionTitle}} |
| 18 | + </h3> |
| 19 | + |
19 | 20 | <a
|
20 |
| - class="edit-translation-link" |
21 |
| - data-test-link="Edit Translation" |
22 |
| - href="https://github.com/ember-learn/ember-octane-vs-classic-cheat-sheet/edit/main/translations/{{@sectionId}}/{{subsectionId}}/{{this.intl.locale}}.yaml" |
23 |
| - rel="noopener noreferrer" |
24 |
| - target="_blank" |
| 21 | + href="#{{@sectionId}}__{{subsectionId}}" |
| 22 | + local-class="permalink" |
| 23 | + title={{subsectionTitle}} |
25 | 24 | >
|
26 |
| - {{t "component.guide-section.edit-translation-text"}} |
| 25 | + {{t "component.guide-section.section"}} |
27 | 26 | </a>
|
28 |
| - </h3> |
| 27 | + </div> |
29 | 28 |
|
30 |
| - <p data-test-field="Subsection Description"> |
| 29 | + <p |
| 30 | + data-test-field="Subsection Description" |
| 31 | + local-class="description" |
| 32 | + > |
31 | 33 | {{subsectionDescription}}
|
32 | 34 | </p>
|
33 | 35 |
|
34 |
| - <div class="grid"> |
35 |
| - <div data-test-ember-classic> |
36 |
| - <h4>{{t "component.guide-section.subsection.classic"}}</h4> |
| 36 | + <ContainerQuery |
| 37 | + @features={{hash |
| 38 | + wide=(cq-width min=900) |
| 39 | + }} |
| 40 | + local-class="code-examples-container" |
| 41 | + > |
| 42 | + <div |
| 43 | + data-test-ember-classic |
| 44 | + local-class="ember-classic" |
| 45 | + > |
| 46 | + <h4 local-class="subtitle"> |
| 47 | + {{t "component.guide-section.subsection.classic"}} |
| 48 | + </h4> |
37 | 49 |
|
38 | 50 | {{#each @subsection.classicFiles as |file|}}
|
39 | 51 | <CodeSnippet
|
|
48 | 60 | {{/if}}
|
49 | 61 | </div>
|
50 | 62 |
|
51 |
| - <div data-test-ember-octane> |
52 |
| - <h4>{{t "component.guide-section.subsection.octane"}}</h4> |
| 63 | + <div |
| 64 | + data-test-ember-octane |
| 65 | + local-class="ember-octane" |
| 66 | + > |
| 67 | + <h4 local-class="subtitle"> |
| 68 | + {{t "component.guide-section.subsection.octane"}} |
| 69 | + </h4> |
53 | 70 |
|
54 | 71 | {{#each @subsection.octaneFiles as |file|}}
|
55 | 72 | <CodeSnippet
|
|
63 | 80 | </p>
|
64 | 81 | {{/if}}
|
65 | 82 | </div>
|
| 83 | + </ContainerQuery> |
| 84 | + |
| 85 | + <div local-class="edit-link-container"> |
| 86 | + <a |
| 87 | + data-test-link="Edit Translation" |
| 88 | + href="https://github.com/ember-learn/ember-octane-vs-classic-cheat-sheet/edit/main/translations/{{@sectionId}}/{{subsectionId}}/{{this.intl.locale}}.yaml" |
| 89 | + local-class="edit-link" |
| 90 | + rel="noopener noreferrer" |
| 91 | + target="_blank" |
| 92 | + > |
| 93 | + {{t "component.guide-section.edit-translation-text"}} |
| 94 | + </a> |
66 | 95 | </div>
|
67 | 96 | </section>
|
68 | 97 | {{/let}}
|
0 commit comments