2022-05-31 09:44:26 +00:00
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
|
|
|
import "../demoapp/data" 1.0
|
|
|
|
|
|
|
|
GridLayout {
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: d
|
|
|
|
|
|
|
|
function navigateToCommunity(communityID) {
|
|
|
|
console.log("Clicked community: " + communityID)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
|
|
columns: 2
|
2022-06-01 15:24:44 +00:00
|
|
|
columnSpacing: 28
|
|
|
|
rowSpacing: 28
|
2022-05-31 09:44:26 +00:00
|
|
|
|
|
|
|
Repeater {
|
|
|
|
model: Models.curatedCommunitiesModel
|
|
|
|
delegate: StatusCommunityCard {
|
2023-01-11 14:10:53 +00:00
|
|
|
locale: Qt.locale("en")
|
2022-05-31 09:44:26 +00:00
|
|
|
communityId: model.communityId
|
|
|
|
loaded: model.available
|
2022-06-01 15:24:44 +00:00
|
|
|
logo: model.logo
|
|
|
|
banner: model.banner
|
2022-05-31 09:44:26 +00:00
|
|
|
name: model.name
|
|
|
|
description: model.description
|
|
|
|
members: model.members
|
2022-06-01 15:24:44 +00:00
|
|
|
activeUsers: model.activeUsers
|
2022-05-31 09:44:26 +00:00
|
|
|
popularity: model.popularity
|
2022-06-01 15:24:44 +00:00
|
|
|
isPrivate: model.isPrivate
|
|
|
|
tokenLogo: model.tokenLogo
|
2022-05-31 09:44:26 +00:00
|
|
|
categories: ListModel {
|
2022-06-01 15:24:44 +00:00
|
|
|
ListElement { name: "Crypto"; emoji: "🔗"}
|
|
|
|
ListElement { name: "Privacy"; emoji: "👻"}
|
|
|
|
ListElement { name: "Social"; emoji: "☕"}
|
2022-05-31 09:44:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
onClicked: { d.navigateToCommunity(communityId) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|