-
Notifications
You must be signed in to change notification settings - Fork 311
/
x-app.js
174 lines (145 loc) · 5.08 KB
/
x-app.js
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
173
174
/**
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/iron-flex-layout/iron-flex-layout.js';
import '@polymer/iron-icons/iron-icons.js';
import '@polymer/paper-icon-button/paper-icon-button.js';
import '@polymer/app-layout/app-scroll-effects/app-scroll-effects.js';
import '@polymer/app-layout/app-header/app-header.js';
import '@polymer/app-layout/app-header-layout/app-header-layout.js';
import '@polymer/app-layout/app-toolbar/app-toolbar.js';
import '@polymer/app-layout/demo/sample-content.js';
import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';
Polymer({
_template: html`
<style>
a {
text-decoration: none;
font-size: inherit;
color: inherit;
}
.toolbar {
@apply --layout-horizontal;
@apply --layout-end-justified;
background-color: rgba(255, 255, 255, 0.95);
}
.tabs {
height: 100%;
@apply --layout-horizontal;
}
.tabs > a {
@apply --layout-vertical;
@apply --layout-center-center;
margin: 12px 16px 12px;
border-bottom: 1px solid #222;
}
header {
@apply --layout-vertical;
@apply --layout-center-center;
height: calc(100vh - 64px);
padding: 0 16px;
background-image: url('//app-layout-assets.appspot.com/assets/landing-page/glass_explorer_food_2.png');
background-repeat: no-repeat;
background-size: cover;
color: white;
text-align: center;
}
header > h2 {
font-size: 56px;
font-weight: 300;
margin: 0;
}
header > p {
font-size: 32px;
}
section {
padding: 88px 16px;
}
.container {
@apply --layout-horizontal;
max-width: 800px;
margin: 0 auto;
}
.container > * {
@apply --layout-flex;
}
.container img {
max-width: 100%;
max-height: 100%;
}
.container h3 {
font-size: 32px;
font-weight: 300;
margin: 24px 0;
}
.container p {
line-height: 1.5;
}
@media (max-width: 600px) {
.container {
@apply --layout-vertical;
}
}
</style>
<app-header-layout>
<app-header reveals effects="waterfall" slot="header">
<app-toolbar class="toolbar">
<div class="tabs">
<a href="#about">About</a>
<a href="#services">Services</a>
<a href="#contact">Contact</a>
</div>
</app-toolbar>
</app-header>
<header>
<h2>Welcome To Our Landing Page</h2>
<p>Made with App Layout Elements</p>
</header>
<section id="about">
<div class="container">
<div>
<img src="//app-layout-assets.appspot.com/assets/landing-page/berries.jpg">
</div>
<div>
<h3>About</h3>
<p>Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea. Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.</p>
<p>Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no. Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no.</p>
</div>
</div>
</section>
<section id="services">
<div class="container">
<div>
<img src="//app-layout-assets.appspot.com/assets/landing-page/tomato.jpg">
</div>
<div>
<h3>Services</h3>
<p>Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea. Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.</p>
<p>Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no. Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no.</p>
</div>
</div>
</section>
<section id="contact">
<div class="container">
<div>
<img src="//app-layout-assets.appspot.com/assets/landing-page/red-onion.jpg">
</div>
<div>
<h3>Contact</h3>
<p>Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea. Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.</p>
<p>Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no. Convenire definiebas scriptorem eu cum. Sit dolor dicunt consectetuer no.</p>
</div>
</div>
</section>
</app-header-layout>
`,
is: 'x-app'
});