提交 cc58ab07 编写于 作者: W wyhslx

Auto Commit

上级 7a093d7e
run = "npm i && npm run dev"
language = "node"
[deployment]
build = "npm i && npm run build"
......@@ -8,3 +9,6 @@ run = "npm run preview"
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
<script setup>
import HelloWorld from './components/HelloWorld.vue'
import TheWelcome from './components/TheWelcome.vue'
</script>
<template>
<header>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div class="wrapper">
<HelloWorld msg="You did it!" />
</div>
<nav>
<ul>
<li v-for="navItem in navList" :key="navItem.id">
<a :href="navItem.url">{{ navItem.name }}</a>
</li>
</ul>
</nav>
</header>
<main>
<TheWelcome />
</main>
</template>
<style scoped>
<script>
export default {
data() {
return {
navList: [
{ id: 1, name: '预订中心', url: '#' },
{ id: 2, name: 'VIP中心', url: '#' },
{ id: 3, name: '订单中心', url: '#' },
{ id: 4, name: '客户中心', url: '#' },
{ id: 5, name: '产品中心', url: '#' },
{ id: 6, name: '财务中心', url: '#' },
{ id: 7, name: '报表统计', url: '#' },
{ id: 8, name: '系统设置', url: '#' },
{ id: 9, name: '会议中心', url: '#' },
{ id: 10, name: '开发者中心', url: '#' },
],
};
},
};
</script>
<style>
header {
line-height: 1.5;
background-color: rgb(9, 36, 109);
padding: 5px;
}
.logo {
display: block;
margin: 0 auto 2rem;
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
nav li {
margin-right: 15px;
}
.logo {
margin: 0 2rem 0 0;
}
nav li:last-child {
margin-right: 0;
}
nav a {
color: #fff;
text-decoration: none;
font-size: 13px;
font-weight: bold;
padding: 10px;
transition: background-color 0.2s ease-in-out;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
nav a:hover {
background-color: #666;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册