This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/2021-07-30_composition-01-s.../src/App.vue

38 lines
473 B
Vue

<template>
<section class="container">
<h2>{{ userName }}</h2>
</section>
</template>
<script>
export default {
data() {
return {
userName: 'Maximilian',
};
},
};
</script>
<style>
* {
box-sizing: border-box;
}
html {
font-family: sans-serif;
}
body {
margin: 0;
}
.container {
margin: 3rem auto;
max-width: 30rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
padding: 1rem;
text-align: center;
}
</style>