Skip to content
Permalink
9d2e88d9ac
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
42 lines (35 sloc) 1.07 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cocktails</title>
<!-- <link rel="stylesheet" href="css/style.css"> -->
<style>
section{
display: flex;
}
#SearchBar{
margin: 5px;
}
</style>
</head>
<body>
<main id="vue-app">
<div id="SearchBar">
<input v-model="search" type="text" placeholder="Enter cocktail name" @keyup.enter="Search()">
<button class="btn btn-primary" @click="Search()">Search</button>
<hr>
</div>
<section v-if=cocktails.length v-for="cocktail of cocktails">
<div class="drink">
<img :src="cocktail.strDrinkThumb" alt="">
<h2>{{cocktail.strDrink}}</h2>
<p>{{cocktail.strInstructions}}</p>
</div>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="js/cocktails.js"></script>
</body>
</html>