@dcrackel/meyersquaredui 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/meyersquaredui.cjs.js +1 -0
- package/dist/meyersquaredui.es.js +471 -0
- package/dist/style.css +1 -0
- package/package.json +61 -0
- package/src/assets/fonts/Raleway-Bold.ttf +0 -0
- package/src/assets/fonts/Raleway-Light.ttf +0 -0
- package/src/assets/fonts/Raleway-Regular.ttf +0 -0
- package/src/assets/fonts/Raleway-SemiBold.ttf +0 -0
- package/src/assets/images/m2.png +0 -0
- package/src/components/HelloWorld.vue +43 -0
- package/src/index.js +10 -0
- package/src/main.js +1 -0
- package/src/stories/Atoms/BaseButton/BaseButton.stories.js +83 -0
- package/src/stories/Atoms/BaseButton/BaseButton.vue +110 -0
- package/src/stories/Atoms/BaseText/BaseText.stories.js +55 -0
- package/src/stories/Atoms/BaseText/BaseText.vue +56 -0
- package/src/stories/Atoms/Icon/Icon.stories.js +44 -0
- package/src/stories/Atoms/Icon/Icon.vue +47 -0
- package/src/stories/Atoms/InputField/InputField.stories.js +26 -0
- package/src/stories/Atoms/InputField/InputField.vue +29 -0
- package/src/stories/Configure.mdx +7 -0
- package/src/stories/Molecules/SearchBox/SearchBox.vue +29 -0
- package/src/stories/Molecules/SearchBox/Searchbox.stories.js +30 -0
- package/src/stories/Organisms/Headers/Header.stories.js +17 -0
- package/src/stories/Organisms/Headers/Header.vue +63 -0
- package/src/stories/Organisms/HeroBanners/HomePage/HeroBanner.stories.js +29 -0
- package/src/stories/Organisms/HeroBanners/HomePage/HeroBanner.vue +86 -0
- package/src/stories/Templates/HomePage/TestPage.stories.js +22 -0
- package/src/stories/Templates/HomePage/TestPage.vue +39 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section class="relative w-full h-3/4 flex justify-center bg-primary m-0">
|
|
3
|
+
<!-- Spacer -->
|
|
4
|
+
<div class="hidden md:block w-36 bg-primary"></div>
|
|
5
|
+
|
|
6
|
+
<!-- Image -->
|
|
7
|
+
<div class="relative w-full border-b border-l border-r border-lineGrey">
|
|
8
|
+
<img :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover" />
|
|
9
|
+
|
|
10
|
+
<!-- Text Overlay for Desktop -->
|
|
11
|
+
<section class="hidden md:flex absolute inset-0 items-center justify-start px-8">
|
|
12
|
+
<div class="text-left text-white max-w-lg">
|
|
13
|
+
<BaseText color="secondary" tag="h1" size="4xl" weight="bold" class="mb-4">{{ title }}</BaseText>
|
|
14
|
+
<BaseText color="secondary" tag="p" size="lg" weight="normal" class="mb-6">{{ description }}</BaseText>
|
|
15
|
+
<BaseButton
|
|
16
|
+
:label="buttonLabel"
|
|
17
|
+
color="secondary"
|
|
18
|
+
border="gradient1"
|
|
19
|
+
@click="onClick"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<!-- Spacer -->
|
|
26
|
+
<div class="hidden md:block w-36 bg-primary"></div>
|
|
27
|
+
</section>
|
|
28
|
+
|
|
29
|
+
<!-- Desktop Footer Border Section -->
|
|
30
|
+
<section class="hidden md:flex border-t border-lineGrey w-full bg-primary">
|
|
31
|
+
<div class="hidden md:block w-36 bg-primary"></div>
|
|
32
|
+
<div class="relative w-full border-b border-l border-r border-lineGrey h-36"></div>
|
|
33
|
+
<div class="hidden md:block w-36 bg-primary"></div>
|
|
34
|
+
</section>
|
|
35
|
+
|
|
36
|
+
<!-- Mobile Overlay -->
|
|
37
|
+
<section class="flex justify-center md:hidden text-left bg-primary w-full">
|
|
38
|
+
<div class="w-full px-6 py-8 text-center">
|
|
39
|
+
<BaseText color="secondary" tag="h1" size="2xl" weight="bold" class="mb-2">{{ title }}</BaseText>
|
|
40
|
+
<BaseText color="secondary" tag="p" size="sm" weight="normal" class="mb-6">{{ description }}</BaseText>
|
|
41
|
+
<BaseButton
|
|
42
|
+
:label="buttonLabel"
|
|
43
|
+
color="secondary"
|
|
44
|
+
border="gradient1"
|
|
45
|
+
class="w-1/2 m-auto"
|
|
46
|
+
@click="onClick"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
</section>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script>
|
|
53
|
+
import BaseButton from '../../../Atoms/BaseButton/BaseButton.vue';
|
|
54
|
+
import BaseText from '../../../Atoms/BaseText/BaseText.vue';
|
|
55
|
+
|
|
56
|
+
export default {
|
|
57
|
+
name: 'HeroBanner',
|
|
58
|
+
components: {
|
|
59
|
+
BaseText,
|
|
60
|
+
BaseButton,
|
|
61
|
+
},
|
|
62
|
+
props: {
|
|
63
|
+
imageSrc: {
|
|
64
|
+
type: String,
|
|
65
|
+
required: true,
|
|
66
|
+
},
|
|
67
|
+
title: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: true,
|
|
70
|
+
},
|
|
71
|
+
description: {
|
|
72
|
+
type: String,
|
|
73
|
+
required: true,
|
|
74
|
+
},
|
|
75
|
+
buttonLabel: {
|
|
76
|
+
type: String,
|
|
77
|
+
required: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
methods: {
|
|
81
|
+
onClick() {
|
|
82
|
+
this.$emit('button-click');
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import TestLayoutPage from './TestPage.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Templates/TestLayoutPage',
|
|
5
|
+
component: TestLayoutPage,
|
|
6
|
+
argTypes: {
|
|
7
|
+
'button-click': { action: 'button-click' },
|
|
8
|
+
title: { control: 'text', description: 'Title for the HeroBanner' },
|
|
9
|
+
description: { control: 'text', description: 'Description for the HeroBanner' },
|
|
10
|
+
buttonLabel: { control: 'text', description: 'Button label for the HeroBanner' },
|
|
11
|
+
imageSrc: { control: 'text', description: 'Image source for the HeroBanner' },
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Default = {
|
|
16
|
+
args: {
|
|
17
|
+
title: 'Discover, Compete, Connect',
|
|
18
|
+
description: 'Find tournaments, explore clubs, and track your progress.',
|
|
19
|
+
buttonLabel: 'Find Out More',
|
|
20
|
+
imageSrc: 'https://meyersquared.com/images/Banner2.png',
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="m-0 w-full">
|
|
3
|
+
<Header />
|
|
4
|
+
<HeroBanner :title="title" :buttonLabel="buttonLabel" :description="description" :imageSrc="imageSrc" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import HeroBanner from "../../Organisms/HeroBanners/HomePage/HeroBanner.vue";
|
|
11
|
+
import Header from "../../Organisms/Headers/Header.vue";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: 'TestLayoutPage',
|
|
15
|
+
components: {
|
|
16
|
+
Header,
|
|
17
|
+
HeroBanner,
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
title: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'Hero Banner Title'
|
|
23
|
+
},
|
|
24
|
+
description: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'This is the description that goes under the hero banner.'
|
|
27
|
+
},
|
|
28
|
+
buttonLabel: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: 'Click Here'
|
|
31
|
+
},
|
|
32
|
+
imageSrc: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: 'https://meyersquared.com/images/Banner2.png'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
</script>
|