-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update src for playstore and app store imgs, move qrcode and playstore btns into separate component * add light mode playstore btns * update google play img in light mode, remove links surrounding btns * use qrplaystore component in profile manager * remove light app store btns * remove unused img * adjust google play store btn width * enlarge google play btn * add qrplaystore component to twin page * pass msg above qr code as prop to qrplaystore component * use slot instead of v-html * remove msg prop * wrap slot in p * remove p wrapping from slot, move it around text
- Loading branch information
1 parent
8376fd6
commit aa4ef9d
Showing
4 changed files
with
79 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<div class="d-flex flex-column text-center align-center"> | ||
<slot></slot> | ||
<div class="d-flex justify-center py-2"> | ||
<QrcodeGenerator :data="props.qr" /> | ||
</div> | ||
<div class="d-flex justify-center align-center my-4"> | ||
<a | ||
v-for="app in apps" | ||
:key="app.alt" | ||
:style="{ cursor: 'pointer', width: '9rem' }" | ||
class="mx-2" | ||
:title="app.alt" | ||
v-html="app.src" | ||
:href="app.url" | ||
target="_blank" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
const props = defineProps({ | ||
qr: String, | ||
}); | ||
const apps = [ | ||
{ | ||
src: `<img width="140" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Google_Play_Store_badge_EN.svg/128px-Google_Play_Store_badge_EN.svg.png?20220907104002">`, | ||
alt: "Threefold Connect on Google Play Store", | ||
url: "https://play.google.com/store/apps/details?id=org.jimber.threebotlogin&hl=en&gl=US", | ||
}, | ||
{ | ||
src: `<img width="128" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Download_on_the_App_Store_RGB_blk.svg/128px-Download_on_the_App_Store_RGB_blk.svg.png?20180317110059"/>`, | ||
alt: "Threefold Connect on Apple App Store", | ||
url: "https://apps.apple.com/us/app/threefold-connect/id1459845885", | ||
}, | ||
]; | ||
</script> | ||
<script lang="ts"> | ||
import { defineComponent } from "vue"; | ||
import QrcodeGenerator from "../components/qrcode_generator.vue"; | ||
export default defineComponent({ | ||
name: "QRPlayStore", | ||
components: { QrcodeGenerator }, | ||
}); | ||
</script> |
Oops, something went wrong.