mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Add link to conference (#7636)
This commit is contained in:
parent
129f9c147b
commit
8feae04281
BIN
public/static/images/conference.png
Normal file
BIN
public/static/images/conference.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@ -61,12 +61,10 @@ class CloudAccount extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<hass-subpage header="[[localize('ui.panel.config.cloud.caption')]]">
|
<hass-subpage header="Home Assistant Cloud">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<ha-config-section is-wide="[[isWide]]">
|
<ha-config-section is-wide="[[isWide]]">
|
||||||
<span slot="header"
|
<span slot="header">Home Assistant Cloud</span>
|
||||||
>[[localize('ui.panel.config.cloud.caption')]]</span
|
|
||||||
>
|
|
||||||
<div slot="introduction">
|
<div slot="introduction">
|
||||||
<p>
|
<p>
|
||||||
[[localize('ui.panel.config.cloud.account.thank_you_note')]]
|
[[localize('ui.panel.config.cloud.account.thank_you_note')]]
|
||||||
|
@ -76,12 +76,10 @@ class CloudLogin extends LocalizeMixin(
|
|||||||
left: 8px;
|
left: 8px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<hass-subpage header="[[localize('ui.panel.config.cloud.caption')]]">
|
<hass-subpage header="Home Assistant Cloud">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<ha-config-section is-wide="[[isWide]]">
|
<ha-config-section is-wide="[[isWide]]">
|
||||||
<span slot="header"
|
<span slot="header">Home Assistant Cloud</span>
|
||||||
>[[localize('ui.panel.config.cloud.caption')]]</span
|
|
||||||
>
|
|
||||||
<div slot="introduction">
|
<div slot="introduction">
|
||||||
<p>
|
<p>
|
||||||
[[localize('ui.panel.config.cloud.login.introduction')]]
|
[[localize('ui.panel.config.cloud.login.introduction')]]
|
||||||
|
@ -22,6 +22,8 @@ import { configSections } from "../ha-panel-config";
|
|||||||
import "./ha-config-navigation";
|
import "./ha-config-navigation";
|
||||||
import { mdiCloudLock } from "@mdi/js";
|
import { mdiCloudLock } from "@mdi/js";
|
||||||
|
|
||||||
|
const CONF_HAPPENING = new Date() < new Date("2020-12-13T23:00:00Z");
|
||||||
|
|
||||||
@customElement("ha-config-dashboard")
|
@customElement("ha-config-dashboard")
|
||||||
class HaConfigDashboard extends LitElement {
|
class HaConfigDashboard extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
@ -58,7 +60,7 @@ class HaConfigDashboard extends LitElement {
|
|||||||
{
|
{
|
||||||
component: "cloud",
|
component: "cloud",
|
||||||
path: "/config/cloud",
|
path: "/config/cloud",
|
||||||
translationKey: "ui.panel.config.cloud.caption",
|
name: "Home Assistant Cloud",
|
||||||
info: this.cloudStatus,
|
info: this.cloudStatus,
|
||||||
iconPath: mdiCloudLock,
|
iconPath: mdiCloudLock,
|
||||||
},
|
},
|
||||||
@ -67,6 +69,19 @@ class HaConfigDashboard extends LitElement {
|
|||||||
</ha-card>
|
</ha-card>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
${CONF_HAPPENING
|
||||||
|
? html`
|
||||||
|
<ha-card class="conf-card"
|
||||||
|
><a
|
||||||
|
target="_blank"
|
||||||
|
href="https://www.home-assistant.io/conference"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<img src="/static/images/conference.png" />
|
||||||
|
<div class="carrot"><ha-icon-next></ha-icon-next></div></a
|
||||||
|
></ha-card>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
${Object.values(configSections).map(
|
${Object.values(configSections).map(
|
||||||
(section) => html`
|
(section) => html`
|
||||||
<ha-card>
|
<ha-card>
|
||||||
@ -165,6 +180,22 @@ class HaConfigDashboard extends LitElement {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
}
|
}
|
||||||
|
.conf-card {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.conf-card img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.conf-card .carrot {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 16px;
|
||||||
|
bottom: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
.promo-advanced {
|
.promo-advanced {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
|
@ -43,7 +43,8 @@ class HaConfigNavigation extends LitElement {
|
|||||||
slot="item-icon"
|
slot="item-icon"
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
<paper-item-body two-line>
|
<paper-item-body two-line>
|
||||||
${this.hass.localize(
|
${page.name ||
|
||||||
|
this.hass.localize(
|
||||||
page.translationKey ||
|
page.translationKey ||
|
||||||
`ui.panel.config.${page.component}.caption`
|
`ui.panel.config.${page.component}.caption`
|
||||||
)}
|
)}
|
||||||
|
@ -1504,7 +1504,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cloud": {
|
"cloud": {
|
||||||
"caption": "Home Assistant Cloud",
|
|
||||||
"description_login": "Logged in as {email}",
|
"description_login": "Logged in as {email}",
|
||||||
"description_not_login": "Not logged in",
|
"description_not_login": "Not logged in",
|
||||||
"description_features": "Control away from home, integrate with Alexa and Google Assistant.",
|
"description_features": "Control away from home, integrate with Alexa and Google Assistant.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user