Skip to content

Commit

Permalink
add index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Airen committed Oct 10, 2017
1 parent 3955ea0 commit 05b8583
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
.DS_Store
.idea
*/.DS_Store
*/.idea
node_modules
dist
logs
*.log
npm-debug.log*
52 changes: 52 additions & 0 deletions index.html
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Study || Vue Examples</title>
<script src="//unpkg.com/vue"></script>
<style>

</style>
</head>
<body>
<div id="app">
<ul>
<li v-for="page in pages">
<h1>{{ page.title }}</h1>
<figure>
<a :href="page.demoUrl" target="_blank">
<img :src="page.imgUrl" :alt="page.title" />
</a>
<figcaption>{{ page.des }}</figcaption>
</figure>
<div class="info">
<span>@{{ page.author }}</span>
<a :href="page.tutorial" target="_blank">Tutorial</a>
</div>
</li>
</ul>
</div>

<script>
let app = new Vue({
el: '#app',
data () {
return {
pages: [
{
title: "title",
imgUrl: "//www.baidu.com",
des: "xxx, adkd",
author: "airen",
tutorial: "//www.w3cplus.com",
demoUrl: "www.w"
}
]
}
}
})
</script>
</body>
</html>

0 comments on commit 05b8583

Please sign in to comment.