mirror of
https://github.com/home-assistant/frontend
synced 2024-08-30 01:56:15 +02:00
Add demo instructions
This commit is contained in:
parent
a97750b5dd
commit
1557b735f2
@ -20,20 +20,37 @@
|
|||||||
.content {
|
.content {
|
||||||
padding: 0 16px 16px;
|
padding: 0 16px 16px;
|
||||||
}
|
}
|
||||||
|
.install {
|
||||||
|
display: block;
|
||||||
|
white-space: pre;
|
||||||
|
line-height: 1.5em;
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<ha-card header="Welcome Home!">
|
<ha-card header="Welcome Home!">
|
||||||
<div class='content'>
|
<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.
|
Here are some resources to get started.
|
||||||
<ul>
|
<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'>
|
<li><a href='https://home-assistant.io/getting-started/configuration.html' target='_blank'>
|
||||||
Configuring Home Assistant
|
Configuring Home Assistant
|
||||||
</a></li>
|
</a></li>
|
||||||
<li><a href='https://home-assistant.io/components/' target='_blank'>
|
<li><a href='https://home-assistant.io/components/' target='_blank'>
|
||||||
Available components
|
Available components
|
||||||
</a></li>
|
</a></li>
|
||||||
<li><a href='https://gitter.im/balloob/home-assistant' target='_blank'>
|
<li><a href='https://home-assistant.io/getting-started/troubleshooting-configuration.html'>Troubleshooting your configuration</a></li>
|
||||||
Chat room
|
<li><a href='https://home-assistant.io/help/' target='_blank'>
|
||||||
|
Getting help
|
||||||
</a></li>
|
</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<template is='dom-if' if='[[showHideInstruction]]'>
|
<template is='dom-if' if='[[showHideInstruction]]'>
|
||||||
|
@ -6,6 +6,10 @@ export default new Polymer({
|
|||||||
is: 'ha-introduction-card',
|
is: 'ha-introduction-card',
|
||||||
|
|
||||||
properties: {
|
properties: {
|
||||||
|
showInstallInstruction: {
|
||||||
|
type: Boolean,
|
||||||
|
value: __DEMO__,
|
||||||
|
},
|
||||||
showHideInstruction: {
|
showHideInstruction: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true,
|
value: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user