Auto Commit

上级 7a093d7e
<script setup> <script setup>
import HelloWorld from './components/HelloWorld.vue'
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">
<HelloWorld msg="You did it!" />
</div>
</header>
<main> <div class="body">
<TheWelcome /> <div class="gallery">
</main> <span style="--i:1">
<img src="../src/assets/20160317110541_35459.jpg" mode="">
</span>
<span style="--i:2">
<img src="../src/assets/20160317110541_35459.jpg" mode="">
</span>
<span style="--i:3">
<img src="../src/assets/20160317110541_35459.jpg" mode="">
</span>
<span style="--i:4">
<img src="../src/assets/20160317110541_35459.jpg" mode="">
</span>
</div>
</div>
</template> </template>
<style scoped> <style scoped>
.body{
margin:0;
height:100vh;
display:grid;
place-items:center;
background-color:#010101;
}
.gallery{
position:relative;
width:300px;
height:200px;
transform-style:preserve-3d;
animation:rotate 15s linear infinite;
}
@keyframes rotate{
from{
transform:perspective(1200px) rotateY(0deg);
}
to{
transform:perspective(1200px) rotateY(360deg);
}
}
.gallery span{
position:absolute;
width:100%;
height:100%;
transform-origin:center;
transform-style:preserve-3d;
transform:rotateY(calc(var(--i) * 90deg)) translateZ(180px);
}
.gallery span img{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
}
header { header {
line-height: 1.5; line-height: 1.5;
} }
......
<script setup>
defineProps({
msg: {
type: String,
required: true
}
})
</script>
<template> <template>
<div class="greetings"> <view class="body">
<h1 class="green">{{ msg }}</h1> <view class="gallery">
<h3> <span style="--i:1">
You’ve successfully created a project with <image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
<a target="_blank" href="https://vitejs.dev/">Vite</a> + </span>
<a target="_blank" href="https://vuejs.org/">Vue 3</a>. <span style="--i:2">
</h3> <image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
</div>
</span>
<span style="--i:3">
<image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
</span>
<span style="--i:4">
<image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
</span>
</view>
</view>
</template> </template>
<style scoped> <script>
h1 { export default {
font-weight: 500; data() {
font-size: 2.6rem; return {
top: -10px;
};
}
}
</script>
<style >
.body{
margin:0;
height:100vh;
display:grid;
place-items:center;
background-color:#010101;
}
.gallery{
position:relative;
width:300px;
height:200px;
transform-style:preserve-3d;
animation:rotate 15s linear infinite;
} }
h3 { @keyframes rotate{
font-size: 1.2rem; from{
transform:perspective(1200px) rotateY(0deg);
}
to{
transform:perspective(1200px) rotateY(360deg);
}
} }
.greetings h1, .gallery span{
.greetings h3 { position:absolute;
text-align: center; width:100%;
height:100%;
transform-origin:center;
transform-style:preserve-3d;
transform:rotateY(calc(var(--i) * 90deg)) translateZ(180px);
} }
@media (min-width: 1024px) { .gallery span image{
.greetings h1, position:absolute;
.greetings h3 { width:100%;
text-align: left; height:100%;
} object-fit:cover;
} }
</style> </style>
<script setup>
import WelcomeItem from './WelcomeItem.vue'
import DocumentationIcon from './icons/IconDocumentation.vue'
import ToolingIcon from './icons/IconTooling.vue'
import EcosystemIcon from './icons/IconEcosystem.vue'
import CommunityIcon from './icons/IconCommunity.vue'
import SupportIcon from './icons/IconSupport.vue'
</script>
<template> <template>
<WelcomeItem> <view class="body">
<template #icon> <view class="gallery">
<DocumentationIcon /> <span style="--i:1">
</template> <image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
<template #heading>Documentation</template> </span>
<span style="--i:2">
Vue’s <image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
<a target="_blank" href="https://vuejs.org/">official documentation</a>
provides you with all information you need to get started.
</WelcomeItem>
<WelcomeItem> </span>
<template #icon> <span style="--i:3">
<ToolingIcon /> <image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
</template>
<template #heading>Tooling</template>
This project is served and bundled with </span>
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE <span style="--i:4">
setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> + <image src="../src/assets/20160317110541_35459.jpg" mode=""></image>
<a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
your components and web pages, check out
<a href="https://www.cypress.io/" target="_blank">Cypress</a> and
<a href="https://on.cypress.io/component" target="_blank"
>Cypress Component Testing</a
>.
<br /> </span>
</view>
</view>
</template>
More instructions are available in <code>README.md</code>. <script>
</WelcomeItem> export default {
data() {
return {
<WelcomeItem> };
<template #icon> }
<EcosystemIcon /> }
</template> </script>
<template #heading>Ecosystem</template>
Get official tools and libraries for your project: <style >
<a target="_blank" href="https://pinia.vuejs.org/">Pinia</a>, .body{
<a target="_blank" href="https://router.vuejs.org/">Vue Router</a>, margin:0;
<a target="_blank" href="https://test-utils.vuejs.org/">Vue Test Utils</a>, and height:100vh;
<a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more display:grid;
resources, we suggest paying place-items:center;
<a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a> background-color:#010101;
a visit. }
</WelcomeItem> .gallery{
position:relative;
width:300px;
height:200px;
transform-style:preserve-3d;
animation:rotate 15s linear infinite;
}
<WelcomeItem> @keyframes rotate{
<template #icon> from{
<CommunityIcon /> transform:perspective(1200px) rotateY(0deg);
</template> }
<template #heading>Community</template>
Got stuck? Ask your question on to{
<a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or transform:perspective(1200px) rotateY(360deg);
<a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>. }
You should also subscribe to }
<a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
<a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
twitter account for latest news in the Vue world.
</WelcomeItem>
<WelcomeItem> .gallery span{
<template #icon> position:absolute;
<SupportIcon /> width:100%;
</template> height:100%;
<template #heading>Support Vue</template> transform-origin:center;
transform-style:preserve-3d;
transform:rotateY(calc(var(--i) * 90deg)) translateZ(180px);
}
As an independent project, Vue relies on community backing for its sustainability. You can help .gallery span image{
us by position:absolute;
<a target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</a>. width:100%;
</WelcomeItem> height:100%;
</template> object-fit:cover;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册