feat: tests with vue on html using CDN
This commit is contained in:
28
random-user-generator/index.html
Normal file
28
random-user-generator/index.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Random User Generator</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="app">
|
||||
<img :class="gender" v-bind:src="picture" v-bind:alt="firstName">
|
||||
<h1>{{firstName}} {{lastName}}</h1>
|
||||
<h3>Email: {{email}}</h3>
|
||||
<button v-on:click="getUser()" :class="gender">Get Random User</button>
|
||||
</div>
|
||||
|
||||
<script src="https://unpkg.com/vue@3"></script>
|
||||
<script src="app.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user