113 lines
2.8 KiB
QML
113 lines
2.8 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import PageEnum 1.0
|
|
|
|
import "./"
|
|
import "../Controls2"
|
|
import "../Config"
|
|
import "../Controls2/TextTypes"
|
|
import "../Components"
|
|
|
|
PageType {
|
|
id: root
|
|
|
|
Connections {
|
|
target: PageController
|
|
|
|
function onShowErrorMessage(errorMessage) {
|
|
popupErrorMessage.popupErrorMessageText = errorMessage
|
|
popupErrorMessage.open()
|
|
}
|
|
|
|
function onGoToPageViewConfig() {
|
|
goToPage(PageEnum.PageSetupWizardViewConfig)
|
|
}
|
|
}
|
|
|
|
FlickableType {
|
|
id: fl
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
contentHeight: content.height
|
|
|
|
ColumnLayout {
|
|
id: content
|
|
|
|
anchors.top: parent.top
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
spacing: 0
|
|
|
|
Image {
|
|
id: image
|
|
source: "qrc:/images/amneziaBigLogo.png"
|
|
|
|
Layout.alignment: Qt.AlignCenter
|
|
Layout.topMargin: 32
|
|
Layout.leftMargin: 8
|
|
Layout.rightMargin: 8
|
|
Layout.preferredWidth: 344
|
|
Layout.preferredHeight: 279
|
|
}
|
|
|
|
ParagraphTextType {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 50
|
|
Layout.leftMargin: 16
|
|
Layout.rightMargin: 16
|
|
|
|
text: qsTr("A free service to create a personal VPN on your server. We help you access blocked content without exposing your privacy even to VPN providers.")
|
|
}
|
|
|
|
BasicButtonType {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 32
|
|
Layout.leftMargin: 16
|
|
Layout.rightMargin: 16
|
|
|
|
text: qsTr("I have the data to connect")
|
|
|
|
onClicked: {
|
|
connectionTypeSelection.visible = true
|
|
}
|
|
}
|
|
|
|
BasicButtonType {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 8
|
|
Layout.leftMargin: 16
|
|
Layout.rightMargin: 16
|
|
|
|
defaultColor: "transparent"
|
|
hoveredColor: Qt.rgba(1, 1, 1, 0.08)
|
|
pressedColor: Qt.rgba(1, 1, 1, 0.12)
|
|
disabledColor: "#878B91"
|
|
textColor: "#D7D8DB"
|
|
borderWidth: 1
|
|
|
|
text: qsTr("I have nothing")
|
|
|
|
onClicked: {
|
|
}
|
|
}
|
|
}
|
|
|
|
ConnectionTypeSelectionDrawer {
|
|
id: connectionTypeSelection
|
|
}
|
|
}
|
|
|
|
Item {
|
|
anchors.right: parent.right
|
|
anchors.left: parent.left
|
|
anchors.bottom: parent.bottom
|
|
|
|
implicitHeight: popupErrorMessage.height
|
|
|
|
PopupType {
|
|
id: popupErrorMessage
|
|
}
|
|
}
|
|
}
|