summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-06-09 12:58:38 +0300
committerYuval Adam <_@yuv.al>2018-06-09 12:58:38 +0300
commitb366f20c3bc0f96565647fada14c55c37b57a568 (patch)
tree028145a547bd4390930d6bc24ab21c2969f344cf /src
Initial vue project
Diffstat (limited to 'src')
-rw-r--r--src/App.vue28
-rw-r--r--src/assets/logo.pngbin0 -> 6849 bytes
-rw-r--r--src/components/HelloWorld.vue113
-rw-r--r--src/main.js13
4 files changed, 154 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
new file mode 100644
index 0000000..6f86de0
--- /dev/null
+++ b/src/App.vue
@@ -0,0 +1,28 @@
+<template>
+ <div id="app">
+ <img src="./assets/logo.png">
+ <HelloWorld/>
+ </div>
+</template>
+
+<script>
+import HelloWorld from './components/HelloWorld'
+
+export default {
+ name: 'App',
+ components: {
+ HelloWorld
+ }
+}
+</script>
+
+<style>
+#app {
+ font-family: 'Avenir', Helvetica, Arial, sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ text-align: center;
+ color: #2c3e50;
+ margin-top: 60px;
+}
+</style>
diff --git a/src/assets/logo.png b/src/assets/logo.png
new file mode 100644
index 0000000..f3d2503
--- /dev/null
+++ b/src/assets/logo.png
Binary files differ
diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue
new file mode 100644
index 0000000..1c19f2a
--- /dev/null
+++ b/src/components/HelloWorld.vue
@@ -0,0 +1,113 @@
+<template>
+ <div class="hello">
+ <h1>{{ msg }}</h1>
+ <h2>Essential Links</h2>
+ <ul>
+ <li>
+ <a
+ href="https://vuejs.org"
+ target="_blank"
+ >
+ Core Docs
+ </a>
+ </li>
+ <li>
+ <a
+ href="https://forum.vuejs.org"
+ target="_blank"
+ >
+ Forum
+ </a>
+ </li>
+ <li>
+ <a
+ href="https://chat.vuejs.org"
+ target="_blank"
+ >
+ Community Chat
+ </a>
+ </li>
+ <li>
+ <a
+ href="https://twitter.com/vuejs"
+ target="_blank"
+ >
+ Twitter
+ </a>
+ </li>
+ <br>
+ <li>
+ <a
+ href="http://vuejs-templates.github.io/webpack/"
+ target="_blank"
+ >
+ Docs for This Template
+ </a>
+ </li>
+ </ul>
+ <h2>Ecosystem</h2>
+ <ul>
+ <li>
+ <a
+ href="http://router.vuejs.org/"
+ target="_blank"
+ >
+ vue-router
+ </a>
+ </li>
+ <li>
+ <a
+ href="http://vuex.vuejs.org/"
+ target="_blank"
+ >
+ vuex
+ </a>
+ </li>
+ <li>
+ <a
+ href="http://vue-loader.vuejs.org/"
+ target="_blank"
+ >
+ vue-loader
+ </a>
+ </li>
+ <li>
+ <a
+ href="https://github.com/vuejs/awesome-vue"
+ target="_blank"
+ >
+ awesome-vue
+ </a>
+ </li>
+ </ul>
+ </div>
+</template>
+
+<script>
+export default {
+ name: 'HelloWorld',
+ data () {
+ return {
+ msg: 'Welcome to Your Vue.js App'
+ }
+ }
+}
+</script>
+
+<!-- Add "scoped" attribute to limit CSS to this component only -->
+<style scoped>
+h1, h2 {
+ font-weight: normal;
+}
+ul {
+ list-style-type: none;
+ padding: 0;
+}
+li {
+ display: inline-block;
+ margin: 0 10px;
+}
+a {
+ color: #42b983;
+}
+</style>
diff --git a/src/main.js b/src/main.js
new file mode 100644
index 0000000..684ffac
--- /dev/null
+++ b/src/main.js
@@ -0,0 +1,13 @@
+// The Vue build version to load with the `import` command
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
+import Vue from 'vue'
+import App from './App'
+
+Vue.config.productionTip = false
+
+/* eslint-disable no-new */
+new Vue({
+ el: '#app',
+ components: { App },
+ template: '<App/>'
+})