feat(bskyweb): minimal storeCard layout - drop primary handle field
This commit is contained in:
@@ -80,11 +80,13 @@ func BuildPassJSON(did, handle, theme, teamID string) ([]byte, error) {
|
||||
LabelColor: "rgb(255, 255, 255)",
|
||||
BackgroundColor: ThemeBackgroundRGB(theme),
|
||||
StoreCard: storeCardFields{
|
||||
PrimaryFields: []passField{{Key: "handle", Label: "Handle", Value: atHandle}},
|
||||
SecondaryFields: []passField{{Key: "url", Label: "Profile", Value: "bsky.app/profile/" + handle}},
|
||||
PrimaryFields: []passField{},
|
||||
SecondaryFields: []passField{
|
||||
{Key: "handle", Label: "", Value: atHandle},
|
||||
},
|
||||
BackFields: []passField{
|
||||
{Key: "about", Label: "About", Value: "Scan the QR to open this profile in any browser, or share the URL below."},
|
||||
{Key: "url2", Label: "Profile URL", Value: profileURL},
|
||||
{Key: "about", Label: "About", Value: "Scan the QR code to view this Bluesky profile."},
|
||||
{Key: "url", Label: "Profile URL", Value: profileURL},
|
||||
},
|
||||
},
|
||||
Barcodes: []barcode{{
|
||||
|
||||
+6
-12
@@ -10,28 +10,22 @@
|
||||
"labelColor": "rgb(255, 255, 255)",
|
||||
"backgroundColor": "rgb(255, 109, 190)",
|
||||
"storeCard": {
|
||||
"primaryFields": [
|
||||
{
|
||||
"key": "handle",
|
||||
"label": "Handle",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"primaryFields": [],
|
||||
"secondaryFields": [
|
||||
{
|
||||
"key": "url",
|
||||
"label": "Profile",
|
||||
"value": "bsky.app/profile/alice.bsky.social"
|
||||
"key": "handle",
|
||||
"label": "",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"backFields": [
|
||||
{
|
||||
"key": "about",
|
||||
"label": "About",
|
||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
||||
"value": "Scan the QR code to view this Bluesky profile."
|
||||
},
|
||||
{
|
||||
"key": "url2",
|
||||
"key": "url",
|
||||
"label": "Profile URL",
|
||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||
}
|
||||
|
||||
+6
-12
@@ -10,28 +10,22 @@
|
||||
"labelColor": "rgb(255, 255, 255)",
|
||||
"backgroundColor": "rgb(117, 175, 255)",
|
||||
"storeCard": {
|
||||
"primaryFields": [
|
||||
{
|
||||
"key": "handle",
|
||||
"label": "Handle",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"primaryFields": [],
|
||||
"secondaryFields": [
|
||||
{
|
||||
"key": "url",
|
||||
"label": "Profile",
|
||||
"value": "bsky.app/profile/alice.bsky.social"
|
||||
"key": "handle",
|
||||
"label": "",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"backFields": [
|
||||
{
|
||||
"key": "about",
|
||||
"label": "About",
|
||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
||||
"value": "Scan the QR code to view this Bluesky profile."
|
||||
},
|
||||
{
|
||||
"key": "url2",
|
||||
"key": "url",
|
||||
"label": "Profile URL",
|
||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||
}
|
||||
|
||||
+6
-12
@@ -10,28 +10,22 @@
|
||||
"labelColor": "rgb(255, 255, 255)",
|
||||
"backgroundColor": "rgb(177, 90, 162)",
|
||||
"storeCard": {
|
||||
"primaryFields": [
|
||||
{
|
||||
"key": "handle",
|
||||
"label": "Handle",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"primaryFields": [],
|
||||
"secondaryFields": [
|
||||
{
|
||||
"key": "url",
|
||||
"label": "Profile",
|
||||
"value": "bsky.app/profile/alice.bsky.social"
|
||||
"key": "handle",
|
||||
"label": "",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"backFields": [
|
||||
{
|
||||
"key": "about",
|
||||
"label": "About",
|
||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
||||
"value": "Scan the QR code to view this Bluesky profile."
|
||||
},
|
||||
{
|
||||
"key": "url2",
|
||||
"key": "url",
|
||||
"label": "Profile URL",
|
||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||
}
|
||||
|
||||
+6
-12
@@ -10,28 +10,22 @@
|
||||
"labelColor": "rgb(255, 255, 255)",
|
||||
"backgroundColor": "rgb(0, 21, 51)",
|
||||
"storeCard": {
|
||||
"primaryFields": [
|
||||
{
|
||||
"key": "handle",
|
||||
"label": "Handle",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"primaryFields": [],
|
||||
"secondaryFields": [
|
||||
{
|
||||
"key": "url",
|
||||
"label": "Profile",
|
||||
"value": "bsky.app/profile/alice.bsky.social"
|
||||
"key": "handle",
|
||||
"label": "",
|
||||
"value": "@alice.bsky.social"
|
||||
}
|
||||
],
|
||||
"backFields": [
|
||||
{
|
||||
"key": "about",
|
||||
"label": "About",
|
||||
"value": "Scan the QR to open this profile in any browser, or share the URL below."
|
||||
"value": "Scan the QR code to view this Bluesky profile."
|
||||
},
|
||||
{
|
||||
"key": "url2",
|
||||
"key": "url",
|
||||
"label": "Profile URL",
|
||||
"value": "https://bsky.app/profile/alice.bsky.social"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user