add about page
This commit is contained in:
parent
db71889cc2
commit
4cf47fd13f
6 changed files with 150 additions and 9 deletions
BIN
client/images/about.png
Normal file
BIN
client/images/about.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 432 KiB |
3
client/images/controls/warning-info.svg
Normal file
3
client/images/controls/warning-info.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M10 9.08333V13.6667M10 18.25C5.44365 18.25 1.75 14.5563 1.75 10C1.75 5.44365 5.44365 1.75 10 1.75C14.5563 1.75 18.25 5.44365 18.25 10C18.25 14.5563 14.5563 18.25 10 18.25ZM10.0457 6.33333V6.425L9.95435 6.42518V6.33333H10.0457Z" stroke="#007AFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 423 B |
|
|
@ -1,6 +1,7 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>fonts/pt-root-ui_vf.ttf</file>
|
||||
<file>images/about.png</file>
|
||||
<file>images/amneziaBigLogo.png</file>
|
||||
<file>images/AmneziaVPN.png</file>
|
||||
<file>images/controls/alert-circle.svg</file>
|
||||
|
|
@ -55,6 +56,7 @@
|
|||
<file>images/controls/telegram.svg</file>
|
||||
<file>images/controls/text-cursor.svg</file>
|
||||
<file>images/controls/trash.svg</file>
|
||||
<file>images/controls/warning-info.svg</file>
|
||||
<file>images/controls/x-circle.svg</file>
|
||||
<file>images/tray/active.png</file>
|
||||
<file>images/tray/default.png</file>
|
||||
|
|
@ -234,6 +236,7 @@
|
|||
<file>ui/qml/DefaultVpn/Controls/DropDownType.qml</file>
|
||||
<file>ui/qml/DefaultVpn/main.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Pages/PageHome.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Pages/PageAbout.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Controls/TextTypes/MediumTextType.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Config/DeviceInfo.qml</file>
|
||||
<file>ui/qml/DefaultVpn/Config/qmldir</file>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ namespace PageLoader
|
|||
PageHome,
|
||||
PageShare,
|
||||
PageDeinstalling,
|
||||
PageAbout,
|
||||
|
||||
PageSettingsServersList,
|
||||
PageSettings,
|
||||
|
|
|
|||
124
client/ui/qml/DefaultVpn/Pages/PageAbout.qml
Normal file
124
client/ui/qml/DefaultVpn/Pages/PageAbout.qml
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import PageEnum 1.0
|
||||
import Config 1.0
|
||||
|
||||
import "../Components"
|
||||
import "../Controls"
|
||||
import "../Controls/TextTypes"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 8
|
||||
anchors.bottomMargin: 36
|
||||
anchors.leftMargin: 8
|
||||
anchors.rightMargin: 8
|
||||
|
||||
spacing: 0
|
||||
|
||||
RowLayout {
|
||||
|
||||
WhiteButtonNoBorder {
|
||||
id: backButton
|
||||
imageSource: "qrc:/images/controls/arrow-left.svg"
|
||||
|
||||
onClicked: PageController.closePage()
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
id: image
|
||||
source: "qrc:/images/about.png"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.topMargin: 8
|
||||
Layout.preferredWidth: 230
|
||||
Layout.preferredHeight: 230
|
||||
}
|
||||
|
||||
XSmallTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 24
|
||||
text: qsTr("Support group in Telegram")
|
||||
}
|
||||
|
||||
MediumTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 8
|
||||
text: "@DefaultVPNSupport"
|
||||
color: Style.color.accent1
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: Qt.openUrlExternally("https://t.me/DefaultVPNSupport")
|
||||
}
|
||||
}
|
||||
|
||||
XSmallTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 24
|
||||
text: qsTr("E-mail for technical support")
|
||||
}
|
||||
|
||||
MediumTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 8
|
||||
text: "support@dfvpn.com"
|
||||
color: Style.color.accent1
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: Qt.openUrlExternally("mailto:support@dfvpn.com")
|
||||
}
|
||||
}
|
||||
|
||||
XSmallTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 24
|
||||
text: qsTr("Site")
|
||||
}
|
||||
|
||||
MediumTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 8
|
||||
text: "dfvpn.com"
|
||||
color: Style.color.accent1
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: Qt.openUrlExternally("https://dfvpn.com/")
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
MediumTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: qsTr("Privacy policy")
|
||||
color: Style.color.accent1
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: Qt.openUrlExternally("https://dfvpn.com/policy")
|
||||
}
|
||||
}
|
||||
|
||||
XSmallTextType {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: 16
|
||||
text: qsTr("v. %1").arg(SettingsController.getAppVersion())
|
||||
color: Style.color.gray7
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21,18 +21,28 @@ Page {
|
|||
|
||||
spacing: 0
|
||||
|
||||
Text {
|
||||
lineHeight: 68
|
||||
lineHeightMode: Text.FixedHeight
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
color: Style.color.gray2
|
||||
font.pixelSize: 56
|
||||
font.weight: 700
|
||||
font.family: Style.font
|
||||
Text {
|
||||
Layout.fillWidth: true
|
||||
lineHeight: 68
|
||||
lineHeightMode: Text.FixedHeight
|
||||
|
||||
horizontalAlignment: Qt.AlignLeft
|
||||
color: Style.color.gray2
|
||||
font.pixelSize: 56
|
||||
font.weight: 700
|
||||
font.family: Style.font
|
||||
|
||||
text: ConnectionController.isConnected ? qsTr("Online") : qsTr("Offline")
|
||||
horizontalAlignment: Qt.AlignLeft
|
||||
|
||||
text: ConnectionController.isConnected ? qsTr("Online") : qsTr("Offline")
|
||||
}
|
||||
|
||||
WhiteButtonNoBorder {
|
||||
imageSource: "qrc:/images/controls/warning-info.svg"
|
||||
onClicked: PageController.goToPage(PageEnum.PageAbout)
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue