<template>
|
<el-container class="app-container">
|
<el-header class="app-header">
|
<div class="header-content">
|
<router-link to="/" class="logo">
|
<el-icon :size="24"><Cpu /></el-icon>
|
<span>S7 PLC Simulator</span>
|
</router-link>
|
</div>
|
</el-header>
|
|
<el-main class="app-main">
|
<router-view />
|
</el-main>
|
|
<el-footer class="app-footer">
|
<span>© 2026 - S7 PLC Simulator Management UI</span>
|
</el-footer>
|
</el-container>
|
</template>
|
|
<script setup lang="ts">
|
import { Cpu } from '@element-plus/icons-vue'
|
</script>
|
|
<style scoped>
|
.app-container {
|
min-height: 100vh;
|
}
|
|
.app-header {
|
background: #409eff;
|
color: white;
|
padding: 0 20px;
|
display: flex;
|
align-items: center;
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
}
|
|
.header-content {
|
width: 100%;
|
max-width: 1400px;
|
margin: 0 auto;
|
}
|
|
.logo {
|
display: flex;
|
align-items: center;
|
gap: 8px;
|
color: white;
|
text-decoration: none;
|
font-size: 18px;
|
font-weight: 500;
|
}
|
|
.logo:hover {
|
color: white;
|
}
|
|
.app-main {
|
flex: 1;
|
padding: 20px;
|
max-width: 1400px;
|
width: 100%;
|
margin: 0 auto;
|
}
|
|
.app-footer {
|
text-align: center;
|
color: #909399;
|
border-top: 1px solid #dcdfe6;
|
padding: 20px;
|
}
|
|
a.router-link-active {
|
font-weight: bold;
|
}
|
</style>
|