blob: 04d7813921d38610a5e983c5e8db33dbe5aa7217 (
plain)
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
|
<template>
<button class="square-button" @click="$emit('click')">
<studip-icon :shape="icon" :size="50" />
<span>{{ title }}</span>
</button>
</template>
<script>
export default {
name: 'studip-square-button',
props: {
icon: {
type: String,
default: 'seminar',
},
title: {
type: String,
required: true,
validator: (value) => {
return value !== '';
},
},
},
};
</script>
<style scoped lang="scss">
$size: 130px;
.square-button {
display: flex;
flex-direction: column;
justify-content: flex-start;
max-height: $size;
max-width: $size;
min-width: $size;
min-height: $size;
margin: 10px;
padding: 10px;
background-color: transparent;
border: solid thin var(--content-color-40);
cursor: pointer;
img {
width: 100%;
height: 50px;
margin-bottom: 8px;
}
span {
color: var(--base-color);
min-width: 110px;
}
&:hover span {
color: var(--red);
}
}
</style>
|