|
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <title>RHElements: rh-card Demo</title> |
6 | 6 |
|
7 | | - <!-- needed for CP-Themeset --> |
8 | | - <link rel="stylesheet" type="text/css" href="//overpass-30e2.kxcdn.com/overpass.css"> |
| 7 | + <!-- needed for CP-Theme --> |
| 8 | + <link rel="stylesheet" href="http://overpass-30e2.kxcdn.com/overpass.css" /> |
9 | 9 | <!-- |
10 | 10 | if support for IE11 IS NOT needed, just include the stylesheet |
11 | 11 | than contains all of the variables for your themeset |
12 | 12 | --> |
13 | | - <!-- use cp-themeset --> |
14 | | - <!-- <link rel="stylesheet" type="text/css" href="../../cp-themeset/cp-themeset.css"> --> |
15 | | - |
16 | | - <!-- use another themeset --> |
17 | | - <!-- <link rel="stylesheet" type="text/css" href="../../test-themeset/test-themeset.css"> --> |
| 13 | + <!-- use cp-theme --> |
| 14 | + <!-- <link rel="stylesheet" href="../../../themes/cp-theme/cp-theme.css" /> --> |
18 | 15 |
|
19 | 16 | <!-- uncomment the es5-adapter if you're using the umd version --> |
20 | 17 | <script src="/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script> |
|
26 | 23 | that you want |
27 | 24 | --> |
28 | 25 | <script> |
29 | | - require(['../rh-card.umd.js']); |
| 26 | + require([ |
| 27 | + '../../../themes/cp-theme/cp-theme.umd.js', |
| 28 | + '../../rh-cta/rh-cta.umd.js', |
| 29 | + '../rh-card.umd.js' |
| 30 | + ]); |
30 | 31 | </script> |
31 | 32 |
|
32 | 33 | <noscript> |
|
35 | 36 |
|
36 | 37 | <link href="../../rhelement/rhelement.min.css" rel="stylesheet"> |
37 | 38 |
|
38 | | - <!-- |
39 | | - if support IS needed for IE11 |
40 | | - --> |
41 | | - <!-- use cp-themeset with support for IE11 --> |
42 | | - <!-- <script>require(['../../cp-themeset/cp-themeset.umd.js','../rh-card.umd.js'])</script> --> |
| 39 | + <style> |
| 40 | + /* For demo only */ |
| 41 | + .demo-cards { |
| 42 | + display: flex; |
| 43 | + flex-wrap: wrap; |
| 44 | + } |
43 | 45 |
|
44 | | - <!-- use another themeset with support for IE11 --> |
45 | | - <!-- <script>require(['../../test-themeset/test-themeset.umd.js','../rh-card.umd.js'])</script> --> |
| 46 | + .demo-cards > * { |
| 47 | + margin: 0 16px 32px; |
| 48 | + width: calc(25% - 32px); |
| 49 | + } |
| 50 | + </style> |
46 | 51 |
|
47 | 52 | </head> |
48 | 53 | <body unresolved> |
49 | 54 | <h1><rh-card></h1> |
50 | | - <rh-card theme="dark"> |
51 | | - <h2 slot="header">Dark Theme</h2> |
52 | | - This is rh-card with a dark theme. |
53 | | - <div slot="footer">Text in footer</div> |
54 | | - </rh-card> |
55 | | - <rh-card theme="light"> |
56 | | - <h2 slot="header">Light Theme</h2> |
57 | | - This is rh-card with a light theme. |
58 | | - <div slot="footer">Text in footer</div> |
59 | | - </rh-card> |
| 55 | + <div class="demo-cards"> |
| 56 | + |
| 57 | + <rh-card color="lightest"> |
| 58 | + <h2 slot="header">Lightest card</h2> |
| 59 | + <p>This is the lightest rh-card and <a href="#">a link</a>.</p> |
| 60 | + <div slot="footer"><rh-cta priority="primary"><a href="#">Learn more</a></rh-cta></div> |
| 61 | + </rh-card> |
| 62 | + <rh-card color="light"> |
| 63 | + <h2 slot="header">Light card</h2> |
| 64 | + |
| 65 | + <p> |
| 66 | + This is the light rh-card and <a href="#">a link</a>. |
| 67 | + </p> |
| 68 | + <p> |
| 69 | + Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. |
| 70 | + </p> |
| 71 | + <p> |
| 72 | + Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. |
| 73 | + </p> |
| 74 | + |
| 75 | + <div slot="footer"><rh-cta priority="secondary"><a href="#">Learn more</a></rh-cta></div> |
| 76 | + </rh-card> |
| 77 | + <rh-card> |
| 78 | + <h2 slot="header">Default card</h2> |
| 79 | + Unwrapped item. This is the default rh-card and <a href="#">a link</a>. |
| 80 | + <div slot="footer"><rh-cta priority="secondary"><a href="#">Learn more</a></rh-cta></div> |
| 81 | + </rh-card> |
| 82 | + <rh-card color="dark"> |
| 83 | + <h2 slot="header">Dark Card</h2> |
| 84 | + <p>This is the dark rh-card and <a href="#">a link</a>.</p> |
| 85 | + <div slot="footer"><rh-cta priority="secondary" on="dark"><a href="#">Learn more</a></rh-cta></div> |
| 86 | + </rh-card> |
| 87 | + <rh-card color="darkest"> |
| 88 | + <h2 slot="header">Darkest Card</h2> |
| 89 | + <p>This is the darkest rh-card and <a href="#">a link</a>.</p> |
| 90 | + <div slot="footer"><rh-cta priority="secondary" on="dark"><a href="#">Learn more</a></rh-cta></div> |
| 91 | + </rh-card> |
| 92 | + <rh-card color="complement"> |
| 93 | + <h2 slot="header">Complement Card</h2> |
| 94 | + <p>This is the complement rh-card and <a href="#">a link</a>.</p> |
| 95 | + <div slot="footer"><rh-cta priority="secondary" on="dark"><a href="#">Learn more</a></rh-cta></div> |
| 96 | + </rh-card> |
| 97 | + <rh-card color="accent"> |
| 98 | + <h2 slot="header">Accent Card</h2> |
| 99 | + <p>This is the accent rh-card and <a href="#">a link</a>. Leverage agile frameworks to provide a robust synopsis for high level overviews.</p> |
| 100 | + </rh-card> |
| 101 | + </div> |
60 | 102 | </body> |
61 | 103 | </html> |
0 commit comments