From 6ed6802119f8345e7feefc435e9e091bb7f957dc Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Wed, 14 Aug 2024 09:41:27 +0000 Subject: [PATCH] feat: add LoginImage component --- components.d.ts | 1 + .../images/illustrations/login-image-dark.svg | 31 +++++ .../illustrations/login-image-light.svg | 31 +++++ src/components/Login/LoginImage.vue | 113 ++++++++++++++++++ .../components/Login/LoginImage.stories.js | 28 +++++ 5 files changed, 204 insertions(+) create mode 100644 src/assets/images/illustrations/login-image-dark.svg create mode 100644 src/assets/images/illustrations/login-image-light.svg create mode 100644 src/components/Login/LoginImage.vue create mode 100644 src/stories/components/Login/LoginImage.stories.js diff --git a/components.d.ts b/components.d.ts index 11041f37a2..25a7036b05 100644 --- a/components.d.ts +++ b/components.d.ts @@ -299,6 +299,7 @@ declare module 'vue' { LinkedDocumentListEntry: typeof import('./src/components/LinkedDocument/LinkedDocumentListEntry.vue')['default'] LinkedDocumentSection: typeof import('./src/components/LinkedDocument/LinkedDocumentSection.vue')['default'] LocalesMenu: typeof import('./src/components/LocalesMenu.vue')['default'] + LoginImage: typeof import('./src/components/Login/LoginImage.vue')['default'] MountedDataLocation: typeof import('./src/components/MountedDataLocation.vue')['default'] NamedEntityButton: typeof import('./src/components/NamedEntity/NamedEntityButton.vue')['default'] NamedEntityInContext: typeof import('./src/components/NamedEntityInContext.vue')['default'] diff --git a/src/assets/images/illustrations/login-image-dark.svg b/src/assets/images/illustrations/login-image-dark.svg new file mode 100644 index 0000000000..f0a4bf2915 --- /dev/null +++ b/src/assets/images/illustrations/login-image-dark.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/illustrations/login-image-light.svg b/src/assets/images/illustrations/login-image-light.svg new file mode 100644 index 0000000000..6ab1f9243d --- /dev/null +++ b/src/assets/images/illustrations/login-image-light.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/Login/LoginImage.vue b/src/components/Login/LoginImage.vue new file mode 100644 index 0000000000..59cc0d7f96 --- /dev/null +++ b/src/components/Login/LoginImage.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/stories/components/Login/LoginImage.stories.js b/src/stories/components/Login/LoginImage.stories.js new file mode 100644 index 0000000000..3c7c7eb2d0 --- /dev/null +++ b/src/stories/components/Login/LoginImage.stories.js @@ -0,0 +1,28 @@ +import { ref } from 'vue' + +import ButtonIcon from '@/components/Button/ButtonIcon' +import LoginImage from '@/components/Login/LoginImage' + +export default { + title: 'Components/Login/LoginImage', + tags: ['autodocs'], + component: LoginImage, + render: () => ({ + components: { + ButtonIcon, + LoginImage + }, + setup() { + const image = ref(null) + return { image } + }, + template: ` +
+ + +
+ ` + }) +} + +export const Default = {}