@hellobetterdigitalnz/selwynui 0.0.1-3 → 0.0.1-4
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/package.json +1 -1
- package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +16 -1
- package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +18 -3
- package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +35 -1
- package/src/Components/Form/Button/button.module.scss +0 -1
- package/src/Components/Layout/HeroBanner/heroBanner.module.scss +54 -15
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import React from "react"
|
|
|
3
3
|
import { Meta, StoryObj } from "@storybook/react-vite";
|
|
4
4
|
import ImageContent from "./ImageContent";
|
|
5
5
|
import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
|
|
6
|
+
import Button from "../../Form/Button/Button";
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
const meta: Meta = {
|
|
@@ -29,7 +30,13 @@ const ImageContentTemplate: Story = {
|
|
|
29
30
|
pillar={'live'}
|
|
30
31
|
level={'light'}
|
|
31
32
|
>
|
|
32
|
-
<ImageContent
|
|
33
|
+
<ImageContent
|
|
34
|
+
title={'Lorem'}
|
|
35
|
+
boldTitle={'ipsum dolor'}
|
|
36
|
+
content={'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat'}
|
|
37
|
+
action={<Button style={'solid'} pillar={'live'} label={'LOREM IPSUM'}/>}
|
|
38
|
+
alignment={'left'}
|
|
39
|
+
/>
|
|
33
40
|
</ElementHolder>
|
|
34
41
|
</>
|
|
35
42
|
)
|
|
@@ -59,6 +66,11 @@ const ImageContentMaskedTemplate: Story = {
|
|
|
59
66
|
'https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg',
|
|
60
67
|
],
|
|
61
68
|
}}
|
|
69
|
+
title={'Lorem'}
|
|
70
|
+
boldTitle={'ipsum dolor'}
|
|
71
|
+
displayFullLogo={false}
|
|
72
|
+
content={'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat'}
|
|
73
|
+
action={<Button style={'solid'} pillar={'taste'} level={"secondary"} label={'LOREM IPSUM'}/>}
|
|
62
74
|
/>
|
|
63
75
|
</ElementHolder>
|
|
64
76
|
</>
|
|
@@ -100,6 +112,8 @@ const ImageContentFullTemplate: Story = {
|
|
|
100
112
|
}
|
|
101
113
|
]}
|
|
102
114
|
imageBorder={'top'}
|
|
115
|
+
alignment={'left'}
|
|
116
|
+
imageSrc={'https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg'}
|
|
103
117
|
/>
|
|
104
118
|
</ElementHolder>
|
|
105
119
|
<ElementHolder
|
|
@@ -130,6 +144,7 @@ const ImageContentFullTemplate: Story = {
|
|
|
130
144
|
label:'What are you doing'
|
|
131
145
|
}
|
|
132
146
|
]}
|
|
147
|
+
imageSrc={'https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg'}
|
|
133
148
|
/>
|
|
134
149
|
</ElementHolder>
|
|
135
150
|
</>
|
|
@@ -37,7 +37,14 @@ const ImageContent = (props: ImageContentProps) => {
|
|
|
37
37
|
<div className={styles.contentWrapper}>
|
|
38
38
|
<div className={styles.pillarlogo}>
|
|
39
39
|
<PillarLogo brandPillar={pillar} brandFullLogo={displayFullLogo}/>
|
|
40
|
-
{<p>
|
|
40
|
+
{!displayFullLogo && <p>
|
|
41
|
+
{pillar === "main" && "Visit"}
|
|
42
|
+
{pillar === "live" && "Live"}
|
|
43
|
+
{pillar === "visit" && "Vist"}
|
|
44
|
+
{pillar === "taste" && "Taste"}
|
|
45
|
+
{pillar === "business" && "Business"}
|
|
46
|
+
{pillar === "participate" && "Participate"}
|
|
47
|
+
</p>}
|
|
41
48
|
</div>
|
|
42
49
|
<div className={styles.title}>
|
|
43
50
|
<h3>
|
|
@@ -88,8 +95,16 @@ const ImageContent = (props: ImageContentProps) => {
|
|
|
88
95
|
{/* CONTENT */}
|
|
89
96
|
<div className={styles.content}>
|
|
90
97
|
<div className={styles.contentWrapper}>
|
|
91
|
-
<div className={styles.pillarlogo}>
|
|
98
|
+
<div className={`${styles.pillarlogo} ${!displayFullLogo ? styles.pillarlogoFull : ''}`}>
|
|
92
99
|
<PillarLogo brandPillar={pillar} brandFullLogo={displayFullLogo}/>
|
|
100
|
+
{!displayFullLogo && <p>
|
|
101
|
+
{pillar === "main" && "Visit"}
|
|
102
|
+
{pillar === "live" && "Live"}
|
|
103
|
+
{pillar === "visit" && "Vist"}
|
|
104
|
+
{pillar === "taste" && "Taste"}
|
|
105
|
+
{pillar === "business" && "Business"}
|
|
106
|
+
{pillar === "participate" && "Participate"}
|
|
107
|
+
</p>}
|
|
93
108
|
</div>
|
|
94
109
|
<div className={styles.title}>
|
|
95
110
|
<h4>{title}</h4>
|
|
@@ -134,7 +149,7 @@ const ImageContent = (props: ImageContentProps) => {
|
|
|
134
149
|
<p>{content}</p>
|
|
135
150
|
</div>}
|
|
136
151
|
{action && <div className={styles.action}>
|
|
137
|
-
|
|
152
|
+
{action}
|
|
138
153
|
</div>}
|
|
139
154
|
</div>
|
|
140
155
|
</div>
|
|
@@ -100,8 +100,24 @@
|
|
|
100
100
|
&.maskedImageContent{
|
|
101
101
|
|
|
102
102
|
.pillarlogo{
|
|
103
|
+
display: flex;
|
|
103
104
|
margin-bottom: 48px;
|
|
105
|
+
align-items: center;
|
|
104
106
|
|
|
107
|
+
p{
|
|
108
|
+
margin-left: 16px;
|
|
109
|
+
font-size: 18px;
|
|
110
|
+
font-style: normal;
|
|
111
|
+
font-weight: 700;
|
|
112
|
+
line-height: 140%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.pillarlogoFull{
|
|
116
|
+
svg{
|
|
117
|
+
width: 32px;
|
|
118
|
+
height: 32px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
105
121
|
svg{
|
|
106
122
|
width: 160px;
|
|
107
123
|
height: 54px;
|
|
@@ -200,7 +216,7 @@
|
|
|
200
216
|
}
|
|
201
217
|
|
|
202
218
|
.content{
|
|
203
|
-
padding-left:
|
|
219
|
+
padding-left: 0;
|
|
204
220
|
padding-right: 0;
|
|
205
221
|
}
|
|
206
222
|
|
|
@@ -336,6 +352,24 @@
|
|
|
336
352
|
.pillarlogo{
|
|
337
353
|
margin-bottom: 48px;
|
|
338
354
|
}
|
|
355
|
+
|
|
356
|
+
&.left{
|
|
357
|
+
|
|
358
|
+
.imageHolder {
|
|
359
|
+
height: 100%;
|
|
360
|
+
position: absolute;
|
|
361
|
+
width: calc(50vw + 10px);
|
|
362
|
+
right: 0;
|
|
363
|
+
left: unset;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.content{
|
|
367
|
+
padding-left: 198px;
|
|
368
|
+
padding-right: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
}
|
|
372
|
+
|
|
339
373
|
}
|
|
340
374
|
|
|
341
375
|
}
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
width:
|
|
73
|
-
padding:
|
|
72
|
+
width: 100%;
|
|
73
|
+
padding: 72px 0 32px 0;
|
|
74
74
|
color: var(--color-text);
|
|
75
75
|
|
|
76
76
|
h1{
|
|
@@ -89,28 +89,26 @@
|
|
|
89
89
|
font-size: 24px;
|
|
90
90
|
line-height: 1.3;
|
|
91
91
|
font-weight: 400;
|
|
92
|
-
margin-top:
|
|
92
|
+
margin-top: 72px;
|
|
93
93
|
max-width: 604px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.heroImg{
|
|
99
|
-
position: absolute;
|
|
100
|
-
right: 0;
|
|
101
|
-
width: 50%;
|
|
102
|
-
height: 100%;
|
|
103
99
|
border-radius: 500px 0 0 0;
|
|
104
100
|
overflow: hidden;
|
|
101
|
+
width: calc(100% + 28px);
|
|
102
|
+
margin-left: -14px;
|
|
103
|
+
margin-right: -14px;
|
|
105
104
|
|
|
106
105
|
img{
|
|
107
|
-
width: 100%;
|
|
108
106
|
height: 100%;
|
|
107
|
+
width: 100%;
|
|
109
108
|
object-fit: cover;
|
|
110
109
|
object-position: center;
|
|
110
|
+
min-height: 360px;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
112
|
}
|
|
115
113
|
|
|
116
114
|
|
|
@@ -129,7 +127,7 @@
|
|
|
129
127
|
display: flex;
|
|
130
128
|
flex-direction: column;
|
|
131
129
|
justify-content: center;
|
|
132
|
-
width:
|
|
130
|
+
width: 100%;
|
|
133
131
|
color: var(--color-text);
|
|
134
132
|
padding: 100px 0;
|
|
135
133
|
|
|
@@ -156,12 +154,11 @@
|
|
|
156
154
|
}
|
|
157
155
|
|
|
158
156
|
.heroImg{
|
|
159
|
-
position: absolute;
|
|
160
|
-
right: 0;
|
|
161
|
-
width: 50%;
|
|
162
|
-
height: 100%;
|
|
163
157
|
border-radius: 500px 0 0 0;
|
|
164
158
|
overflow: hidden;
|
|
159
|
+
width: calc(100% + 28px);
|
|
160
|
+
margin-left: -14px;
|
|
161
|
+
margin-right: -14px;
|
|
165
162
|
|
|
166
163
|
img{
|
|
167
164
|
width: 100%;
|
|
@@ -176,4 +173,46 @@
|
|
|
176
173
|
}
|
|
177
174
|
}
|
|
178
175
|
|
|
176
|
+
@media screen and (min-width: 992px) {
|
|
177
|
+
|
|
178
|
+
&Medium{
|
|
179
|
+
.heroWrapper{
|
|
180
|
+
|
|
181
|
+
.content {
|
|
182
|
+
width: 50%;
|
|
183
|
+
padding: 120px 0;
|
|
184
|
+
|
|
185
|
+
p{
|
|
186
|
+
margin-top: 90px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.heroImg{
|
|
192
|
+
margin-right: calc((100vw - 100%) / -1);
|
|
193
|
+
width: 50vw;
|
|
194
|
+
margin-left: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&Small{
|
|
201
|
+
.heroWrapper {
|
|
202
|
+
|
|
203
|
+
.content{
|
|
204
|
+
width: 50%;
|
|
205
|
+
padding: 10px 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.heroImg {
|
|
209
|
+
margin-right: calc((100vw - 100%) / -1);
|
|
210
|
+
width: 50vw;
|
|
211
|
+
margin-left: 0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
179
218
|
}
|