Added About page.
[openvpnui.git] / qml / pages / AboutPage.qml
1 /*
2   Copyright (C) 2014 David Llewellyn-Jones
3   Contact: David Llewellyn-Jones <david@flypig.co.uk>
4   All rights reserved.
5
6   You may use this file under the terms of BSD license as follows:
7
8   Redistribution and use in source and binary forms, with or without
9   modification, are permitted provided that the following conditions are met:
10     * Redistributions of source code must retain the above copyright
11       notice, this list of conditions and the following disclaimer.
12     * Redistributions in binary form must reproduce the above copyright
13       notice, this list of conditions and the following disclaimer in the
14       documentation and/or other materials provided with the distribution.
15     * Neither the name of the Jolla Ltd nor the
16       names of its contributors may be used to endorse or promote products
17       derived from this software without specific prior written permission.
18
19   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR
23   ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30   Built using the standard template from Jolla
31   Copyright (C) 2013 Jolla Ltd.
32   Contact: Thomas Perl <thomas.perl@jollamobile.com>
33 */
34
35 import QtQuick 2.0
36 import Sailfish.Silica 1.0
37
38 Page {
39     id: aboutPage
40
41     SilicaFlickable {
42         width: parent.width
43         height: parent.height
44         interactive: true
45
46         anchors.fill: parent
47         contentHeight: aboutColumn.height + Theme.paddingLarge
48
49         VerticalScrollDecorator {}
50
51         Column {
52             id: aboutColumn
53             width: parent.width
54             spacing: Theme.paddingLarge
55
56             PageHeader {
57                 title: "About OpenVPN Rig"
58             }
59
60             Image {
61                 width: 452
62                 height: 86
63                 anchors.topMargin: Theme.paddingLarge
64                 anchors.horizontalCenter: parent.horizontalCenter
65                 source  : "../images/ovpn-title.png"
66             }
67
68             Label {
69                 text: "OpenVPN client configuration"
70                 wrapMode: Text.WordWrap
71                 font.pixelSize: Theme.fontSizeSmall
72                 anchors {
73                     leftMargin: Theme.paddingLarge
74                     rightMargin: Theme.paddingLarge
75                     left: parent.left
76                     right: parent.right
77                 }
78             }
79             Label {
80                 text: "Version:\t0.5.0"
81                 wrapMode: Text.WordWrap
82                 font.pixelSize: Theme.fontSizeSmall
83                 horizontalAlignment: Text.AlignLeft
84                 anchors {
85                     leftMargin: Theme.paddingLarge
86                     rightMargin: Theme.paddingLarge
87                     left: parent.left
88                     right: parent.right
89                 }
90             }
91             Label {
92                 text: "Author:\tDavid Llewellyn-Jones"
93                 wrapMode: Text.WordWrap
94                 font.pixelSize: Theme.fontSizeSmall
95                 horizontalAlignment: Text.AlignLeft
96                 anchors {
97                     leftMargin: Theme.paddingLarge
98                     rightMargin: Theme.paddingLarge
99                     left: parent.left
100                     right: parent.right
101                 }
102             }
103             Label {
104                 text: "Licence:\tBSD"
105                 wrapMode: Text.WordWrap
106                 font.pixelSize: Theme.fontSizeSmall
107                 horizontalAlignment: Text.AlignLeft
108                 anchors {
109                     leftMargin: Theme.paddingLarge
110                     rightMargin: Theme.paddingLarge
111                     left: parent.left
112                     right: parent.right
113                 }
114             }
115             Label {
116                 text: "Credits"
117                 color: Theme.highlightColor
118                 font.family: Theme.fontFamilyHeading
119                 horizontalAlignment: Text.AlignRight
120                 anchors {
121                     margins: Theme.paddingLarge
122                     left: parent.left
123                     right: parent.right
124                 }
125             }
126
127             Label {
128                 text: "File Browser code by Kari with public domain licence"
129                 wrapMode: Text.WordWrap
130                 font.pixelSize: Theme.fontSizeSmall
131                 anchors {
132                     leftMargin: Theme.paddingLarge
133                     rightMargin: Theme.paddingLarge
134                     left: parent.left
135                     right: parent.right
136                 }
137             }
138
139             Label {
140                 text: "OpenVPN and the OpenVPN logo are trademarks of OpenVPN Technologies, Inc."
141                 wrapMode: Text.WordWrap
142                 font.pixelSize: Theme.fontSizeSmall
143                 anchors {
144                     leftMargin: Theme.paddingLarge
145                     rightMargin: Theme.paddingLarge
146                     left: parent.left
147                     right: parent.right
148                 }
149             }
150
151             Label {
152                 text: "Links"
153                 color: Theme.highlightColor
154                 font.family: Theme.fontFamilyHeading
155                 horizontalAlignment: Text.AlignRight
156                 anchors {
157                     margins: Theme.paddingLarge
158                     left: parent.left
159                     right: parent.right
160                 }
161             }
162
163             Row {
164                 spacing: Theme.paddingLarge
165                 anchors.horizontalCenter: parent.horizontalCenter
166                 Button {
167                     id: connect
168                     text: "Website"
169                     enabled: true
170                     onClicked: Qt.openUrlExternally("http://www.flypig.co.uk/?to=openvpnrig")
171                 }
172                 Button {
173                     id : disconnect
174                     text: "Email"
175                     enabled: true
176                     onClicked: Qt.openUrlExternally("mailto:david@flypig.co.uk")
177                 }
178             }
179         }
180     }
181
182 }