summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/webui/resources/content-panel.html
blob: 426b25a5b9423a8792bad1d984f41486b8409340 (plain)
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
<link href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html" rel="import">
<link href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-in-animation.html" rel="import">
<link href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-out-animation.html" rel="import">
<link href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html" rel="import">
<link href="chrome://resources/polymer/v1_0/neon-animation/neon-animated-pages.html" rel="import">
<link href="chrome://resources/polymer/v1_0/paper-material/paper-material.html" rel="import">
<link href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.html" rel="import">
<link href="chrome://resources/polymer/v1_0/polymer/polymer.html" rel="import">
<link href="device-list.html" rel="import">
<link href="eligible-devices.html" rel="import">
<link href="local-state.html" rel="import">
<link href="reachable-devices.html" rel="import">

<dom-module id="content-panel">
  <style>
    :host {
      background-color: #ececec;
      display: flex;
      flex-direction: column;
    }

    #pages {
      overflow-y: auto;
    }

    paper-tabs {
      background-color: rgb(3, 169, 244);
      box-shadow: 0 3px 2px rgba(0, 0, 0, 0.2);
      color: white;
      font-size: 14px;
      font-weight: 500;
      width: 100%;
    }

    local-state,
    eligible-devices,
    reachable-devices {
      width: 80%;
    }
  </style>

  <template>
    <paper-tabs id="tabs" selected="{{selected_}}">
      <paper-tab>LOCAL STATE</paper-tab>
      <paper-tab>ELIGIBLE PHONES</paper-tab>
      <paper-tab>REACHABLE PHONES</paper-tab>
    </paper-tabs>

    <neon-animated-pages id="pages" selected="[[selected_]]"
        entry-animation="fade-in-animation"
        exit-animation="fade-out-animation"
        on-selected-item-changed="onSelectedPageChanged_"
        class="flex">
      <neon-animatable class="layout vertical center">
        <local-state id="local-state" class="flex"></local-state>
      </neon-animatable>

      <neon-animatable class="layout vertical center">
        <eligible-devices id="eligible-devices" class="flex"></eligible-devices>
        </eligible-devices>
      </neon-animatable>

      <neon-animatable class="layout vertical center">
        <reachable-devices id="reachable-devices" class="flex">
        </reachable-devices>
      </neon-animatable>
    </neon-animated-pages>
  </template>
  <script src="content-panel.js"></script>
</dom-module>