Session 4

This commit is contained in:
marcgauch committed 2023-01-23 22:00:31 +01:00
1 parent 65869fbe87
commit f4babc01a9
9 files changed
+483

No files matched your search

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TITLE</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="app">
<p v-if="isVisible">YOU'RE FAMOUS</p>
<section>
Name:<input type="text" v-model="name" /><br />
Firstname:<input type="text" v-model="firstname" /><br />
Date of Birth<input type="date" v-model="dateOfBirth" /><br />
<button @click="addContact">Add to my contacts</button>
</section>
<p v-for="contact in contacts">
{{contact.firstname}}, {{contact.name}}<br />
{{contact.dateOfBirth}}
</p>
</section>
</body>
</html>