PagePromotionSpot.qml 1.32 KB
Newer Older
1 2
import QtQuick 2.9
import QtQuick.Controls 2.0
3
import QtMultimedia 5.8
4
import App 1.0
5 6 7 8 9 10

Page {
    id: root
    signal nextPage

    background: Item {
11 12
        anchors.horizontalCenter: parent.horizontalCenter
        y:2
13 14 15 16 17 18
        width: 760
        height: 400
        Rectangle {
            anchors.fill: parent
            color: "#B8BBC5"
            opacity: 0.5
19 20 21 22 23 24 25 26 27 28
            Video
            {
                z: 10;
                anchors.fill: parent
                source: "Assets/Promo/Promo01.mp4"
                autoLoad: true
                autoPlay: true
                fillMode: VideoOutput.PreserveAspectFit
                loops: MediaPlayer.Infinite
            }
29 30 31 32 33 34 35 36 37 38 39 40
        }
        Button {
            anchors.top: parent.top
            anchors.horizontalCenter: parent.horizontalCenter

            width: 320
            height: 45
            flat: true

            contentItem: Label {
                color: "#00DB52"
                text: qsTr("TAP TO START")
41
                font.pixelSize: Variables.fontTapStart
42 43 44 45 46 47 48 49 50 51 52 53
                verticalAlignment: Text.AlignVCenter
                horizontalAlignment: Text.AlignHCenter
            }

            background: Rectangle {
                anchors.fill: parent
                color: "#0E1039"
            }
            onReleased: root.nextPage()
        }
    }
}