Skip to content

Commit

Permalink
Add basic template (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanisha03 authored Mar 2, 2020
1 parent 812eb54 commit 4863668
Show file tree
Hide file tree
Showing 9 changed files with 11,944 additions and 0 deletions.
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
11,762 changes: 11,762 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "jarvis-web",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.4",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.2.0",
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
Binary file added public/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
36 changes: 36 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div id="app">
<Navigation />
<LandingPage />
</div>
</template>

<script>
import Navigation from "./components/Navigation.vue";
import LandingPage from "./components/LandingPage.vue";
export default {
name: "App",
components: {
LandingPage,
Navigation
}
};
</script>

<style>
body,
html {
margin: 0;
padding: 0;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin: 0;
padding: 0;
}
</style>
41 changes: 41 additions & 0 deletions src/components/LandingPage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<template>
<div class="main">
<div class="split left">
<div class="centered">
<h2>About</h2>
</div>
</div>

<div class="split right">
<div class="centered">
<h2>Chat</h2>
</div>
</div>
</div>
</template>

<script>
export default {
name: "LandingPage"
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.split {
height: 100%;
overflow-x: hidden;
position: fixed;
}
.left {
left: 0;
background-color: #fafafa;
width: 30%;
}
.right {
right: 0;
background-color: #ececec;
width: 70%;
float: right;
}
</style>
34 changes: 34 additions & 0 deletions src/components/Navigation.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<div class="nav">
<h3 class="header">Jarvis</h3>
<span>
<a href="#">About</a>
<a href="#">Chat</a>
</span>
</div>
</template>
<script>
export default {
name: "Navigation"
};
</script>
<style scoped>
.nav {
height: 4em;
background-color: #333;
padding: 1em;
}
.header {
color: #fff;
float: left;
margin: 0.5em;
font-size: 2em;
}
.nav a {
color: #fff;
float: right;
text-decoration: none;
font-size: 1.5em;
margin: 0.5em;
}
</style>
8 changes: 8 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

new Vue({
render: h => h(App),
}).$mount('#app')

0 comments on commit 4863668

Please sign in to comment.