-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathht-elements-orders-empty.js
More file actions
70 lines (61 loc) · 1.63 KB
/
ht-elements-orders-empty.js
File metadata and controls
70 lines (61 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"use strict";
import { LitElement, html, css } from "lit-element";
import "@polymer/paper-button";
import { styles } from "@01ht/ht-theme/styles";
class HTElementsOrdersEmpty extends LitElement {
static get styles() {
return [
styles,
css`
:host {
display: flex;
position: relative;
box-sizing: border-box;
}
a,
a:hover {
color: inherit;
text-decoration: none;
}
img {
width: 15vw;
max-width: 164px;
min-width: 128px;
margin: auto;
}
#container {
display: flex;
align-items: center;
flex-direction: column;
margin: 32px auto 32px auto;
}
#text {
margin-top: 16px;
}
#sub {
text-align: center;
margin: 8px 0 16px 0;
font-size: 16px;
color: var(--secondary-text-color);
}
`
];
}
render() {
return html`
<div id="container">
<img src="${
window.appConfig.cloudinary.url
}/image/upload/v1541516058/apps/elements/pages/my-orders/empty.svg" alt="No orders">
<div id="text" class="mdc-typography--headline5">У вас пока нет заказов</div>
<div id="sub-text">
<div id="sub">Для покупки воспользуйтесь нашим каталогом</div>
</div>
<a href="/catalog">
<paper-button raised>Каталог</paper-button>
</a>
</div>
`;
}
}
customElements.define("ht-elements-orders-empty", HTElementsOrdersEmpty);