-
Notifications
You must be signed in to change notification settings - Fork 16
/
BannerDiscord.vue
90 lines (79 loc) · 1.64 KB
/
BannerDiscord.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<div class="s-banner-discord">
<h2 class="s-banner-discord__title" v-html="title"></h2>
<Button
title="Open Discord"
icon="discord"
:iconPosition="'right'"
:variation="'custom'"
:bgColor="'#FFFFFF'"
:textColor="'#7289DA'"
v-on="$listeners"
:tag="'a'"
:href="'https://discord.gg/stream'"
:target="'_blank'"
></Button>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import Button from "./../components/Button.vue";
@Component({
components: {
Button
}
})
export default class BannerDiscord extends Vue {
@Prop({
default: "Join the Streamlabs OBS Discussion on <span>Discord</span>"
})
title!: string;
}
</script>
<style lang="less">
@import (reference) "./../styles/Imports";
.s-banner-discord {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
.margin-bottom(3);
.padding(1.5);
.padding-left(3);
.radius(2);
background-color: @discord;
overflow: hidden;
&::before {
content: "\e91b";
position: absolute;
top: -32px;
left: -32px;
transform: rotate(-20deg);
font-family: "icomoon";
font-size: 310px;
color: fade(@white, 8%);
}
&__title {
color: @white;
margin-bottom: 0;
.weight(@normal);
& > span {
.weight(@medium);
}
}
.s-button {
.margin-left(3);
.icon-discord {
font-size: 16px;
}
}
@media screen and (max-width: 500px) {
flex-direction: column;
text-align: center;
.s-button {
.margin-top(2);
.margin-left(0);
}
}
}
</style>