-
Notifications
You must be signed in to change notification settings - Fork 0
/
estimates.html
172 lines (168 loc) · 7.96 KB
/
estimates.html
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!doctype html>
<html class="page">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="/ui/resources/colors.css" />
<link rel="stylesheet" href="/ui/resources/fonts.css" />
<link rel="stylesheet" href="/ui/elements/icon.css" />
<link rel="stylesheet" href="/ui/elements/button.css" />
<link rel="stylesheet" href="/ui/elements/stats.css" />
<link rel="stylesheet" href="/ui/elements/pie-chart.css" />
<link rel="stylesheet" href="/ui/elements/table.css" />
<link rel="stylesheet" href="/ui/elements/tabs.css" />
<link rel="stylesheet" href="/ui/elements/typography.css" />
<link rel="stylesheet" href="/ui/global.css" />
<link rel="stylesheet" href="/ui/layout.css" />
<link rel="stylesheet" href="/ui/page.css" />
<script type="module" src="/estimates.js"></script>
</head>
<body class="page__body">
<template data-path="page">
<header class="header">
<h1 class="header__title">{{ header.title }}</h1>
<menu class="header__menu">
<li class="header__menu-item">
<a
class="button button--narrow"
href="{{ header.navButton.url }}"
title="{{ header.navButton.label }}"
>
<span class="icon icon--tune"></span>
</a>
</li>
<template data-path="header.authorBadges">
<li class="header__menu-item">
<img
class="icon icon--inline"
src="{{ image }}"
title="{{ label }}"
/>
</li>
</template>
</menu>
</header>
<main class="tabs main">
<form class="tabs__list" name="tabs">
<template data-path="estimates">
<label class="tabs__item">
<input
class="tabs__input"
type="radio"
name="input"
value="#panel-{{ count }}"
/>
<span class="button tabs__label">
{{ period | duration }}
</span>
</label>
</template>
</form>
<template data-path="estimates">
<article class="tabs__panel" id="panel-{{ count }}">
<h2 class="heading-2">{{ summary.title }}</h2>
<ul class="stats">
<template data-path="summary.items">
<li class="stats__item">
<span
class="stats__value"
title="{{ valueFormatted }}"
>
{{ value | compact }}
</span>
<span class="stats__label">
{{ label }}
</span>
</li>
</template>
</ul>
<h2 class="heading-2">{{ revenueChart.title }}</h2>
<figure class="pie-chart">
<div
class="pie-chart__image"
style="
--relativeColorStop1: {{ revenueChart.items.0.ratio }}turn;
--relativeColorStop2: {{ revenueChart.items.1.ratio }}turn;
--relativeColorStop3: {{ revenueChart.items.2.ratio }}turn;
--relativeColorStop4: {{ revenueChart.items.3.ratio }}turn;
"
>
<div
class="pie-chart__total-value"
title="{{ summary.items.1.value | currency }} (100%)"
>
{{ summary.items.1.value | compact }}
</div>
</div>
<figcaption class="pie-chart__legend">
<template data-path="revenueChart.items">
<div
class="pie-chart__segment-label"
title="{{ value | currency }} ({{ ratio | percent }})"
>
{{ label }}
<span class="pie-chart__segment-value">
{{ value | compact }}
</span>
</div>
</template>
</figcaption>
</figure>
<h2 class="heading-2">{{ average.title }}</h2>
<table class="table">
<thead class="table__header">
<tr class="table__header-row">
<template data-path="average.columns">
<td class="table__header-cell">
{{ name }}
</td>
</template>
</tr>
</thead>
<tbody class="table__body">
<template data-path="average.rows">
<tr class="table__body-row">
<td class="table__body-cell">
{{ period }}
</td>
<td
class="table__body-cell"
title="{{ sales | number }}"
>
{{ sales | compact }}
</td>
<td
class="table__body-cell"
title="{{ revenue | currency }}"
>
{{ revenue | compact}}
</td>
<td
class="table__body-cell"
title="{{ earnings | currency }}"
>
{{ earnings | compact }}
</td>
</tr>
</template>
</tbody>
</table>
</article>
</template>
</main>
<footer class="footer">
<p>
{{ poweredBy }}
<a class="anchor" href="https://build.envato.com">
Envato API
</a>
</p>
</footer>
</template>
<template data-path="error">
<main class="main main--only">
<h1 class="heading-1">{{ title }}</h1>
<p class="paragraph">{{ description }}</p>
</main>
</template>
</body>
</html>