Skip to content

Commit

Permalink
refactor(ui): переименованы и обновлены компоненты
Browse files Browse the repository at this point in the history
- Переименованы компоненты для улучшения читаемости и согласованности:
  - `ColorCard.vue` -> `GridView.vue`
  - `_LeftInfo.vue` -> `LeftInfo.vue`
  - `_Footer.vue` -> `Footer.vue`
- Обновлены пути импорта и структуры компонентов в `InventoryPage.vue`.
- Обновлен стиль для центрации содержимого страницы.
  • Loading branch information
Isanin Sergey committed Nov 17, 2024
1 parent 0656b29 commit b3db83d
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 233 deletions.
16 changes: 14 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<InventoryPage />
<InventoryPage class="app-container" />
</div>
</template>

Expand All @@ -14,9 +14,21 @@ export default {
</script>

<style>
body {
/* Центрируем контейнер с компонентом */
.app-container {
display: flex;
justify-content: center; /* Горизонтальное центрирование */
align-items: center; /* Вертикальное центрирование */
height: 100vh; /* Занимает всю высоту экрана */
background-color: #1e1e1e;
font-family: 'Inter', sans-serif;
}
body {
margin: 0;
height: 100%;
}
/* Подключение шрифта */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
</style>
101 changes: 0 additions & 101 deletions src/components/Item/ItemCard.vue

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/Item/ItemView.vue

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/grid/ColorCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export default {
}
.block {
padding: 0px;
border: 0.5px #4d4d4d solid;
padding: 0;
border: 1px #4d4d4d solid;
display: flex;
justify-content: center;
align-items: center;
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 7 additions & 5 deletions src/pages/InventoryPage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="center">
<div class="content">
<div class="main-center">
<div>
<InventoryInfo />
<InventoryFooter />
<InventoryPage />
Expand All @@ -9,9 +9,10 @@
</template>

<script>
import InventoryInfo from '@/components/info/_LeftInfo.vue'
import InventoryInfo from '@/components/info/LeftInfo.vue'
import InventoryFooter from '@/components/footer/_Footer.vue'
import InventoryPage from '@/components/grid/_Grid.vue'
import InventoryPage from '@/components/grid/GridView.vue'
export default {
components: {
InventoryInfo,
Expand All @@ -22,9 +23,10 @@ export default {
</script>

<style>
.center {
.main-center {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Занимает всю высоту экрана */
}
</style>
55 changes: 0 additions & 55 deletions src/styles/item.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/styles/main.scss

This file was deleted.

41 changes: 0 additions & 41 deletions src/styles/table.scss

This file was deleted.

0 comments on commit b3db83d

Please sign in to comment.