84 lines
1.4 KiB
Vue
84 lines
1.4 KiB
Vue
<template>
|
|
<div class="app-container">
|
|
<header class="app-header">
|
|
<div class="logo">
|
|
<span class="logo-icon">🤖</span>
|
|
<span class="logo-text">RAG One</span>
|
|
</div>
|
|
<nav class="nav-menu">
|
|
<router-link to="/" class="nav-item">채팅</router-link>
|
|
<router-link to="/admin" class="nav-item">관리</router-link>
|
|
</nav>
|
|
</header>
|
|
<main class="app-main">
|
|
<router-view />
|
|
</main>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.app-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background-color: #f5f7fa;
|
|
}
|
|
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
height: 60px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
|
|
.logo-icon {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 8px 16px;
|
|
border-radius: 8px;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
|
|
&:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
&.router-link-active {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
.app-main {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|