Add demo instructions
This commit is contained in:
parent
a97750b5dd
commit
1557b735f2
|
@ -20,20 +20,37 @@
|
|||
.content {
|
||||
padding: 0 16px 16px;
|
||||
}
|
||||
.install {
|
||||
display: block;
|
||||
white-space: pre;
|
||||
line-height: 1.5em;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<ha-card header="Welcome Home!">
|
||||
<div class='content'>
|
||||
<template is='dom-if' if='[[showInstallInstruction]]'>
|
||||
To install Home Assistant, run:<br />
|
||||
<code class='install'>pip3 install homeassistant
|
||||
hass --open-ui</code>
|
||||
</template>
|
||||
Here are some resources to get started.
|
||||
<ul>
|
||||
<template is='dom-if' if='[[showInstallInstruction]]'>
|
||||
<li><a href='https://home-assistant.io/getting-started/'>Installation instructions per platform</a></li>
|
||||
<li><a href='https://home-assistant.io/getting-started/troubleshooting.html'>Troubleshooting your installation</a></li>
|
||||
</template>
|
||||
<li><a href='https://home-assistant.io/getting-started/configuration.html' target='_blank'>
|
||||
Configuring Home Assistant
|
||||
</a></li>
|
||||
<li><a href='https://home-assistant.io/components/' target='_blank'>
|
||||
Available components
|
||||
</a></li>
|
||||
<li><a href='https://gitter.im/balloob/home-assistant' target='_blank'>
|
||||
Chat room
|
||||
<li><a href='https://home-assistant.io/getting-started/troubleshooting-configuration.html'>Troubleshooting your configuration</a></li>
|
||||
<li><a href='https://home-assistant.io/help/' target='_blank'>
|
||||
Getting help
|
||||
</a></li>
|
||||
</ul>
|
||||
<template is='dom-if' if='[[showHideInstruction]]'>
|
||||
|
|
|
@ -6,6 +6,10 @@ export default new Polymer({
|
|||
is: 'ha-introduction-card',
|
||||
|
||||
properties: {
|
||||
showInstallInstruction: {
|
||||
type: Boolean,
|
||||
value: __DEMO__,
|
||||
},
|
||||
showHideInstruction: {
|
||||
type: Boolean,
|
||||
value: true,
|
||||
|
|
Loading…
Reference in New Issue