From 8afae8ea960b7162df851ad5946f4bbebd729ff3 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 29 Dec 2019 22:34:01 +0100 Subject: Basic template --- components/GoogleDriveLink.stories.js | 19 +++++++++++ components/GoogleDriveLink.vue | 60 +++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 components/GoogleDriveLink.stories.js create mode 100644 components/GoogleDriveLink.vue (limited to 'components') diff --git a/components/GoogleDriveLink.stories.js b/components/GoogleDriveLink.stories.js new file mode 100644 index 0000000..37d67e8 --- /dev/null +++ b/components/GoogleDriveLink.stories.js @@ -0,0 +1,19 @@ +import { storiesOf } from '@storybook/vue' +import { center } from '../.storybook/decorators' + +import GoogleDriveLink from './GoogleDriveLink' + +const googleDriveLink = { + text: 'Test', + link: 'https://drive.google.com/u/1' +} + +storiesOf('GoogleDriveLink', module) + .addDecorator(center) + .add('default', () => { + return { + components: { GoogleDriveLink }, + template: ``, + data: () => googleDriveLink + } + }) diff --git a/components/GoogleDriveLink.vue b/components/GoogleDriveLink.vue new file mode 100644 index 0000000..729c03d --- /dev/null +++ b/components/GoogleDriveLink.vue @@ -0,0 +1,60 @@ + + + + + -- cgit 1.4.1 From 43d71a71cce9354f1d7a6ca84e3b583b9fbf5001 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 30 Dec 2019 19:11:52 +0100 Subject: Add to page --- components/GoogleDriveLink.vue | 65 ++++++++++++++++++++++++++++++++++++------ pages/kronika/index.vue | 11 +++++-- 2 files changed, 66 insertions(+), 10 deletions(-) (limited to 'components') diff --git a/components/GoogleDriveLink.vue b/components/GoogleDriveLink.vue index 729c03d..96e3fbb 100644 --- a/components/GoogleDriveLink.vue +++ b/components/GoogleDriveLink.vue @@ -3,9 +3,11 @@
Drive
-

- {{ text }} -

+
+

+ {{ text }} +

+
@@ -31,30 +33,77 @@ export default { } - + diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue index 8142a6c..dab61ba 100644 --- a/pages/kronika/index.vue +++ b/pages/kronika/index.vue @@ -1,17 +1,24 @@