提交 8e83b44a 编写于 作者: Q qq_30960005

Auto Commit

上级 7a093d7e
...@@ -4,44 +4,46 @@ import TheWelcome from './components/TheWelcome.vue' ...@@ -4,44 +4,46 @@ import TheWelcome from './components/TheWelcome.vue'
</script> </script>
<template> <template>
<header>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div class="wrapper"> <div class="wrapper">
<HelloWorld msg="You did it!" /> <a @mousemove="num=4" @mouseout="num=2">
<div style="z-index:11" >
<h1 class="font-bold text-2xl font-Rubik">
JavaScript
</h1>
<p class="text-right text-neutral-500">
7 articles{{ num }}
</p>
</div>
<div v-for="item in 10" :key="item" :style="{top:(item*num)+'px',left:(item*num)+'px',zIndex:10-item}" />
</a>
</div> </div>
</header>
<main>
<TheWelcome />
</main>
</template> </template>
<script>
<style scoped> export default {
header { data() {
line-height: 1.5; return {
num:2
}
}
} }
</script>
.logo { <style scoped>
display: block; a{
margin: 0 auto 2rem; position: relative;
cursor: pointer;
} }
a>div{
@media (min-width: 1024px) { position: absolute;
header { background: #fff;
display: flex; width: 170px;
place-items: center; height: 210px;
padding-right: calc(var(--section-gap) / 2); border-radius: 6px;
} border: rgba(0,0,0,.16) solid 1px;
box-shadow: 0 2px 8px rgba(0,0,0,.16), 0 -4px 8px hsla(0,0%,100%,.8);
.logo { transition: all .4s ease;
margin: 0 2rem 0 0; padding: 12px;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册