generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b97ea8
commit 32c3761
Showing
21 changed files
with
736 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
<script setup> | ||
import { RouterLink, RouterView } from 'vue-router' | ||
import { RouterLink, RouterView } from 'vue-router'; | ||
import Header from "./components/TheHeader.vue"; | ||
import Footer from "./components/TheFooter.vue" | ||
import { computed } from 'vue'; | ||
import { useStore } from 'vuex'; | ||
import AdminSideBar from "@/components/AdminSideBar.vue"; | ||
const store = useStore(); | ||
const isAdmin = computed(() => store.getters.isAdmin); | ||
</script> | ||
|
||
<template> | ||
<Header /> | ||
<RouterView /> | ||
<div class="app-container"> | ||
<Header /> | ||
<AdminSideBar v-if="isAdmin" /> | ||
<main class="content"> | ||
<RouterView /> | ||
</main> | ||
<Footer /> | ||
</div> | ||
|
||
</template> | ||
|
||
<style scoped> | ||
.content { | ||
min-height: 100vh; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<template> | ||
<div> | ||
<button @click="toggleSidebar" class="toggle-button"> | ||
<img src="../assets/svg/sidebar/right.svg" alt="no" :class="isOpen ? 'close-sidebar' : 'open-sidebar'"/> | ||
</button> | ||
|
||
|
||
<div class="sidebar" v-if="isOpen" :style="{ transform: isOpen ? 'translateX(0)' : 'translateX(-100%)' }"> | ||
<router-link to="#">Информационная<br>панель</router-link> <br> | ||
<router-link to="#">Каталог</router-link><br> | ||
<router-link to="#">Сотрудники</router-link><br> | ||
<router-link to="#">Заказы</router-link><br> | ||
<router-link to="#">Отзывы</router-link><br> | ||
<router-link to="#">Статистика</router-link><br> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'AdminSideBar', | ||
data() { | ||
return { | ||
isOpen: false, | ||
isCatalogue: false, | ||
}; | ||
}, | ||
methods: { | ||
toggleSidebar() { | ||
this.isOpen = !this.isOpen; | ||
}, | ||
openCatalogue() { | ||
this.isCatalogue = true | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.sidebar { | ||
z-index: 5000; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
height: 100vh; | ||
width: 250px; /* Ширина боковой панели */ | ||
background-color: #FFFFFF; | ||
color: white; | ||
padding: 10px; | ||
box-shadow: 2px 0 5px rgba(0,0,0,0.5); | ||
} | ||
.toggle-button { | ||
position: fixed; | ||
top: 20px; | ||
left: 20px; | ||
z-index: 10000; | ||
} | ||
.close-button { | ||
color: black; | ||
margin-top: 20px; | ||
} | ||
.open-sidebar { | ||
position: fixed; | ||
top: 50%; | ||
left: 0; | ||
width: 64px; | ||
height: 64px; | ||
} | ||
.close-sidebar { | ||
position: fixed; | ||
top: 50%; | ||
left: 218px; | ||
width: 64px; | ||
height: 64px; | ||
transform: rotate(180deg); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script> | ||
</script> | ||
|
||
<template> | ||
<div class="footer"> | ||
<div class="text"> | ||
<p>© 2024</p> | ||
<p>Все права защищены</p> | ||
<p>ООО «Аренда инструментов»</p> | ||
<p>[email protected]</p> | ||
<p>+7 912 345 67 89</p> | ||
</div> | ||
<div class="links"> | ||
<router-link to="/"><p>Условия аренды</p></router-link> | ||
<router-link to="/"><p>Контакты</p></router-link> | ||
<router-link to="/"><p>Оплата и доставка</p></router-link> | ||
</div> | ||
</div> | ||
|
||
</template> | ||
|
||
<style scoped> | ||
.footer { | ||
width: 100%; | ||
height: 175px; | ||
background-color: #F9F9F9; | ||
padding: 32px; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
.text p { | ||
font-size: 14px; | ||
font-weight: 400; | ||
margin-bottom: 8px; | ||
} | ||
.links p { | ||
font-size: 14px; | ||
font-weight: 400; | ||
margin-bottom: 16px; | ||
color: #6A983C; | ||
} | ||
</style> |
Oops, something went wrong.