Skip to content

Commit 39452dd

Browse files
Adam JahrAdam Jahr
authored andcommitted
lesson 3 ending
1 parent 8dd2042 commit 39452dd

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,26 @@
1010
</head>
1111
<body>
1212
<div id="app">
13-
<h1>Product goes here</h1>
13+
<div class="nav-bar"></div>
14+
15+
<div class="product-display">
16+
<div class="product-container">
17+
<div class="product-image">
18+
<img v-bind:src="image">
19+
</div>
20+
<div class="product-info">
21+
<h1>{{ product }}</h1>
22+
</div>
23+
</div>
24+
</div>
1425
</div>
1526

16-
<!-- Import JS -->
27+
<!-- Import App -->
1728
<script src="./main.js"></script>
29+
30+
<!-- Mount App -->
31+
<script>
32+
app.mount('#app')
33+
</script>
1834
</body>
1935
</html>

main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
const product = "Socks"
1+
const app = Vue.createApp({
2+
data() {
3+
return {
4+
product: 'Socks',
5+
image: './assets/images/socks_green.jpg'
6+
}
7+
}
8+
})

0 commit comments

Comments
 (0)