Cristiano Magro
2024-12-28 fb09dca31f9a64ca4287579006014157a3d8156c
07 - development setup/vue-cli-01-a-new-vue-project/src/App.vue
@@ -1,42 +1,49 @@
<template>
    <section>
        <header>
        <h1>My friends</h1>
        </header>
        <ul>
            <friend-contact></friend-contact>
            <friend-contact></friend-contact>
        </ul>
    </section>
  <section>
    <header>
      <h1>My friends</h1>
    </header>
    <ul>
      <friend-contact
      name="Manuel Lorenz"
      phone-number="123"
      email-address="cicio@ciccio.it"
      is-favorite="1"
      ></friend-contact>
      <friend-contact
      name="Jeany Torpedo"
      phone-number="123123"
      email-address="torpedo@ciccio.it"
      ></friend-contact>
    </ul>
  </section>
</template>
<script>
export default {
    data() {
        return {
            friends: [
                {
                    id: "manuel",
                    name: "Manuel Lorenz",
                    phone: "01234 5678 991",
                    email: "manuel@localhost.com",
                },
                {
                    id: "julie",
                    name: "Julie Jones",
                    phone: "09876 543 221",
                    email: "julie@localhost.com",
                },
            ],
        }
    },
  data() {
    return {
      friends: [
        {
          id: "manuel",
          name: "Manuel Lorenz",
          phone: "01234 5678 991",
          email: "manuel@localhost.com",
        },
        {
          id: "julie",
          name: "Julie Jones",
          phone: "09876 543 221",
          email: "julie@localhost.com",
        },
      ],
    }
  },
};
</script>
<style>
    @import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');
* {
  box-sizing: border-box;
@@ -101,5 +108,4 @@
  border-color: #ec3169;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26);
}
</style>