Предварительный коммит по навигации в боковой панели

This commit is contained in:
Ilia Miheev
2026-03-12 21:51:23 +03:00
parent 23f65a101e
commit 76bda1c0ee
4 changed files with 249 additions and 110 deletions
+35
View File
@@ -0,0 +1,35 @@
<script setup>
const props = defineProps({
isSuccess: {
type: Boolean,
required: true
},
to: {
type: String,
default: null
}
})
</script>
<template>
<a v-if="to" :href="props.to" class="btn">
<slot/>
</a>
<button v-else class="btn">
<slot/>
</button>
</template>
<style scoped>
.btn {
border: 2px solid white;
cursor: pointer;
transition: 0.3s;
padding: 5px;
background-color: #383838;
color: white;
width: 100%;
font-size: 17px;
}
</style>