Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.13 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="es">
  3.   <head>
  4.     <!-- These lines go in the first 1024 bytes -->
  5.     <meta charset="utf-8" />
  6.     <meta http-equiv="x-ua-compatible" content="ie=edge" />
  7.     <title>Papu Music Web</title>
  8.  
  9.     <!-- References -->
  10.     <meta
  11.      name="author"
  12.      content="Siesta Web Designs - siestawebdesigns@gmail.com"
  13.    />
  14.     <meta name="description" content="Papu Music Web" />
  15.  
  16.     <!-- Configuration -->
  17.     <meta name="keywords" content="HTML CSS JS" />
  18.     <meta name="robots" content="noindex, nofollow" />
  19.  
  20.     <!-- Viewport Setup for mobile devices -->
  21.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  22.  
  23.     <!-- Favicon -->
  24.     <link href="img/favicon.ico" rel="icon" type="image/x-icon" />
  25.  
  26.     <!-- Style Sheet Links -->
  27.     <link rel="stylesheet" href="css/app.css" />
  28.     <link rel="stylesheet" href="css/simple-grid.css" />
  29.  
  30.     <!-- Axios -->
  31.     <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  32.  
  33.     <!-- VueJS -->
  34.     <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  35.   </head>
  36.  
  37.   <body>
  38.     <!-- Cabecera de la página -->
  39.     <div>
  40.       <header>
  41.         <h1>Papu Music</h1>
  42.         <h2>Espere un poquito...</h2>
  43.       </header>
  44.  
  45.       <nav id="navegacion">
  46.         <!--Este primer form es el botón home, el resto las opciones-->
  47.  
  48.         <form>
  49.           <button class="button button5" formaction="/main/index.html">
  50.             Inicio
  51.           </button>
  52.         </form>
  53.  
  54.         <form>
  55.           <button class="button button5" formaction="/main/tienda.html">
  56.             Tienda
  57.           </button>
  58.         </form>
  59.         <form>
  60.           <button class="button button5" formaction="/main/contacto.html">
  61.             Contacto
  62.           </button>
  63.         </form>
  64.         <form>
  65.           <button class="button button5" formaction="/main/nosotros.html">
  66.             Nosotros
  67.           </button>
  68.         </form>
  69.       </nav>
  70.       <div class="border1">
  71.         <div class="container mt-4" id="app">
  72.           <h3 class="center">Catálogo general de sintetizadores</h3>
  73.           <table>
  74.             <thead>
  75.               <tr>
  76.                 <th scope="col">#</th>
  77.                 <th scope="col">Marca</th>
  78.                 <th scope="col">Modelo</th>
  79.                 <th scope="col">Polifonía</th>
  80.                 <th scope="col">VCA</th>
  81.                 <th scope="col">Efectos</th>
  82.                 <th scope="col">Teclado</th>
  83.                 <th scope="col">Memoria</th>
  84.                 <th scope="col">Precio</th>
  85.               </tr>
  86.             </thead>
  87.             <tbody>
  88.               <tr v-for="sintetizadores, index in sintetizadores">
  89.                 <th scope="row">{{ index + 1 }}</th>
  90.                 <td>{{ sintetizadores.marca }}</td>
  91.                 <td>{{ sintetizadores.modelo }}</td>
  92.                 <td>{{ sintetizadores.polifonia }}</td>
  93.                 <td>{{ sintetizadores.VCA }}</td>
  94.                 <td>{{ sintetizadores.efectos }}</td>
  95.                 <td>{{ sintetizadores.teclado }}</td>
  96.                 <td>{{ sintetizadores.memoria }}</td>
  97.                 <td>{{ sintetizadores.precio }} €</td>
  98.               </tr>
  99.             </tbody>
  100.           </table>
  101.         </div>
  102.         <footer>
  103.           <p>&copy; Siesta Web Designs</p>
  104.           <p>Todos los derechos reservados</p>
  105.           <p>
  106.             <small
  107.              ><a
  108.                class="email"
  109.                href="mailto:siestawebdesigns@gmail.com?subject=Asistencia%20Técnica"
  110.                >siestawebdesigns@gmail.com</a
  111.              ></small>
  112.           </p>
  113.         </footer>
  114.       </div>
  115.     </div>
  116.     <script>
  117.       var app = new Vue({
  118.         el: "#app",
  119.         data: {
  120.           sintetizadores: []
  121.         },
  122.         mounted: function() {
  123.           axios
  124.             .get("http://localhost:3000/sintetizadores")
  125.             .then(response => {
  126.               this.sintetizadores = response.data;
  127.               console.log(response);
  128.             })
  129.             .catch(error => {
  130.               console.log(error);
  131.             });
  132.         }
  133.       });
  134.     </script>
  135.   </body>
  136. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement