-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (80 loc) · 3.12 KB
/
index.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
<!doctype html>
<html>
<head>
<title>PolymerMapsCodelab</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta charset="UTF-8">
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="bower_components/google-map/google-map.html">
<link rel="import" href="bower_components/google-map/google-map-directions.html">
<link rel="import" href="bower_components/iron-icon/iron-icon.html">
<link rel="import" href="bower_components/iron-icons/iron-icons.html">
<link rel="import" href="bower_components/paper-item/paper-item.html">
<link rel="import" href="bower_components/paper-item/paper-icon-item.html">
<link rel="import" href="bower_components/paper-input/paper-input.html">
<link rel="import" href="bower_components/paper-card/paper-card.html">
<link rel="import" href="bower_components/iron-icons/maps-icons.html">
<link rel="import" href="bower_components/paper-tabs/paper-tabs.html">
<link rel="stylesheet" href="styles.css">
<style is="custom-style">
paper-tabs {
--paper-tabs-selection-bar-color: #0D47A1;
margin-top: 16px;
}
paper-tab {
--paper-tab-ink: #BBDEFB;
}
/* Outros estilos que dão poder para realizar coisas incríveis, porém estes podem ser adicionados no arquivo styles.css, já que não utilizam nenhuma funcionalidade do Polymer */
paper-tab iron-icon {
margin-right: 10px;
}
paper-tab.iron-selected {
background: rgb(66, 133, 244);
color: white;
}
</style>
</head>
<body unresolved>
<template is="dom-bind">
<google-map map="{{map}}" latitude="37.779" longitude="-122.3892" zoom="13">
<google-map-marker latitude="37.779" longitude="-122.3892"
title="Go Giants!" draggable="true"></google-map-marker>
</google-map>
<google-map-directions map="{{map}}"
start-address="{{start}}"
end-address="{{end}}"
travel-mode="[[travelMode]]"></google-map-directions>
<paper-card elevation="2"> <!-- nível de elevação de sombra do card -->
<paper-icon-item>
<iron-icon icon="search" item-icon></iron-icon>
<paper-input label="Endereço inicial" value="{{start}}">
</paper-icon-item>
<paper-icon-item>
<iron-icon icon="search" item-icon></iron-icon>
<paper-input label="Endereço Final" value="{{end}}">
</paper-icon-item>
<paper-tabs selected="{{travelMode}}" attr-for-selected="label">
<paper-tab label="DRIVING">
<iron-icon icon="maps:directions-car"></iron-icon>
<span>DRIVING</span>
</paper-tab>
<paper-tab label="WALKING">
<iron-icon icon="maps:directions-walk"></iron-icon>
<span>WALKING</span>
</paper-tab>
<paper-tab label="BICYCLING">
<iron-icon icon="maps:directions-bike"></iron-icon>
<span>BICYCLING</span>
</paper-tab>
<paper-tab label="TRANSIT">
<iron-icon icon="maps:directions-transit"></iron-icon>
<span>TRANSIT</span>
</paper-tab>
</paper-tabs>
</paper-card>
</template>
<script src="main.js"></script>
</body>
</html>