Skip to content

Commit

Permalink
initial attempts at making the post feed link to an array
Browse files Browse the repository at this point in the history
  • Loading branch information
clr14003 committed May 2, 2020
1 parent f56c195 commit 51475e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 38 deletions.
60 changes: 22 additions & 38 deletions final/src/components/PlaceholderTweets.vue
Original file line number Diff line number Diff line change
@@ -1,42 +1,9 @@
<template>
<div id="postLog">
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-1.png">
<span class="postMSG">lol hope this works</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-2.png">
<span class="postMSG">this is a second tweet</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-3.png">
<span class="postMSG">third tweet</span>
</div>
<ul>
<li v-for="post in posts">{{ post.message }}</li>
</ul>
<!-- all posts below this are copies of the above -->
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-1.png">
<span class="postMSG">lol hope this works</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-2.png">
<span class="postMSG">this is a second tweet</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-3.png">
<span class="postMSG">third tweet</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-1.png">
<span class="postMSG">lol hope this works</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-2.png">
<span class="postMSG">this is a second tweet</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-3.png">
<span class="postMSG">third tweet</span>
</div>
</div>
</template>

Expand All @@ -46,7 +13,10 @@
props: {
msg: String
}
}
}
</script>

<style>
Expand All @@ -62,4 +32,18 @@
overflow-y: scroll;
}
</style>
</style>


<!-- <div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-1.png">
<span class="postMSG">lol hope this works</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-2.png">
<span class="postMSG">this is a second tweet</span>
</div>
<div class="post">
<img class="postPFP" src="../assets/junk-tweet-pfp-3.png">
<span class="postMSG">third tweet</span>
</div> -->
10 changes: 10 additions & 0 deletions final/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ new Vue({
});
}
}).$mount('#app')

/*var app = new Vue ({
el: '#postLog',
data: {
posts: [
{ message: "first" },
{ message: "second" },
{ message: "third" }]
}
})*/

0 comments on commit 51475e9

Please sign in to comment.