Skip to content

Commit

Permalink
#1887 Update the GroupJoinModal.vue to the latest (#1889)
Browse files Browse the repository at this point in the history
* update the GroupJoinModal.vue to the latest

* regenerate translation json
  • Loading branch information
SebinSong authored Mar 18, 2024
1 parent 20d32d2 commit 7aba1d6
Show file tree
Hide file tree
Showing 5 changed files with 537 additions and 246 deletions.
18 changes: 5 additions & 13 deletions frontend/views/containers/group-settings/GroupJoinModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,15 @@ modal-base-template(:fullscreen='true' :a11yTitle='L("How to join a group")')
svg-invitation

i18n.is-title-4(tag='h4') 1. Get an invitation
i18n(tag='p') For now, the only way to join a group is to get an invitation. Don’t know anyone using Group Income?
i18n(tag='p') Click on the individual link you received from an existing group. Don't have an invite?
i18n(tag='button' class='link' @click='showCreateModal') Create your own group

.slide(v-observer:1='updateIndicator' :id='config[1]')
.slide-img
svg-proposal

i18n.is-title-4(tag='h4') 2. Wait for the group vote
i18n(tag='p') On Group Income, every major decision goes through a voting process. This includes adding new members.

.slide(v-observer:2='updateIndicator' :id='config[2]')
.slide-img
svg-access

i18n.is-title-4(tag='h4') 3. Use your unique access link
i18n(tag='p') Once the group agrees that you should join them, a unique access link will be generated, giving you instant access to the group
i18n.is-title-4(tag='h4') 2. Wait for an existing member to use the app
i18n(tag='p') Because Group Income is end-to-end encrypted, an existing member must send you the secret keys to access the group. They will automatically do this when they load the app.

.dots
a.dot(
Expand Down Expand Up @@ -58,7 +51,6 @@ export default ({
},
config: [
'get-an-invitation',
'wait-for-you-group-vote',
'use-your-unique-access-link'
]
}
Expand All @@ -68,7 +60,7 @@ export default ({
observer: {
inserted: (el, { value, arg }) => {
try {
const io = new window.IntersectionObserver(
const io = new window.IntersectionObserver( // Intersection Observer API: https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
(elements) => {
if (elements[0].intersectionRatio >= 0.5) { // Wait for the middle of the screen
value(parseInt(arg))
Expand Down Expand Up @@ -132,7 +124,7 @@ export default ({
/* make it smooth on iOS */
-webkit-overflow-scrolling: touch;
scroll-snap-points-x: repeat(100vw);
scroll-snap-type: x mandatory;
scroll-snap-type: x mandatory; // a helpful article for what this property does: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type
scrollbar-width: none;
&::-webkit-scrollbar {
Expand Down
Loading

0 comments on commit 7aba1d6

Please sign in to comment.