feat: 完成网站前端的基本建设
- 网站内容展示:首页, 产品页, 解决方案, 联系信息等 - 网站跳转逻辑:通过Vue-Router实现路由跳转 - 后端通信: 通过Nuxt Strapi与后端Strapi服务进行通信
This commit is contained in:
36
app/layouts/default.vue
Normal file
36
app/layouts/default.vue
Normal file
@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<el-container class="app-container">
|
||||
<el-header height="auto" class="page-header">
|
||||
<jinshen-header />
|
||||
</el-header>
|
||||
<el-main class="main-content">
|
||||
<slot />
|
||||
</el-main>
|
||||
<el-footer height="auto" class="page-footer">
|
||||
<jinshen-footer />
|
||||
</el-footer>
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.app-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
padding: 0px;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: 0;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.page-footer {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user