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-02-08 prj-cmp-01-start.../src/App.vue

50 lines
999 B
Vue
Raw Normal View History

2021-02-08 12:00:06 +01:00
<template>
2021-02-08 14:02:58 +01:00
<the-header></the-header>
<stored-resources :stored-resources="storedResources"></stored-resources>
2021-02-08 12:00:06 +01:00
</template>
<script>
2021-02-08 14:16:56 +01:00
import TheHeader from './components/layouts/TheHeader';
import storedResources from './components/resources/StoredResources';
2021-02-08 12:00:06 +01:00
export default {
components: {
2021-02-08 14:02:58 +01:00
storedResources,
TheHeader
},
2021-02-08 12:00:06 +01:00
data() {
return {
storedResources: [
{
id: 'official-guide',
title: 'Oficial Guide',
description: 'The official documentation for Vue.js.',
link: 'https://vuejs.org'
},
{
id: 'duckduckgo',
title: 'Duckduckgo',
description: 'A search engine that values privacy.',
link: 'https://duckduckgo.com'
}
]
};
}
};
</script>
2021-02-08 12:19:22 +01:00
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
* {
box-sizing: border-box;
}
html {
font-family: 'Roboto', sans-serif;
}
body {
margin: 0;
}
</style>