<template>
|
<button :class="['page-footer-action', { isFlex }]">
|
<img :src="icon" class="page-footer-action-icon" />
|
<div class="page-footer-action-text">{{ text }}</div>
|
</button>
|
</template>
|
|
<script setup lang="ts">
|
defineOptions({
|
name: 'PageFooterAction',
|
});
|
|
type Props = {
|
isFlex?: boolean;
|
icon?: string;
|
text?: string;
|
};
|
|
const props = withDefaults(defineProps<Props>(), {
|
isFlex: true,
|
});
|
</script>
|
|
<style lang="scss">
|
@import '@/styles/common.scss';
|
|
.page-footer-action {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
background-color: transparent;
|
border-radius: 0;
|
outline: none;
|
border: none;
|
padding: 0;
|
appearance: none;
|
user-select: none;
|
margin: 0 28px;
|
|
&::after {
|
display: none;
|
}
|
|
&.isFlex {
|
flex: 1;
|
min-width: 0;
|
margin: 0;
|
|
& + .page-footer-action.isFlex {
|
border-left: 1px solid #ebebeb;
|
}
|
}
|
|
.page-footer-action-icon {
|
width: 40px;
|
height: 40px;
|
margin-bottom: 4px;
|
}
|
|
.page-footer-action-text {
|
font-weight: 400;
|
font-size: 24px;
|
color: boleGetCssVar('text-color', 'regular');
|
line-height: 34px;
|
}
|
}
|
</style>
|