forked from bpd01001/web-three-twitter-boilerplate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #2 from jjs15102/newroutebranch
added bootstrap, vue resource, deleted HelloWorld, and added our logo…
- Loading branch information
Showing
12 changed files
with
432 additions
and
107 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import 'node_modules/bootstrap/scss/bootstrap'; | ||
@import 'node_modules/bootstrap-vue/src/index.scss'; | ||
|
||
|
||
.motherfont { | ||
font-family: 'Vollkorn', serif; | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<template> | ||
<div class="motherfont" id="add-bark"> | ||
<h2>Compose a Bark</h2> | ||
<form v-if="!submitted"> | ||
<input type="text" placeholder="Write your Bark here..." v-model.lazy="bark.content" required /> | ||
<button @click.prevent="post" once>Add Bark</button> | ||
</form> | ||
<div v-if="submitted"> | ||
<h3>Thanks for adding your post</h3> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
// Imports | ||
export default { | ||
data () { | ||
return { | ||
bark: { | ||
content: '', | ||
}, | ||
submitted: false | ||
} | ||
}, | ||
methods: { | ||
post(){ | ||
db.collection('barks').add({ | ||
user: this.$store.state.user, // object with: { uid, displayName, photoURL, email, phoneNumber } | ||
content:this.bark.content, | ||
createdAt: new Date() | ||
}) | ||
this.content=null; | ||
// Update the list | ||
this.display(); | ||
} | ||
} | ||
} | ||
// post: function(){ | ||
// this.$http.post('https://dmd4470-50f92.firebaseio.com/tweets.json',this.bark).then(function(data){ | ||
// console.log(data); | ||
// this.submitted = true; | ||
// }); | ||
// } | ||
// } | ||
</script> | ||
|
||
<style scoped> | ||
#add-blog *{ | ||
box-sizing: border-box; | ||
} | ||
#add-blog{ | ||
margin: 20px auto; | ||
max-width: 500px; | ||
} | ||
label{ | ||
display: block; | ||
margin: 20px 0 10px; | ||
} | ||
input[type="text"], textarea{ | ||
display: block; | ||
width: 100%; | ||
padding: 8px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<template> | ||
<div class="about"> | ||
<h1>This is an about page</h1> | ||
<h1 class="motherfont">Welcome to the Dog Park, Where anyone can Bark!</h1> | ||
<b-button variant="outline-primary">Boot</b-button> | ||
|
||
|
||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters