2022-03-04 23:31:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Controls.Universal 2.12
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import "../popups"
|
2022-03-07 22:59:38 +00:00
|
|
|
import "../stores"
|
2022-03-04 23:31:31 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
Page {
|
|
|
|
id: page
|
|
|
|
|
|
|
|
signal btnNewUserClicked()
|
|
|
|
signal btnExistingUserClicked()
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
color: Style.current.background
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
2022-03-07 22:59:38 +00:00
|
|
|
if (OnboardingStore.showBeforeGetStartedPopup) {
|
|
|
|
beforeGetStartedModal.open();
|
2022-03-04 23:31:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
BeforeGetStartedModal {
|
|
|
|
id: beforeGetStartedModal
|
2022-03-07 22:59:38 +00:00
|
|
|
onClosed: {
|
|
|
|
OnboardingStore.showBeforeGetStartedPopup = false;
|
|
|
|
}
|
2022-03-04 23:31:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: container
|
|
|
|
width: 425
|
2022-05-25 15:24:01 +00:00
|
|
|
height: 513
|
2022-06-20 09:50:57 +00:00
|
|
|
anchors.centerIn: parent
|
2022-03-04 23:31:31 +00:00
|
|
|
|
|
|
|
Image {
|
|
|
|
id: keysImg
|
2022-05-25 15:24:01 +00:00
|
|
|
width: 256
|
|
|
|
height: 256
|
2022-03-04 23:31:31 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2022-03-07 22:59:38 +00:00
|
|
|
source: Style.png("onboarding/welcome")
|
2022-03-04 23:31:31 +00:00
|
|
|
mipmap: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: txtTitle1
|
|
|
|
//% "Get your keys"
|
|
|
|
text: qsTr("Welcome to Status")
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
font.bold: true
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.top: keysImg.bottom
|
|
|
|
font.letterSpacing: -0.2
|
|
|
|
font.pixelSize: 22
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: txtDesc1
|
|
|
|
color: Style.current.secondaryText
|
2022-05-25 15:24:01 +00:00
|
|
|
text: qsTr("Your fully decentralized gateway to Ethereum and Web3. Crypto wallet, privacy first group chat, and dApp browser.")
|
2022-03-04 23:31:31 +00:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: txtTitle1.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
id: btnNewUser
|
|
|
|
anchors.top: txtDesc1.bottom
|
|
|
|
anchors.topMargin: 40
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
text: qsTr("I am new to Status")
|
|
|
|
onClicked: {
|
|
|
|
page.btnNewUserClicked();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-27 07:58:09 +00:00
|
|
|
StatusFlatButton {
|
2022-03-04 23:31:31 +00:00
|
|
|
id: btnExistingUser
|
|
|
|
text: qsTr("I already use Status")
|
|
|
|
anchors.top: btnNewUser.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
onClicked: {
|
|
|
|
page.btnExistingUserClicked();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|