@progressive-development/pd-page 0.0.14 → 0.0.16

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 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.14",
6
+ "version": "0.0.16",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -18,10 +18,10 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "lit": "^2.0.2",
21
- "@progressive-development/pd-contact": "0.0.3",
22
- "@progressive-development/pd-forms": "0.0.14",
23
- "@progressive-development/pd-dialog": "0.0.8",
24
- "@progressive-development/pd-icon": "0.0.4"
21
+ "@progressive-development/pd-contact": "0.0.5",
22
+ "@progressive-development/pd-forms": "0.0.16",
23
+ "@progressive-development/pd-dialog": "0.0.9",
24
+ "@progressive-development/pd-icon": "0.0.7"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@custom-elements-manifest/analyzer": "^0.4.17",
package/src/PdFooter.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable lit-a11y/click-events-have-key-events */
1
2
  /* eslint-disable lit-a11y/anchor-is-valid */
2
3
  /**
3
4
  * @license
@@ -83,6 +84,7 @@ export class PdFooter extends LitElement {
83
84
  .left-content p {
84
85
  color: #2bcadb;
85
86
  font-size: 1.1rem;
87
+ white-space: nowrap;
86
88
  }
87
89
 
88
90
  .version {
@@ -91,19 +93,29 @@ export class PdFooter extends LitElement {
91
93
  font-size: 0.9rem;
92
94
  }
93
95
 
96
+ .madeBy {
97
+ color: white;
98
+ font-size: 0.9rem;
99
+ }
100
+
101
+ .madeBy:hover {
102
+ border-bottom: 1px solid #ffc857;
103
+ }
104
+
105
+ .madeBy:hover,
94
106
  .item a:hover {
95
107
  color: #ffc857;
96
108
  cursor: pointer;
97
- /*border-bottom: 1px solid #ffc857;*/
98
109
  }
99
110
 
100
111
  /* Size Elements for small width */
101
- @media (max-width: 440px) {
102
- .item {
103
- display: none;
112
+ @media (max-width: 450px) {
113
+ .right-content ul {
114
+ height: 40%;
104
115
  }
105
- ul {
106
- justify-content: left;
116
+
117
+ .right-content {
118
+ width: 30%;
107
119
  }
108
120
  }
109
121
  `;
@@ -118,6 +130,7 @@ export class PdFooter extends LitElement {
118
130
  constructor() {
119
131
  super();
120
132
  this.version = undefined;
133
+ this._mailTo = 'info@progressive-development.com';
121
134
  }
122
135
 
123
136
  firstUpdated() {}
@@ -126,7 +139,11 @@ export class PdFooter extends LitElement {
126
139
  return html`
127
140
  <div class="left-content">
128
141
  <p>
129
- © ticomi technics<br /><span class="version">${this.version}</span>
142
+ © ticomi technics<br />
143
+ <span class="version">${this.version} development by</span><br />
144
+ <span class="madeBy" @click="${this._mailToProgressiveDevelopment}"
145
+ >PD Progressive Development</span
146
+ >
130
147
  </p>
131
148
  </div>
132
149
 
@@ -138,7 +155,7 @@ export class PdFooter extends LitElement {
138
155
  console.log();
139
156
  }}"
140
157
  @click="${this._legalClicked}"
141
- >Verkoopvoorwaarden</a
158
+ >Voorwaarden</a
142
159
  >
143
160
  </li>
144
161
  <li class="item">
@@ -167,6 +184,10 @@ export class PdFooter extends LitElement {
167
184
  `;
168
185
  }
169
186
 
187
+ _mailToProgressiveDevelopment() {
188
+ window.location.href = `mailto:${this._mailTo}`;
189
+ }
190
+
170
191
  _legalClicked() {
171
192
  this.shadowRoot.getElementById('legalPopupId').showPopup();
172
193
  }
package/src/PdMenu.js CHANGED
@@ -63,7 +63,7 @@ export class PdMenu extends LitElement {
63
63
  font-family: Oswald, sans-serif;
64
64
  font-size: 1.2rem;
65
65
 
66
- --squi-icon-fill: var(--my-header-text-color);
66
+ --pd-icon-fill: var(--my-header-text-color);
67
67
  }
68
68
  .item.active {
69
69
  color: #ffc857;
@@ -76,11 +76,11 @@ export class PdMenu extends LitElement {
76
76
  This is also the reason why icon-fill is defined for item, not for topMenuItem
77
77
  Erkennbar: Farbe Icon leicht unterschiedlich zu Farbe Text nach hover icon.
78
78
  */
79
- --squi-icon-fill: #ffc857;
79
+ --pd-icon-fill: #ffc857;
80
80
  }
81
81
 
82
82
  .topItemLogo {
83
- --squi-icon-size: 1.6rem;
83
+ --pd-icon-size: 1.6rem;
84
84
  --icon-transition: none;
85
85
  pointer-events: none;
86
86
  }
@@ -184,10 +184,10 @@ export class PdMenu extends LitElement {
184
184
  @click="${this._menuItemClicked}"
185
185
  >
186
186
  ${topItem.icon
187
- ? html`<squi-icon
187
+ ? html`<pd-icon
188
188
  class="topItemLogo"
189
189
  icon="${topItem.icon}"
190
- ></squi-icon>`
190
+ ></pd-icon>`
191
191
  : ''}
192
192
  ${topItem.name}
193
193
  </li>
package/src/PdTeaser.js CHANGED
@@ -66,7 +66,7 @@ export class PdTeaser extends LitElement {
66
66
  top: calc(var(--my-height) / 2);
67
67
  left: 10px;
68
68
  z-index: 1;
69
- --squi-icon-fill: white;
69
+ --pd-icon-fill: white;
70
70
  }
71
71
 
72
72
  .next {
@@ -74,7 +74,7 @@ export class PdTeaser extends LitElement {
74
74
  top: calc(var(--my-height) / 2);
75
75
  right: 10px;
76
76
  z-index: 1;
77
- --squi-icon-fill: white;
77
+ --pd-icon-fill: white;
78
78
  }
79
79
 
80
80
  .content {
@@ -226,16 +226,16 @@ export class PdTeaser extends LitElement {
226
226
  render() {
227
227
  return html`
228
228
  <div class="teaser-flex ${this._visible ? '' : 'in-active'}">
229
- <squi-icon
229
+ <pd-icon
230
230
  icon="previousArrow"
231
231
  class="previous"
232
232
  @click="${this._prevContent}"
233
- ></squi-icon>
234
- <squi-icon
233
+ ></pd-icon>
234
+ <pd-icon
235
235
  icon="nextArrow"
236
236
  class="next"
237
237
  @click="${this._nextContent}"
238
- ></squi-icon>
238
+ ></pd-icon>
239
239
 
240
240
  ${this.teaserObjects.map(
241
241
  (teaserObj, index) => html`