|
4 | 4 | {% extends 'guide.njk' %} |
5 | 5 | {% block content %} |
6 | 6 | <section> |
7 | | - <p> |
8 | | - This guide is intented to help developers initialize a Helix application. |
| 7 | + <p class="comfortable"> |
| 8 | + The HelixUI library provides front-end developers a set of reusable CSS |
| 9 | + classes and HTML Custom Elements that adhere to Helix design standards. |
| 10 | + Adopting the library will enable developers to build products with consistent |
| 11 | + markup, styles, and behavior across a variety of frameworks. |
9 | 12 | </p> |
10 | 13 | </section> |
11 | 14 |
|
12 | 15 | <section><!-- Install from NPM --> |
13 | | - <h2 id="install">Step 1: Install HelixUI via npm or Yarn</h2> |
14 | | - <p> |
15 | | - HelixUI is registered as a package on <a href="https://www.npmjs.com/">npm</a>. |
16 | | - You can install the latest version with the npm CLI command: |
17 | | - </p> |
18 | | - {% code "bash" %} |
19 | | - npm install --save-dev helix-ui |
20 | | - {% endcode %} |
21 | | - |
22 | | - <p> |
23 | | - Alternatively, you can use the <a href="https://yarnpkg.com">Yarn</a> |
24 | | - CLI command: |
25 | | - </p> |
26 | | - {% code "bash" %} |
27 | | - yarn add helix-ui |
28 | | - {% endcode %} |
| 16 | + <h2 id="install">Step 1: Install HelixUI</h2> |
| 17 | + <hx-tabset class="beta-hxBound"> |
| 18 | + <hx-tablist> |
| 19 | + <hx-tab>NPM</hx-tab> |
| 20 | + <hx-tab>Download</hx-tab> |
| 21 | + </hx-tablist> |
| 22 | + <hx-tabcontent> |
| 23 | + <hx-tabpanel class="hxBox-xl"> |
| 24 | + <p> |
| 25 | + Using <a href="https://npmjs.com">npm</a>: |
| 26 | + </p> |
| 27 | + <figure> |
| 28 | + {% code "bash" %} |
| 29 | + npm install helix-ui |
| 30 | + {% endcode %} |
| 31 | + </figure> |
29 | 32 |
|
30 | | - <p> |
31 | | - Both approaches install HelixUI in the <code>node_modules/</code> directory. |
32 | | - </p> |
| 33 | + <p> |
| 34 | + If you prefer <a href="https://yarnpkg.com/">Yarn</a>, use the following command: |
| 35 | + </p> |
| 36 | + <figure> |
| 37 | + {% code "bash" %} |
| 38 | + yarn add helix-ui |
| 39 | + {% endcode %} |
| 40 | + </figure> |
| 41 | + </hx-tabpanel> |
| 42 | + <hx-tabpanel class="hxBox-xl"> |
| 43 | + <p> |
| 44 | + If HelixUI is not available in your chosen package manager, |
| 45 | + pre-built assets are available for download. |
| 46 | + </p> |
| 47 | + <p> |
| 48 | + <a href="downloads/helix-ui-{{VERSION}}.tgz" class="hxBtn hxPrimary"> |
| 49 | + <hx-icon type="download"></hx-icon> |
| 50 | + Download HelixUI (v{{VERSION}}) |
| 51 | + </a> |
| 52 | + </p> |
| 53 | + </hx-tabpanel> |
| 54 | + </hx-tabcontent> |
| 55 | + </hx-tabset> |
33 | 56 | </section> |
34 | 57 |
|
35 | 58 | <section><!-- Choose a Layout --> |
36 | 59 | <h2 id="choose-layout">Step 2: Choose a Layout</h2> |
37 | 60 | <p> |
38 | | - Building a Helix application begins with choosing a layout. |
39 | | - HelixUI provides two supported layouts from which you can choose. |
| 61 | + HelixUI provides two layouts to use in your application. |
40 | 62 | </p> |
41 | 63 | <ol> |
42 | 64 | <li> |
43 | | - <a href="components/layouts/#vertical-layout">Vertical Layout</a> |
44 | | - <ul> |
45 | | - <li>Lengthy content pushes the footer below the fold.</li> |
46 | | - </ul> |
| 65 | + Copy the source code for a layout template into your application. |
47 | 66 | </li> |
48 | 67 | <li> |
49 | | - <a href="components/layouts/#horizontal-layout">Horizontal Layout</a> |
50 | | - <ul> |
51 | | - <li>The footer is always visible.</li> |
52 | | - </ul> |
| 68 | + Review the copied markup (especially URLs) to fit your application's needs. |
53 | 69 | </li> |
54 | 70 | </ol> |
| 71 | + <div class="beta-hxCardRow"> |
| 72 | + <hx-panel class="beta-hxCard hxOpen"> |
| 73 | + <header> |
| 74 | + <h3>Vertical Layout</h3> |
| 75 | + </header> |
| 76 | + <div> |
| 77 | + <p> |
| 78 | + Lengthy content can push the footer |
| 79 | + below the bottom of the viewport. |
| 80 | + </p> |
| 81 | + </div> |
| 82 | + <footer> |
| 83 | + <a href="components/layouts/vertical-layout-template.html"> |
| 84 | + View the Vertical Template |
| 85 | + </a> |
| 86 | + </footer> |
| 87 | + </hx-panel> |
| 88 | + |
| 89 | + <hx-panel class="beta-hxCard hxOpen"> |
| 90 | + <header> |
| 91 | + <h3>Horizontal Layout</h3> |
| 92 | + </header> |
| 93 | + <div> |
| 94 | + <p> |
| 95 | + Content is arranged horizontally in panels |
| 96 | + while the footer remains visible at all times. |
| 97 | + </p> |
| 98 | + </div> |
| 99 | + <footer> |
| 100 | + <a href="components/layouts/horizontal-layout-template.html"> |
| 101 | + View the Horizontal Template |
| 102 | + </a> |
| 103 | + </footer> |
| 104 | + </hx-panel> |
| 105 | + </div> |
| 106 | + <p> |
| 107 | + Visit the <a href="components/layouts">Layouts</a> component |
| 108 | + documentation for more details. |
| 109 | + </p> |
55 | 110 | </section> |
56 | 111 |
|
57 | 112 | <section><!-- Create Content --> |
58 | 113 | <h2 id="add-content">Step 3: Add Content</h2> |
59 | 114 | <p> |
60 | 115 | Add content and interactivity to your application using components. |
61 | | - Components contain interactive demos and information for various |
62 | | - interaction patterns. |
| 116 | + Documentation for a component contains interactive demos and details |
| 117 | + about various interaction patterns. |
63 | 118 | </p> |
64 | 119 | <ol> |
65 | 120 | <li>Choose a component from the navigation on the left.</li> |
|
0 commit comments