forked from Jigsaw-Code/outline-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about-view.html
128 lines (110 loc) · 3.11 KB
/
about-view.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
<!--
Copyright 2018 The Outline Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="import" href="../bower_components/polymer/polymer-element.html">
<dom-module id="about-view">
<template>
<style>
:host {
background: #fff;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: center;
width: 100%;
height: 100vh;
}
#main {
flex: 1;
height: 100%;
padding: 32px 24px 0 24px;
}
#footer {
flex: 1;
margin: 48px 0 36px 0;
text-align: left;
}
#logo {
width: 96px;
}
#version {
color: rgba(0,0,0,0.54);
font-size: 12px;
margin: 8px auto;
}
#description {
color: #263238;
text-align: left;
font-size: 16px;
line-height: 22px;
margin: 32px auto;
}
#jigsaw-logo {
width: 96px;
}
@media (min-width: 600px) {
#description {
width: 309px;
}
#footer {
text-align: center;
margin-top: 48px;
}
#jigsaw-logo {
width: 104px;
}
}
@media (max-height: 550px) {
#main {
padding: 18px 24px 0 24px;
}
#logo {
width: 76px;
}
#description {
font-size: 14px;
margin: 18px auto;
}
#footer {
margin: 36px 0 24px 0;
}
}
a {
color: var(--medium-green);
text-decoration: none;
}
</style>
<div id="main">
<img src$="[[rootPath]]assets/brand-logo.png" alt="logo" id="logo">
<div id="version">[[localize('version', 'appVersion', version)]]</div>
<div id="description" inner-h-t-m-l="[[localize('about-outline', 'jigsawUrl', 'https://jigsaw.google.com', 'shadowsocksUrl', 'https://shadowsocks.org', 'gitHubUrl', 'https://github.com/jigsaw-Code/?q=outline', 'redditUrl', 'https://www.reddit.com/r/outlinevpn', 'mediumUrl', 'https://medium.com/jigsaw')]]"></div>
<div id="footer">
<a href="https://jigsaw.google.com">
<img id="jigsaw-logo" src$="[[rootPath]]assets/jigsaw-logo.svg">
</a>
</div>
</div>
</template>
<script>
'use strict';
Polymer({
is: 'about-view',
properties: {
// Need to declare localize function passed in from parent, or else
// localize() calls within the template won't be updated.
localize: Function,
rootPath: String,
version: String
}
});
</script>
</dom-module>