-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15568 - As a BCOL HD staff user I need to launch any/all products (#3273
- Loading branch information
Showing
3 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
104 changes: 104 additions & 0 deletions
104
auth-web/src/components/auth/staff/AllProductsLauncher.vue
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,104 @@ | ||
<template> | ||
<v-card | ||
class="product-container" | ||
:href="businessURL" | ||
> | ||
<v-row | ||
align="center" | ||
no-gutters | ||
> | ||
<v-col cols="auto"> | ||
<img | ||
alt="product" | ||
class="product-img" | ||
:src="getImgUrl(img)" | ||
> | ||
</v-col> | ||
<v-col | ||
class="product-info" | ||
align-self="baseline" | ||
> | ||
<h2>{{ title }}</h2> | ||
<p class="mt-5 mb-0"> | ||
{{ text }} | ||
</p> | ||
<v-btn class="primary product-info__btn px-5"> | ||
Open | ||
<v-icon>mdi-chevron-right</v-icon> | ||
</v-btn> | ||
</v-col> | ||
</v-row> | ||
</v-card> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { computed, defineComponent, reactive, toRefs } from '@vue/composition-api' | ||
import ConfigHelper from '@/util/config-helper' | ||
import { useI18n } from 'vue-i18n-composable' | ||
export default defineComponent({ | ||
setup () { | ||
const { t } = useI18n() | ||
const state = reactive({ | ||
img: 'AssetsRegistries_dashboard.jpg', | ||
title: t('viewAllProductsLauncherTitle').toString(), | ||
text: t('viewAllProductsLauncherText').toString() | ||
}) | ||
const businessURL = computed(() => ConfigHelper.getBcrosDashboardURL()) | ||
function getImgUrl (imgName: string) { | ||
return new URL(`/src/assets/img/${imgName}`, import.meta.url).href | ||
} | ||
return { | ||
...toRefs(state), | ||
businessURL, | ||
getImgUrl | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
h2 { | ||
line-height: 1.5rem; | ||
} | ||
.product-container { | ||
border-left: 3px solid transparent; | ||
box-shadow: none; | ||
cursor: pointer; | ||
height: 100%; | ||
max-width: none; | ||
padding: 30px; | ||
&:hover { | ||
border-left: 3px solid $app-blue !important; | ||
} | ||
} | ||
.product-img { | ||
height: 196px; | ||
width: 230px; | ||
} | ||
.product-info { | ||
height: 196px; | ||
padding-left: 15px !important; | ||
position: relative; | ||
p { | ||
color: $gray7; | ||
font-size: 1rem; | ||
} | ||
&__btn { | ||
font-weight: 600; | ||
height: 40px !important; | ||
text-transform: none; | ||
pointer-events: none; | ||
position: absolute; | ||
bottom: 0; | ||
} | ||
} | ||
</style> |
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