gitlab-org--gitlab-foss/app/assets/javascripts/cycle_analytics/components/banner.vue

54 lines
1.2 KiB
Vue
Raw Normal View History

<script>
import iconCycleAnalyticsSplash from 'icons/_icon_cycle_analytics_splash.svg';
import Icon from '~/vue_shared/components/icon.vue';
export default {
components: {
Icon,
},
props: {
documentationLink: {
type: String,
required: true,
},
},
computed: {
iconCycleAnalyticsSplash() {
return iconCycleAnalyticsSplash;
},
},
methods: {
dismissOverviewDialog() {
this.$emit('dismiss-overview-dialog');
},
},
};
</script>
<template>
<div class="landing content-block">
<button
2018-06-11 05:49:47 -04:00
:aria-label="__('Dismiss Cycle Analytics introduction box')"
class="js-ca-dismiss-button dismiss-button"
type="button"
2018-01-05 07:56:55 -05:00
@click="dismissOverviewDialog"
>
2018-11-16 15:07:38 -05:00
<icon name="close" />
</button>
2018-11-16 15:07:38 -05:00
<div class="svg-container" v-html="iconCycleAnalyticsSplash"></div>
<div class="inner-content">
2018-11-16 15:07:38 -05:00
<h4>{{ __('Introducing Cycle Analytics') }}</h4>
<p>
2018-11-16 15:07:38 -05:00
{{
__(`Cycle Analytics gives an overview
of how much time it takes to go from idea to production in your project.`)
}}
</p>
<p>
2018-11-16 15:07:38 -05:00
<a :href="documentationLink" target="_blank" rel="nofollow" class="btn">
2018-01-05 07:56:55 -05:00
{{ __('Read more') }}
</a>
</p>
</div>
</div>
</template>