提交 cc6f4ea5 编写于 作者: H hansen666666

Wed Sep 20 14:29:00 CST 2023 inscode

上级 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 class="toolbar">
<div class="toolbar__icon">
<i class="fas fa-bars"></i>
</div>
</header>
<main>
<TheWelcome />
</main>
<div class="toolbar__menu">
<span>菜单1</span>
</div>
<div class="toolbar__menu">
<span>菜单2</span>
</div>
<div class="toolbar__menu">
<span>菜单3</span>
</div>
<div class="toolbar__user">
<i class="fas fa-user"></i>
<span>{{ user.name }}</span>
</div>
</div>
</template>
<style scoped>
header {
line-height: 1.5;
<script>
export default {
name: 'Toolbar',
data() {
return {
user: {
name: 'John Smith',
},
};
},
};
</script>
<style>
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
height: 50px;
padding: 0 20px;
background-color: #fff;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}
.logo {
display: block;
margin: 0 auto 2rem;
.toolbar__icon {
font-size: 20px;
color: #333;
cursor: pointer;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.toolbar__menu {
margin-left: 30px;
}
.logo {
margin: 0 2rem 0 0;
}
.toolbar__user {
display: flex;
align-items: center;
font-size: 14px;
color: #666;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
.toolbar__user i {
margin-right: 5px;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册