stuff
This commit is contained in:
commit
d5b9c54ea1
27 files changed
+900
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vue Basics</title>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<script src="https://unpkg.com/vue@next" defer></script>
|
||||
<script src="app.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<section id="assignment">
|
||||
<!-- 1) Output your name -->
|
||||
<h2>{{myName}}</h2>
|
||||
<!-- 2) Output your age -->
|
||||
<p>{{myAge}}</p>
|
||||
<!-- 3) Output your age + 5 -->
|
||||
<p>{{ agePlusFive() }}</p>
|
||||
<!-- 4) Output a random number (0 to 1) -->
|
||||
<p>{{ randomNumber() }}</p>
|
||||
<div>
|
||||
<!-- 5) Display some image you found via Google -->
|
||||
<img :src="anImageUrl" height="300" />
|
||||
</div>
|
||||
<!-- 6) Prepopulate the input field with your name via the "value" attribute -->
|
||||
<input type="text" v-model="myInput" />
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user