@progressive-development/pd-page 0.0.62 → 0.1.0
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 +6 -5
- package/src/PdContactUs.js +2 -2
- package/src/PdFooter.js +2 -2
- package/src/PdMenu.js +2 -2
- package/src/PdTeaser.js +2 -2
- package/src/PdTeaserContent.js +19 -16
- package/stories/teaser.stories.js +1 -1
- package/src/shared-global-styles.js +0 -43
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Progressive development page helper, teaser, menu, footer.",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "PD Progressive Development",
|
|
6
|
-
"version": "0.0
|
|
6
|
+
"version": "0.1.0",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"storybook:build": "npm run analyze -- --exclude dist && build-storybook"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@progressive-development/pd-contact": "0.
|
|
21
|
-
"@progressive-development/pd-dialog": "0.
|
|
22
|
-
"@progressive-development/pd-forms": "^0.1.
|
|
23
|
-
"@progressive-development/pd-icon": "^0.1.
|
|
20
|
+
"@progressive-development/pd-contact": "0.1.1",
|
|
21
|
+
"@progressive-development/pd-dialog": "0.1.1",
|
|
22
|
+
"@progressive-development/pd-forms": "^0.1.5",
|
|
23
|
+
"@progressive-development/pd-icon": "^0.1.9",
|
|
24
|
+
"@progressive-development/pd-shared-styles": "^0.1.1",
|
|
24
25
|
"lit": "^2.2.0",
|
|
25
26
|
"pwa-helpers": "^0.9.1"
|
|
26
27
|
},
|
package/src/PdContactUs.js
CHANGED
|
@@ -12,7 +12,7 @@ import '@progressive-development/pd-forms/pd-input.js';
|
|
|
12
12
|
import '@progressive-development/pd-forms/pd-input-area.js';
|
|
13
13
|
import '@progressive-development/pd-contact/pd-contact.js';
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* An example element.
|
|
@@ -28,7 +28,7 @@ export class PdContactUs extends LitElement {
|
|
|
28
28
|
|
|
29
29
|
static get styles() {
|
|
30
30
|
return [
|
|
31
|
-
|
|
31
|
+
PDColorStyles, PDFontStyles,
|
|
32
32
|
css`
|
|
33
33
|
:host {
|
|
34
34
|
|
package/src/PdFooter.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { LitElement, html, css } from 'lit';
|
|
9
|
-
import {
|
|
9
|
+
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* An example element.
|
|
@@ -31,7 +31,7 @@ export class PdFooter extends LitElement {
|
|
|
31
31
|
|
|
32
32
|
static get styles() {
|
|
33
33
|
return [
|
|
34
|
-
|
|
34
|
+
PDColorStyles, PDFontStyles,
|
|
35
35
|
css`
|
|
36
36
|
:host {
|
|
37
37
|
display: flex;
|
package/src/PdMenu.js
CHANGED
|
@@ -10,7 +10,7 @@ import { installMediaQueryWatcher } from 'pwa-helpers/media-query.js';
|
|
|
10
10
|
import { ICON_TOOGLE_ARROW as burgerIcon } from '@progressive-development/pd-icon/src/PdIcon.js';
|
|
11
11
|
import '@progressive-development/pd-icon/pd-icon.js';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* An example element.
|
|
@@ -27,7 +27,7 @@ export class PdMenu extends LitElement {
|
|
|
27
27
|
|
|
28
28
|
static get styles() {
|
|
29
29
|
return [
|
|
30
|
-
|
|
30
|
+
PDColorStyles, PDFontStyles,
|
|
31
31
|
css`
|
|
32
32
|
|
|
33
33
|
:host {
|
package/src/PdTeaser.js
CHANGED
|
@@ -7,7 +7,7 @@ import { LitElement, html, css } from 'lit';
|
|
|
7
7
|
|
|
8
8
|
import '@progressive-development/pd-icon/pd-icon.js';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { PDColorStyles } from '@progressive-development/pd-shared-styles';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* An example element.
|
|
@@ -23,7 +23,7 @@ export class PdTeaser extends LitElement {
|
|
|
23
23
|
|
|
24
24
|
static get styles() {
|
|
25
25
|
return [
|
|
26
|
-
|
|
26
|
+
PDColorStyles,
|
|
27
27
|
css`
|
|
28
28
|
:host {
|
|
29
29
|
|
package/src/PdTeaserContent.js
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import { LitElement, html, css } from 'lit';
|
|
7
7
|
|
|
8
|
+
import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* An example element.
|
|
10
12
|
*
|
|
@@ -17,12 +19,14 @@ export class PdTeaserContent extends LitElement {
|
|
|
17
19
|
* @event book-date
|
|
18
20
|
*/
|
|
19
21
|
|
|
20
|
-
static get styles() {
|
|
21
|
-
return
|
|
22
|
+
static get styles() {
|
|
23
|
+
return [
|
|
24
|
+
PDColorStyles, PDFontStyles,
|
|
25
|
+
css`
|
|
22
26
|
:host {
|
|
23
|
-
--my-background: var(--
|
|
24
|
-
--my-background-size: var(--
|
|
25
|
-
--my-background-position: var(--
|
|
27
|
+
--my-background: var(--pd-teaser-image);
|
|
28
|
+
--my-background-size: var(--pd-teaser-image-size, auto);
|
|
29
|
+
--my-background-position: var(--pd-teaser-image-position, 100% 50%);
|
|
26
30
|
|
|
27
31
|
display: grid;
|
|
28
32
|
grid-template-columns: repeat(15, 1fr);
|
|
@@ -76,10 +80,10 @@ export class PdTeaserContent extends LitElement {
|
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
h1 {
|
|
79
|
-
color:
|
|
80
|
-
font-size: 2.
|
|
81
|
-
font-family:
|
|
82
|
-
line-height: 1.
|
|
83
|
+
color: var(--pd-teaser-font-col, var(--pd-default-bg-col));
|
|
84
|
+
font-size: var(--pd-teaser-font-title-size, 2.2em);
|
|
85
|
+
font-family: var(--pd-teaser-font-family, var(--pd-default-font-title-family));
|
|
86
|
+
line-height: 1.4em;
|
|
83
87
|
margin-top: 0;
|
|
84
88
|
margin-bottom: 0.5rem;
|
|
85
89
|
}
|
|
@@ -89,16 +93,15 @@ export class PdTeaserContent extends LitElement {
|
|
|
89
93
|
display: block;
|
|
90
94
|
width: 2.5rem;
|
|
91
95
|
height: 0.125rem;
|
|
92
|
-
background:
|
|
96
|
+
background: var(--pd-teaser-font-col, var(--pd-default-light-col));
|
|
93
97
|
margin: 1rem 0;
|
|
94
|
-
opacity: 0.5;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
p {
|
|
98
|
-
color:
|
|
99
|
-
font-size: 1.5rem;
|
|
100
|
-
font-family:
|
|
101
|
-
line-height: 1.
|
|
101
|
+
color: var(--pd-teaser-font-col, var(--pd-default-bg-col));;
|
|
102
|
+
font-size: var(--pd-teaser-font-subtitletitle-size, 1.5rem);
|
|
103
|
+
font-family: var(--pd-teaser-font-family, var(--pd-default-font-content-family));
|
|
104
|
+
line-height: var(--pd-teaser-font-subtitletitle-size, 1.5rem);
|
|
102
105
|
margin-top: 0;
|
|
103
106
|
margin-bottom: 1rem;
|
|
104
107
|
}
|
|
@@ -187,7 +190,7 @@ export class PdTeaserContent extends LitElement {
|
|
|
187
190
|
line-height: 1;
|
|
188
191
|
}
|
|
189
192
|
}
|
|
190
|
-
|
|
193
|
+
`];
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
static get properties() {
|
|
@@ -15,7 +15,7 @@ const getTeaser = () => html`
|
|
|
15
15
|
<pd-teaser-content
|
|
16
16
|
slot="t1"
|
|
17
17
|
primaryTxt="Boek nu uw goedkoopste serviceafspraak."
|
|
18
|
-
secondaryTxt="Lage kosten met snelle reactietijden."
|
|
18
|
+
secondaryTxt="Lage kosten met snelle reactietijden. Und das kann aber auch mal läönger werden, wenn es sein muss."
|
|
19
19
|
style="--squi-teaser-image: url('/images/hero_1.svg');"
|
|
20
20
|
>
|
|
21
21
|
</pd-teaser-content>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const SharedGlobalStyles = css`
|
|
9
|
-
|
|
10
|
-
:host {
|
|
11
|
-
/**
|
|
12
|
-
* Set default fonts for all pd-components.
|
|
13
|
-
* Use content, title and input categories for fonts.
|
|
14
|
-
*/
|
|
15
|
-
--pd-default-font-title-family: var(--app-font-title-family);
|
|
16
|
-
--pd-default-font-content-family: var(--app-font-content-family);
|
|
17
|
-
--pd-default-font-input-family: var(--app-font-input-family);
|
|
18
|
-
|
|
19
|
-
--pd-default-font-title-col: var(--app-font-title-col, #0A3A48);
|
|
20
|
-
--pd-default-font-content-col: var(--app-font-content-col, #353738);
|
|
21
|
-
--pd-default-font-input-col: var(--app-font-input-col, #353738);
|
|
22
|
-
|
|
23
|
-
--pd-default-font-content-size: var(--app-font-content-size, 1em);
|
|
24
|
-
--pd-default-font-input-size: var(--app-font-input-size, 1em);
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Set default colors for all pd-components
|
|
28
|
-
*/
|
|
29
|
-
--pd-default-col: var(--app-primary-col, #067394);
|
|
30
|
-
--pd-default-light-col: var(--app-primary-light-col, #AFC1D2);
|
|
31
|
-
--pd-default-dark-col: var(--app-primary-dark-col, #0A3A48);
|
|
32
|
-
--pd-default-bg-col: var(--app-primary-bg-col, #fefefe);
|
|
33
|
-
|
|
34
|
-
--pd-default-hover-col: var(--app-hover-col, #ffc857);
|
|
35
|
-
--pd-default-error-col: var(--app-error-col, #cc2029);
|
|
36
|
-
--pd-default-error-light-col: var(--app-error-light-col, #ffe8e8);
|
|
37
|
-
--pd-default-success-col: var(--app-success-col, #42a01c);
|
|
38
|
-
--pd-default-success-light-col: var(--app-success-light-col, #f5ffe8);
|
|
39
|
-
--pd-default-disabled-col: var(--app-disabled-col, #888585);
|
|
40
|
-
--pd-default-disabled-light-col: var(--app-disabled-light-col, lightgrey);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
`;
|