Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit cf996ba

Browse files
authored
Merge pull request #930 from roiLeo/feature/collection/gift
feat(collection&profile): donationButton under sharing
2 parents 729957b + ac80f1b commit cf996ba

File tree

3 files changed

+31
-51
lines changed

3 files changed

+31
-51
lines changed

src/components/rmrk/Gallery/CollectionItem.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="pack-item-wrapper container">
2+
<div class="pack-item-wrapper container is-fluid">
33
<div class="columns is-centered">
44
<div class="column is-half has-text-centered">
55
<div class="container image is-128x128 mb-2">
@@ -30,14 +30,16 @@
3030
<div class="label">
3131
{{ $t('owner') }}
3232
</div>
33-
<div class="subtitle">
34-
<ProfileLink :address="owner" :inline="true" />
33+
<div class="subtitle is-size-6">
34+
<ProfileLink :address="owner" :inline="true" :showTwitter="true" />
3535
</div>
3636
</div>
3737
<div class="column is-2">
3838
<Sharing v-if="sharingVisible"
39+
class="mb-2"
3940
label="Check this awesome Collection on %23KusamaNetwork %23KodaDot"
4041
:iframe="iframeSettings" />
42+
<DonationButton :address="issuer" style="width: 100%;" />
4143
</div>
4244
</div>
4345

@@ -76,6 +78,7 @@ const components = {
7678
ProfileLink: () => import('@/components/rmrk/Profile/ProfileLink.vue'),
7779
VueMarkdown: () => import('vue-markdown-render'),
7880
Search: () => import('./Search/SearchBarCollection.vue'),
81+
DonationButton: () => import('@/components/transfer/DonationButton.vue'),
7982
}
8083
@Component<CollectionItem>({
8184
metaInfo() {

src/locales/en.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,13 @@
247247
"accept": "I confirm that I hold full copyright ownership of the submitted digital asset (or have sufficient permission by the owner to use the asset)"
248248
},
249249
"profile": {
250+
"user": "User",
250251
"created": "Created",
251252
"collected": "Collected",
252253
"sold": "Sold"
253254
},
254255
"spotlight": {
255-
"filter_accounts": "Accounts With Identity",
256+
"filter_accounts": "Accounts With Identity",
256257
"id": "Creator",
257258
"sold": "Sold",
258259
"unique": "Unique",
@@ -264,13 +265,13 @@
264265
"empty": "Empty"
265266
},
266267
"series": {
267-
"title": "Top Collection",
268-
"subtitle": "The top NFTs on RMRK, ranked by volume, floor price and other statistics.",
269-
"assets": "Assets",
270-
"collected": "Collected",
271-
"floorprice": "Floor price",
272-
"owners": "Owners",
273-
"volume": "Volume"
268+
"title": "Top Collection",
269+
"subtitle": "The top NFTs on RMRK, ranked by volume, floor price and other statistics.",
270+
"assets": "Assets",
271+
"collected": "Collected",
272+
"floorprice": "Floor price",
273+
"owners": "Owners",
274+
"volume": "Volume"
274275
},
275276
"tutorial": {
276277
"create": "1. Create polkadot js account",

src/views/Profile.vue

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="profile-wrapper container">
2+
<div class="profile-wrapper container is-fluid">
33
<div class="columns is-centered">
44
<div class="column is-half has-text-centered">
55
<div class="container image is-64x64 mb-2">
@@ -18,26 +18,22 @@
1818
</div>
1919

2020
<div class="columns">
21-
<div class="column has-text-centered-mobile">
22-
<DonationButton :address="id" />
21+
<div class="column">
22+
<div class="label">
23+
{{ $t('profile.user') }}
24+
</div>
25+
<div class="subtitle is-size-6">
26+
<ProfileLink :address="id" :inline="true" :showTwitter="true"/>
27+
</div>
2328
</div>
24-
<div class="column has-text-centered">
25-
<OnChainProperty
26-
v-bind:email="email"
27-
v-bind:twitter="twitter"
28-
v-bind:web="web"
29-
v-bind:legal="legal"
30-
v-bind:riot="riot"
29+
<div class="column is-2">
30+
<Sharing
31+
class="mb-2"
32+
v-if="!sharingVisible"
33+
label="Check this awesome Profile on %23KusamaNetwork %23KodaDot"
34+
:iframe="iframeSettings"
3135
/>
32-
</div>
33-
<div class="column has-text-right-tablet">
34-
<div class="share-mobile">
35-
<Sharing
36-
v-if="!sharingVisible"
37-
label="Check this awesome Profile on %23KusamaNetwork %23KodaDot"
38-
:iframe="iframeSettings"
39-
/>
40-
</div>
36+
<DonationButton :address="id" style="width: 100%;" />
4137
</div>
4238
</div>
4339

@@ -131,11 +127,11 @@ const components = {
131127
Sharing: () => import('@/components/rmrk/Gallery/Item/Sharing.vue'),
132128
Identity: () => import('@/components/shared/format/Identity.vue'),
133129
Pagination: () => import('@/components/rmrk/Gallery/Pagination.vue'),
134-
OnChainProperty: () => import('@/views/OnChainProperty.vue'),
135130
PaginatedCardList: () =>
136131
import('@/components/rmrk/Gallery/PaginatedCardList.vue'),
137132
DonationButton: () => import('@/components/transfer/DonationButton.vue'),
138133
Avatar: () => import('@/components/shared/Avatar.vue'),
134+
ProfileLink: () => import('@/components/rmrk/Profile/ProfileLink.vue'),
139135
140136
}
141137
@@ -377,24 +373,4 @@ export default class Profile extends Vue {
377373
flex-basis: auto;
378374
}
379375
380-
.share-mobile {
381-
width: 50%;
382-
margin-left: auto;
383-
}
384-
385-
@media only screen and (max-width: 768px) {
386-
.column-mobile {
387-
align-items: center;
388-
display: flex;
389-
justify-content: center;
390-
}
391-
392-
.container-mobile {
393-
flex-direction: column;
394-
}
395-
396-
.share-mobile {
397-
width: 100%;
398-
}
399-
}
400376
</style>

0 commit comments

Comments
 (0)