49 lines
767 B
Vue
49 lines
767 B
Vue
<template>
|
|
<div class="new tile">
|
|
<font-awesome-icon icon="plus" />
|
|
<div class="label">
|
|
<div class="title">{{title}}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ["title"],
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
svg {
|
|
color: #fff;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.tile.new {
|
|
transition: all 0.5s;
|
|
padding: 16px 25px;
|
|
border-radius: 5px;
|
|
margin: 5px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
background: rgba(0,0,0,0.8);
|
|
}
|
|
.label {
|
|
font-weight: 900;
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
.title {
|
|
font-weight: bold;
|
|
}
|
|
.tile:hover {
|
|
transition: all 0.1s;
|
|
box-shadow: rgba(0, 0, 0, 0.5) 0px 20px 30px -10px;
|
|
}
|
|
.lightMode .tile.new {
|
|
background: rgba(255,255,255,0.8);
|
|
}
|
|
</style>
|