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

Commit 3348869

Browse files
committed
feat(collection&profile): donationButton under sharing
1 parent 428c00d commit 3348869

File tree

3 files changed

+24
-43
lines changed

3 files changed

+24
-43
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@
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"

src/views/Profile.vue

Lines changed: 17 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,12 @@ 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'),
130+
// OnChainProperty: () => import('@/views/OnChainProperty.vue'),
135131
PaginatedCardList: () =>
136132
import('@/components/rmrk/Gallery/PaginatedCardList.vue'),
137133
DonationButton: () => import('@/components/transfer/DonationButton.vue'),
138134
Avatar: () => import('@/components/shared/Avatar.vue'),
135+
ProfileLink: () => import('@/components/rmrk/Profile/ProfileLink.vue'),
139136
140137
}
141138
@@ -377,24 +374,4 @@ export default class Profile extends Vue {
377374
flex-basis: auto;
378375
}
379376
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-
}
400377
</style>

0 commit comments

Comments
 (0)