43 lines
597 B
Vue
43 lines
597 B
Vue
<template>
|
|
<div class="app-container">
|
|
<Sidebar />
|
|
<div class="content">
|
|
<RouterView />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import Sidebar from '../components/Sidebar.vue';
|
|
import { RouterLink, RouterView } from 'vue-router'
|
|
|
|
</script>
|
|
|
|
<style>
|
|
body,
|
|
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.app-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 200px;
|
|
background-color: #f5f5f5;
|
|
padding: 20px;
|
|
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.content {
|
|
width: calc(100% - 200px);
|
|
margin-left: 200px;
|
|
padding: 20px;
|
|
|
|
|
|
}
|
|
</style> |