12345678910111213141516171819202122232425262728293031 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" type="text/css" href="./assets/css/style.css">
- <title>Product app</title>
- </head>
- <body>
- <div class="nav-bar"></div>
- <div id="app">
- <div class="product">
- <div class="product-image">
- <a :href="link">
- <!-- bind the src attribute to the "image" property -->
- <img
- v-bind:src="image"
- :alt="description" :title="description"
- /><!-- :attr is shortcut for v-bind:attr -->
- </a>
- </div>
- <div class="product-info">
- <h1>{{ product }}</h1>
- </div>
- </div>
- </div>
- <script src="./assets/js/vue.js"></script>
- <script src="main.js"></script>
- </body>
- </html>
|