Исправили ошибки на которые указал тестировщик

This commit is contained in:
alisagerasimova
2026-03-16 14:59:27 +03:00
parent f7ae74dd9b
commit b43057e750
4 changed files with 92 additions and 60 deletions
+9 -3
View File
@@ -13,11 +13,11 @@ const props = defineProps({
</script>
<template>
<a v-if="to" :href="props.to" class="btn">
<slot/>
<a v-if="to" :href="props.to" target="_blank" class="btn">
<slot />
</a>
<button v-else class="btn">
<slot/>
<slot />
</button>
</template>
@@ -31,5 +31,11 @@ const props = defineProps({
color: white;
width: 100%;
font-size: 17px;
text-decoration: none;
box-sizing: border-box;
text-align: center;
font-family: 'Courier New', Courier, monospace;
margin: 0;
}
</style>