add center

This commit is contained in:
2026-07-19 15:24:36 +07:00
parent 3f8b8ba432
commit 2599be3f53
6 changed files with 81 additions and 64 deletions
+6 -1
View File
@@ -25,7 +25,7 @@ body {
.content-block { .content-block {
margin-top: 70px; margin-top: 70px;
padding: 10px; padding: 10px;
background-color: #333333; /* background-color: #553333; */
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
@@ -33,4 +33,9 @@ body {
width: 700px; width: 700px;
margin: 70px auto 0 auto; margin: 70px auto 0 auto;
} }
.center-middle-block-custom {
display: grid;
place-items: center;
}
} }
+2
View File
@@ -5,7 +5,9 @@ import HeaderMenu from '@/components/HeaderMenu.vue'
<template> <template>
<HeaderMenu :add-logout="true" active="games" /> <HeaderMenu :add-logout="true" active="games" />
<div class="center-block-custom content-block">
Игры Игры
</div>
</template> </template>
<style scoped></style> <style scoped></style>
+6
View File
@@ -52,6 +52,7 @@ async function signup() {
</script> </script>
<template> <template>
<div class="center-block-custom content-block center-middle-block-custom height100">
<n-card style="margin-bottom: 16px" class="sign-card"> <n-card style="margin-bottom: 16px" class="sign-card">
<n-tabs type="line" animated> <n-tabs type="line" animated>
@@ -111,6 +112,7 @@ async function signup() {
</n-tabs> </n-tabs>
</n-card> </n-card>
</div>
</template> </template>
<style scoped> <style scoped>
@@ -135,6 +137,10 @@ async function signup() {
color: #63e2b7; color: #63e2b7;
} }
.height100 {
height: 80vh;
}
@media (min-width: 1024px) { @media (min-width: 1024px) {
.sign-card { .sign-card {
width: 380px; width: 380px;
+2
View File
@@ -21,6 +21,7 @@ getPermissions()
<template> <template>
<HeaderMenu :add-logout="true" active="office" /> <HeaderMenu :add-logout="true" active="office" />
<div class="center-block-custom content-block">
<p> <p>
Доброго времени суток, {{ authStore.username }}. Доброго времени суток, {{ authStore.username }}.
</p> </p>
@@ -29,6 +30,7 @@ getPermissions()
</p> </p>
{{ permissions }} --> {{ permissions }} -->
</div>
</template> </template>
<style scoped></style> <style scoped></style>
+1 -1
View File
@@ -5,7 +5,7 @@ import HeaderMenu from '@/components/HeaderMenu.vue'
<template> <template>
<HeaderMenu :add-logout="true" active="scenarios" /> <HeaderMenu :add-logout="true" active="scenarios" />
<div class="center-block-custom"> <div class="center-block-custom content-block">
Сценарии Сценарии
</div> </div>
</template> </template>
+2
View File
@@ -5,7 +5,9 @@ import HeaderMenu from '@/components/HeaderMenu.vue'
<template> <template>
<HeaderMenu :add-logout="true" active="users" /> <HeaderMenu :add-logout="true" active="users" />
<div class="center-block-custom content-block">
Пользователи Пользователи
</div>
</template> </template>
<style scoped></style> <style scoped></style>