@porsche-design-system/components-react 4.8.0-rc.0 → 4.8.0-rc.1
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/CHANGELOG.md +9 -0
- package/package.json +2 -2
- package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
- package/skills/pds-knowledge-react/SKILL.md +14 -5
- package/skills/pds-knowledge-react/references/deprecations.md +4 -4
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/dialog.md +230 -0
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/inline.md +193 -0
- package/skills/pds-knowledge-react/references/examples/patterns/footer.md +250 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/overlay.md +152 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/stacked.md +122 -0
- package/skills/pds-knowledge-react/references/examples/patterns/popover/feature-tour.md +243 -0
- package/skills/pds-knowledge-react/references/examples/patterns/popover/local-market-switch.md +323 -0
- package/skills/pds-knowledge-react/references/examples/patterns/popover/priority-navigation.md +191 -0
- package/skills/pds-knowledge-react/references/examples/templates/admin-panel.md +397 -0
- package/skills/pds-knowledge-react/references/examples/templates/landing-page.md +529 -0
- package/skills/pds-knowledge-react/references/examples.md +48 -0
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
# Landing page
|
|
2
|
+
|
|
3
|
+
The template is designed for campaigns that require a high-impact, conversion-focused experience. It's built to capture user attention and guide them toward a singular goal, whether that's signing up for a newsletter, exploring a new model, or registering for an event.
|
|
4
|
+
|
|
5
|
+
- **Type:** Template
|
|
6
|
+
- **Components:** [`p-button`](../../components/p-button/p-button.md), [`p-button-pure`](../../components/p-button-pure/p-button-pure.md), [`p-carousel`](../../components/p-carousel/p-carousel.md), [`p-crest`](../../components/p-crest/p-crest.md), [`p-drilldown`](../../components/p-drilldown/p-drilldown.md), [`p-flag`](../../components/p-flag/p-flag.md), [`p-heading`](../../components/p-heading/p-heading.md), [`p-link`](../../components/p-link/p-link.md), [`p-link-pure`](../../components/p-link-pure/p-link-pure.md), [`p-link-tile`](../../components/p-link-tile/p-link-tile.md), [`p-select`](../../components/p-select/p-select.md), [`p-text`](../../components/p-text/p-text.md), [`p-wordmark`](../../components/p-wordmark/p-wordmark.md)
|
|
7
|
+
- **Conventions and stylesheet:** shared by all examples, see [examples.md](../../examples.md)
|
|
8
|
+
|
|
9
|
+
## Markup
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<html lang="en">
|
|
13
|
+
<body>
|
|
14
|
+
<header
|
|
15
|
+
class="z-1 grid-template absolute inset-x-0 before:absolute before:inset-[0_0_-60px_0] before:-z-1 before:pointer-events-none before:bg-fade-to-b"
|
|
16
|
+
>
|
|
17
|
+
<div class="col-wide grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] gap-fluid-md items-center min-h-[80px]">
|
|
18
|
+
<div class="flex flex-wrap gap-static-md items-center justify-start">
|
|
19
|
+
<nav aria-label="Main">
|
|
20
|
+
<p-button-pure
|
|
21
|
+
id="nav-button"
|
|
22
|
+
class="p-static-xs -m-static-xs scheme-dark"
|
|
23
|
+
type="button"
|
|
24
|
+
icon="menu-lines"
|
|
25
|
+
hide-label="{ base: true, s: false }"
|
|
26
|
+
aria="{ 'aria-haspopup': 'dialog' }"
|
|
27
|
+
>
|
|
28
|
+
Menu
|
|
29
|
+
</p-button-pure>
|
|
30
|
+
<p-drilldown id="nav-drilldown">
|
|
31
|
+
<p-drilldown-item identifier="home" label="Home">
|
|
32
|
+
<p-drilldown-link active><a href="#" aria-current="page">Home overview</a></p-drilldown-link>
|
|
33
|
+
<p-drilldown-link><a href="#">Highlights</a></p-drilldown-link>
|
|
34
|
+
<p-drilldown-item identifier="home-models" label="Models">
|
|
35
|
+
<p-drilldown-link><a href="#">Models overview</a></p-drilldown-link>
|
|
36
|
+
<p-drilldown-link><a href="#">911</a></p-drilldown-link>
|
|
37
|
+
<p-drilldown-link><a href="#">Taycan</a></p-drilldown-link>
|
|
38
|
+
</p-drilldown-item>
|
|
39
|
+
</p-drilldown-item>
|
|
40
|
+
<p-drilldown-item identifier="features" label="Features">
|
|
41
|
+
<p-drilldown-link><a href="#">Features overview</a></p-drilldown-link>
|
|
42
|
+
<p-drilldown-link><a href="#">Design</a></p-drilldown-link>
|
|
43
|
+
<p-drilldown-link><a href="#">Technology</a></p-drilldown-link>
|
|
44
|
+
</p-drilldown-item>
|
|
45
|
+
<p-drilldown-link><a href="#">Contact</a></p-drilldown-link>
|
|
46
|
+
<p-drilldown-link><a href="#features">Jump to features</a></p-drilldown-link>
|
|
47
|
+
</p-drilldown>
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
<p-crest class="sm:hidden scheme-dark" href="#"></p-crest>
|
|
51
|
+
<p-wordmark class="max-sm:hidden scheme-dark" href="#"></p-wordmark>
|
|
52
|
+
<div class="flex flex-wrap gap-static-md items-center justify-end">
|
|
53
|
+
<p-button-pure class="p-static-xs -m-static-xs scheme-dark" type="button" icon="search" hide-label="true">
|
|
54
|
+
Search
|
|
55
|
+
</p-button-pure>
|
|
56
|
+
<p-button-pure class="p-static-xs -m-static-xs scheme-dark" type="button" icon="user" hide-label="true">
|
|
57
|
+
User
|
|
58
|
+
</p-button-pure>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</header>
|
|
62
|
+
<main id="main" class="grid-template gap-y-fluid-xl pb-fluid-2xl">
|
|
63
|
+
<section
|
|
64
|
+
class="scheme-dark z-0 col-full grid grid-cols-subgrid items-end h-[clamp(480px,80vh,1000px)] relative before:absolute before:inset-[50%_0_0_0] before:z-1 before:pointer-events-none before:bg-linear-to-t before:from-canvas before:to-transparent"
|
|
65
|
+
aria-labelledby="heading-section-1"
|
|
66
|
+
>
|
|
67
|
+
<video
|
|
68
|
+
id="hero-video"
|
|
69
|
+
class="z-0 col-span-full row-span-full min-w-full w-full min-h-full h-full object-cover object-center"
|
|
70
|
+
poster="/examples/media/mood-porsche-gts.webp"
|
|
71
|
+
loop
|
|
72
|
+
muted
|
|
73
|
+
autoplay
|
|
74
|
+
playsinline
|
|
75
|
+
>
|
|
76
|
+
<source src="/examples/media/mood-porsche-gts.mp4" type="video/mp4" />
|
|
77
|
+
<source src="/examples/media/mood-porsche-gts.webm" type="video/webm" />
|
|
78
|
+
</video>
|
|
79
|
+
<div class="z-1 col-extended row-span-full mb-fluid-lg">
|
|
80
|
+
<p-heading id="heading-section-1" class="pb-fluid-md" tag="h1" size="3xl">
|
|
81
|
+
<span class="text-md block">Template</span>
|
|
82
|
+
Landing Page
|
|
83
|
+
</p-heading>
|
|
84
|
+
<p-button variant="secondary">Some label</p-button>
|
|
85
|
+
</div>
|
|
86
|
+
<p-button
|
|
87
|
+
class="z-2 col-wide place-self-end row-span-full mb-fluid-lg"
|
|
88
|
+
variant="secondary"
|
|
89
|
+
compact="true"
|
|
90
|
+
hide-label="true"
|
|
91
|
+
icon="pause"
|
|
92
|
+
id="pause-button"
|
|
93
|
+
>
|
|
94
|
+
Pause Video
|
|
95
|
+
</p-button>
|
|
96
|
+
</section>
|
|
97
|
+
<section
|
|
98
|
+
id="features"
|
|
99
|
+
class="scheme-dark col-full grid grid-cols-subgrid gap-y-fluid-md bg-canvas p-fluid-xl -mt-fluid-xl -mb-fluid-xl"
|
|
100
|
+
aria-label="Some section 2 label"
|
|
101
|
+
>
|
|
102
|
+
<div class="col-basic grid grid-cols-subgrid gap-y-fluid-md">
|
|
103
|
+
<p-link-tile
|
|
104
|
+
class="col-span-full sm:col-span-one-half"
|
|
105
|
+
href="#"
|
|
106
|
+
label="Tickets 2026"
|
|
107
|
+
description="Teaser Headline"
|
|
108
|
+
compact="true"
|
|
109
|
+
weight="regular"
|
|
110
|
+
aspect-ratio="{base: '4/3', xs: '16/9', s: '3/4', m: '1/1'}"
|
|
111
|
+
>
|
|
112
|
+
<img
|
|
113
|
+
src="/examples/media/chrono-car.webp"
|
|
114
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
115
|
+
/>
|
|
116
|
+
</p-link-tile>
|
|
117
|
+
<p-link-tile
|
|
118
|
+
class="col-span-full sm:col-span-one-half"
|
|
119
|
+
href="#"
|
|
120
|
+
label="Results"
|
|
121
|
+
description="Teaser Headline"
|
|
122
|
+
compact="true"
|
|
123
|
+
weight="regular"
|
|
124
|
+
aspect-ratio="{base: '4/3', xs: '16/9', s: '3/4', m: '1/1'}"
|
|
125
|
+
>
|
|
126
|
+
<img
|
|
127
|
+
src="/examples/media/addon.webp"
|
|
128
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
129
|
+
/>
|
|
130
|
+
</p-link-tile>
|
|
131
|
+
</div>
|
|
132
|
+
</section>
|
|
133
|
+
<section class="col-full grid grid-cols-subgrid py-fluid-xl" aria-label="Some section 3 label">
|
|
134
|
+
<p-carousel
|
|
135
|
+
class="col-span-full"
|
|
136
|
+
slides-per-page="{ base: 1, xs: 1, m: 1 }"
|
|
137
|
+
align-header="center"
|
|
138
|
+
width="extended"
|
|
139
|
+
heading="Carousel"
|
|
140
|
+
>
|
|
141
|
+
<p-link-tile
|
|
142
|
+
gradient
|
|
143
|
+
href="#"
|
|
144
|
+
label="Timeless Enthusiast"
|
|
145
|
+
description="Teaser Heading"
|
|
146
|
+
compact="true"
|
|
147
|
+
aspect-ratio="{base: '1/1', xs: '16/9'}"
|
|
148
|
+
weight="regular"
|
|
149
|
+
>
|
|
150
|
+
<img
|
|
151
|
+
src="/examples/media/interieur-1.webp"
|
|
152
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
153
|
+
/>
|
|
154
|
+
</p-link-tile>
|
|
155
|
+
<p-link-tile
|
|
156
|
+
gradient
|
|
157
|
+
href="#"
|
|
158
|
+
label="The Loyalist"
|
|
159
|
+
description="Teaser Heading"
|
|
160
|
+
compact="true"
|
|
161
|
+
aspect-ratio="{base: '1/1', xs: '16/9'}"
|
|
162
|
+
weight="regular"
|
|
163
|
+
>
|
|
164
|
+
<img
|
|
165
|
+
src="/examples/media/interieur-2.webp"
|
|
166
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
167
|
+
/>
|
|
168
|
+
</p-link-tile>
|
|
169
|
+
<p-link-tile
|
|
170
|
+
gradient
|
|
171
|
+
href="#"
|
|
172
|
+
label="Urbanist"
|
|
173
|
+
description="Teaser Heading"
|
|
174
|
+
compact="true"
|
|
175
|
+
aspect-ratio="{base: '1/1', xs: '16/9'}"
|
|
176
|
+
weight="regular"
|
|
177
|
+
>
|
|
178
|
+
<img
|
|
179
|
+
src="/examples/media/interieur-3.webp"
|
|
180
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
181
|
+
/>
|
|
182
|
+
</p-link-tile>
|
|
183
|
+
<p-link-tile
|
|
184
|
+
gradient
|
|
185
|
+
href="#"
|
|
186
|
+
label="Urbanist"
|
|
187
|
+
description="Teaser Heading"
|
|
188
|
+
compact="true"
|
|
189
|
+
aspect-ratio="{base: '1/1', xs: '16/9'}"
|
|
190
|
+
weight="regular"
|
|
191
|
+
>
|
|
192
|
+
<img
|
|
193
|
+
src="/examples/media/interieur-4.webp"
|
|
194
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
195
|
+
/>
|
|
196
|
+
</p-link-tile>
|
|
197
|
+
</p-carousel>
|
|
198
|
+
</section>
|
|
199
|
+
<section class="col-basic grid grid-cols-subgrid gap-y-fluid-xl" aria-label="Some section 4 label">
|
|
200
|
+
<div class="col-span-full grid grid-cols-subgrid gap-y-fluid-lg">
|
|
201
|
+
<img
|
|
202
|
+
class="col-span-full md:col-start-1 md:col-end-7 md:row-start-1 w-full aspect-4/3 md:aspect-3/4 object-cover rounded-3xl"
|
|
203
|
+
src="/examples/media/cockpit.webp"
|
|
204
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
205
|
+
/>
|
|
206
|
+
<div
|
|
207
|
+
class="col-span-full md:col-start-8 md:col-end-13 md:row-start-1 flex flex-col justify-center items-start"
|
|
208
|
+
>
|
|
209
|
+
<p-heading tag="h3" size="md">Some Title</p-heading>
|
|
210
|
+
<p-text class="mt-fluid-sm">
|
|
211
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
|
|
212
|
+
et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum
|
|
213
|
+
</p-text>
|
|
214
|
+
<p-text class="mt-fluid-sm" size="xs" color="contrast-medium">
|
|
215
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr
|
|
216
|
+
</p-text>
|
|
217
|
+
<p-link class="mt-fluid-lg"><a href="#">Some label</a></p-link>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="col-span-full grid grid-cols-subgrid gap-y-fluid-lg">
|
|
221
|
+
<img
|
|
222
|
+
class="col-span-full md:col-start-7 md:col-end-13 md:row-start-1 w-full aspect-4/3 md:aspect-3/4 object-cover rounded-3xl"
|
|
223
|
+
src="/examples/media/chrono.webp"
|
|
224
|
+
alt="Some alternative text for screen readers describing the media element"
|
|
225
|
+
/>
|
|
226
|
+
<div
|
|
227
|
+
class="col-span-full md:col-start-1 md:col-end-6 md:row-start-1 flex flex-col justify-center items-start"
|
|
228
|
+
>
|
|
229
|
+
<p-heading tag="h3" size="md">Some Title</p-heading>
|
|
230
|
+
<p-text class="mt-fluid-sm">
|
|
231
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
|
|
232
|
+
et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum
|
|
233
|
+
</p-text>
|
|
234
|
+
<p-text class="mt-fluid-sm" size="xs" color="contrast-medium">
|
|
235
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr
|
|
236
|
+
</p-text>
|
|
237
|
+
<p-link class="mt-fluid-lg"><a href="#">Some label</a></p-link>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
</section>
|
|
241
|
+
</main>
|
|
242
|
+
<footer class="grid-template py-fluid-lg bg-surface">
|
|
243
|
+
<form
|
|
244
|
+
class="col-extended grid xs:grid-cols-2 md:grid-cols-3 gap-fluid-md"
|
|
245
|
+
action="#"
|
|
246
|
+
aria-label="Change your delivery country"
|
|
247
|
+
>
|
|
248
|
+
<p-select name="region" value="de" label="Change your delivery country">
|
|
249
|
+
<span slot="selected" class="h-full flex items-center gap-fluid-sm grow">
|
|
250
|
+
<p-flag name="de"></p-flag>
|
|
251
|
+
Germany
|
|
252
|
+
</span>
|
|
253
|
+
<p-optgroup label="Asia">
|
|
254
|
+
<p-select-option value="cn">
|
|
255
|
+
<p-flag name="cn"></p-flag>
|
|
256
|
+
China
|
|
257
|
+
</p-select-option>
|
|
258
|
+
<p-select-option value="jp">
|
|
259
|
+
<p-flag name="jp"></p-flag>
|
|
260
|
+
Japan
|
|
261
|
+
</p-select-option>
|
|
262
|
+
<p-select-option value="kr">
|
|
263
|
+
<p-flag name="kr"></p-flag>
|
|
264
|
+
South Korea
|
|
265
|
+
</p-select-option>
|
|
266
|
+
</p-optgroup>
|
|
267
|
+
<p-optgroup label="Europe">
|
|
268
|
+
<p-select-option value="at">
|
|
269
|
+
<p-flag name="at"></p-flag>
|
|
270
|
+
Austria
|
|
271
|
+
</p-select-option>
|
|
272
|
+
<p-select-option value="fr">
|
|
273
|
+
<p-flag name="fr"></p-flag>
|
|
274
|
+
France
|
|
275
|
+
</p-select-option>
|
|
276
|
+
<p-select-option value="de">
|
|
277
|
+
<p-flag name="de"></p-flag>
|
|
278
|
+
Germany
|
|
279
|
+
</p-select-option>
|
|
280
|
+
<p-select-option value="gb">
|
|
281
|
+
<p-flag name="gb"></p-flag>
|
|
282
|
+
Great Britain
|
|
283
|
+
</p-select-option>
|
|
284
|
+
<p-select-option value="it">
|
|
285
|
+
<p-flag name="it"></p-flag>
|
|
286
|
+
Italy
|
|
287
|
+
</p-select-option>
|
|
288
|
+
<p-select-option value="pt">
|
|
289
|
+
<p-flag name="pt"></p-flag>
|
|
290
|
+
Portugal
|
|
291
|
+
</p-select-option>
|
|
292
|
+
<p-select-option value="es">
|
|
293
|
+
<p-flag name="es"></p-flag>
|
|
294
|
+
Spain
|
|
295
|
+
</p-select-option>
|
|
296
|
+
</p-optgroup>
|
|
297
|
+
<p-optgroup label="North America">
|
|
298
|
+
<p-select-option value="ca">
|
|
299
|
+
<p-flag name="ca"></p-flag>
|
|
300
|
+
Canada
|
|
301
|
+
</p-select-option>
|
|
302
|
+
<p-select-option value="us">
|
|
303
|
+
<p-flag name="us"></p-flag>
|
|
304
|
+
USA
|
|
305
|
+
</p-select-option>
|
|
306
|
+
</p-optgroup>
|
|
307
|
+
</p-select>
|
|
308
|
+
</form>
|
|
309
|
+
<nav
|
|
310
|
+
class="col-extended grid xs:grid-cols-2 md:grid-cols-3 gap-x-fluid-md gap-y-fluid-lg mt-fluid-sm mb-fluid-lg"
|
|
311
|
+
aria-label="Footer"
|
|
312
|
+
>
|
|
313
|
+
<div class="flex flex-col gap-fluid-sm">
|
|
314
|
+
<p-heading id="heading-footer-1" tag="h3" size="2xs" color="contrast-medium">Legal Services</p-heading>
|
|
315
|
+
<ul class="grid gap-fluid-sm">
|
|
316
|
+
<li>
|
|
317
|
+
<p-link-pure icon="none"><a href="#">Terms and Conditions</a></p-link-pure>
|
|
318
|
+
</li>
|
|
319
|
+
<li>
|
|
320
|
+
<p-link-pure icon="none"><a href="#">Privacy Notice</a></p-link-pure>
|
|
321
|
+
</li>
|
|
322
|
+
<li>
|
|
323
|
+
<p-link-pure icon="none"><a href="#">California Privacy</a></p-link-pure>
|
|
324
|
+
</li>
|
|
325
|
+
<li>
|
|
326
|
+
<p-link-pure icon="none"><a href="#">Imprint and Legal Notice</a></p-link-pure>
|
|
327
|
+
</li>
|
|
328
|
+
<li>
|
|
329
|
+
<p-link-pure icon="none"><a href="#">Accessibility Statement</a></p-link-pure>
|
|
330
|
+
</li>
|
|
331
|
+
<li>
|
|
332
|
+
<p-link-pure icon="none"><a href="#">Open Source Software Notice</a></p-link-pure>
|
|
333
|
+
</li>
|
|
334
|
+
</ul>
|
|
335
|
+
</div>
|
|
336
|
+
<div class="flex flex-col gap-fluid-sm">
|
|
337
|
+
<p-heading tag="h3" size="2xs" color="contrast-medium">Porsche Design</p-heading>
|
|
338
|
+
<ul class="grid gap-fluid-sm">
|
|
339
|
+
<li>
|
|
340
|
+
<p-link-pure icon="none"><a href="#">Press</a></p-link-pure>
|
|
341
|
+
</li>
|
|
342
|
+
<li>
|
|
343
|
+
<p-link-pure icon="none"><a href="#">Jobs and Careers</a></p-link-pure>
|
|
344
|
+
</li>
|
|
345
|
+
<li>
|
|
346
|
+
<p-link-pure icon="none"><a href="#">Studio F. A. Porsche</a></p-link-pure>
|
|
347
|
+
</li>
|
|
348
|
+
<li>
|
|
349
|
+
<p-link-pure icon="none"><a href="#">Data Privacy</a></p-link-pure>
|
|
350
|
+
</li>
|
|
351
|
+
<li>
|
|
352
|
+
<p-link-pure icon="none"><a href="#">Timepieces Warranty & Service</a></p-link-pure>
|
|
353
|
+
</li>
|
|
354
|
+
</ul>
|
|
355
|
+
</div>
|
|
356
|
+
<div class="flex flex-col gap-fluid-sm">
|
|
357
|
+
<p-heading tag="h3" size="2xs" color="contrast-medium">Online Services</p-heading>
|
|
358
|
+
<ul class="grid gap-fluid-sm">
|
|
359
|
+
<li>
|
|
360
|
+
<p-link-pure icon="none"><a href="#">My Orders</a></p-link-pure>
|
|
361
|
+
</li>
|
|
362
|
+
<li>
|
|
363
|
+
<p-link-pure icon="none"><a href="#">Porsche Homepage</a></p-link-pure>
|
|
364
|
+
</li>
|
|
365
|
+
<li>
|
|
366
|
+
<p-link-pure icon="none"><a href="#">Porsche Car Configurator</a></p-link-pure>
|
|
367
|
+
</li>
|
|
368
|
+
<li>
|
|
369
|
+
<p-link-pure icon="none"><a href="#">Porsche New and Pre-Owned Vehicles</a></p-link-pure>
|
|
370
|
+
</li>
|
|
371
|
+
<li>
|
|
372
|
+
<p-link-pure icon="none"><a href="#">Compare Porsche models</a></p-link-pure>
|
|
373
|
+
</li>
|
|
374
|
+
</ul>
|
|
375
|
+
</div>
|
|
376
|
+
</nav>
|
|
377
|
+
<article
|
|
378
|
+
class="col-extended grid sm:grid-cols-[auto_minmax(0,1fr)] items-center gap-x-fluid-lg gap-y-static-lg"
|
|
379
|
+
aria-label="Social media and payment service providers"
|
|
380
|
+
>
|
|
381
|
+
<div class="flex gap-fluid-md">
|
|
382
|
+
<p-link-pure class="p-static-sm -m-static-sm" icon="logo-instagram" hide-label="true" size="md">
|
|
383
|
+
<a href="#">Instagram</a>
|
|
384
|
+
</p-link-pure>
|
|
385
|
+
<p-link-pure class="p-static-sm -m-static-sm" icon="logo-facebook" hide-label="true" size="md">
|
|
386
|
+
<a href="#">Facebook</a>
|
|
387
|
+
</p-link-pure>
|
|
388
|
+
<p-link-pure class="p-static-sm -m-static-sm" icon="logo-x" hide-label="true" size="md">
|
|
389
|
+
<a href="#">X</a>
|
|
390
|
+
</p-link-pure>
|
|
391
|
+
<p-link-pure class="p-static-sm -m-static-sm" icon="logo-pinterest" hide-label="true" size="md">
|
|
392
|
+
<a href="#">Pinterest</a>
|
|
393
|
+
</p-link-pure>
|
|
394
|
+
<p-link-pure class="p-static-sm -m-static-sm" icon="logo-youtube" hide-label="true" size="md">
|
|
395
|
+
<a href="#">YouTube</a>
|
|
396
|
+
</p-link-pure>
|
|
397
|
+
</div>
|
|
398
|
+
<div class="flex gap-fluid-xs">
|
|
399
|
+
<a class="focus-visible:outline outline-focus outline-offset-2 rounded-sm" href="#">
|
|
400
|
+
<img
|
|
401
|
+
src="https://images.ctfassets.net/1oyzmkwpf3d5/hskK1tzN0CS8cdGIttugu/883187acee1c66e7d4593141f3e659c3/Visa.svg"
|
|
402
|
+
alt="visa logo"
|
|
403
|
+
/>
|
|
404
|
+
</a>
|
|
405
|
+
<a class="focus-visible:outline outline-focus outline-offset-2 rounded-sm" href="#">
|
|
406
|
+
<img
|
|
407
|
+
src="https://images.ctfassets.net/1oyzmkwpf3d5/34g5LXmVhTzseATJL7CLFj/501eba81ff4787357277faff4ea04f4d/Master__1_.svg"
|
|
408
|
+
alt="master card logo"
|
|
409
|
+
/>
|
|
410
|
+
</a>
|
|
411
|
+
<a class="focus-visible:outline outline-focus outline-offset-2 rounded-sm" href="#">
|
|
412
|
+
<img
|
|
413
|
+
src="https://images.ctfassets.net/1oyzmkwpf3d5/4NeGQiGeYT5VZ3G591li1k/c12d0cc589f608a6db3d3e7d2aae0255/PayPal.svg"
|
|
414
|
+
alt="paypal logo"
|
|
415
|
+
/>
|
|
416
|
+
</a>
|
|
417
|
+
</div>
|
|
418
|
+
</article>
|
|
419
|
+
<article class="col-extended grid gap-fluid-md mt-fluid-md" aria-label="Consumption and emission information">
|
|
420
|
+
<p-text size="2xs" color="contrast-medium">
|
|
421
|
+
The consumption and emission values stated were determined in accordance with the legally prescribed
|
|
422
|
+
measurement procedures. Since September 1, 2017, certain new vehicles have been type-approved in accordance
|
|
423
|
+
with the Worldwide Harmonized Vehicles Test Procedure (WLTP), a more realistic test procedure for measuring
|
|
424
|
+
fuel/electricity consumption and CO₂ emissions. Since September 1, 2018, the WLTP has replaced the New
|
|
425
|
+
European Driving Cycle (NEDC). Due to the more realistic testing conditions, the fuel/electricity consumption
|
|
426
|
+
and CO₂ emission values measured according to the WLTP are, in many cases, higher than those measured
|
|
427
|
+
according to the NEDC. As a result, vehicle taxation may change accordingly starting September 1, 2018.
|
|
428
|
+
Further information on the differences between WLTP and NEDC can be found at www.porsche.com/wltp.
|
|
429
|
+
</p-text>
|
|
430
|
+
<p-text size="2xs" color="contrast-medium">
|
|
431
|
+
Currently, regardless of the applied type-approval procedure, it remains mandatory to communicate NEDC values.
|
|
432
|
+
The additional disclosure of WLTP values may be done on a voluntary basis until their mandatory use. In the
|
|
433
|
+
case of new vehicles type-approved according to WLTP, NEDC values are derived from WLTP values and stated
|
|
434
|
+
during the transitional period. Where NEDC values are stated as ranges, they do not refer to a specific
|
|
435
|
+
individual vehicle and are not part of the offer. They serve solely for comparison purposes between different
|
|
436
|
+
vehicle types. Optional equipment and accessories (attachments, tire formats, etc.) can alter relevant vehicle
|
|
437
|
+
parameters such as weight, rolling resistance, and aerodynamics, and can influence fuel/electricity
|
|
438
|
+
consumption, CO₂ emissions, and performance values of a vehicle in addition to weather and traffic conditions
|
|
439
|
+
and individual driving behavior. Further information on the official fuel/electricity consumption and official
|
|
440
|
+
specific CO₂ emissions of new passenger cars can be found in the "Guide on fuel consumption, CO₂
|
|
441
|
+
emissions and electricity consumption of new passenger cars," available free of charge at all sales
|
|
442
|
+
outlets and from DAT.
|
|
443
|
+
</p-text>
|
|
444
|
+
<p-text size="2xs" color="contrast-medium">
|
|
445
|
+
Neither the number of active users of this Porsche Connect Store nor the number of active users of the App
|
|
446
|
+
Center available in the connected vehicle (Macan electric) upon activation of the Connect services exceeds the
|
|
447
|
+
threshold of 45 million active users in the European Union as defined by the Digital Services Act (DSA).
|
|
448
|
+
Important information regarding fully electric Porsche models can be found here.
|
|
449
|
+
</p-text>
|
|
450
|
+
</article>
|
|
451
|
+
<div class="col-extended grid gap-fluid-md justify-items-center mt-fluid-md">
|
|
452
|
+
<p-wordmark></p-wordmark>
|
|
453
|
+
<p-text size="2xs" color="contrast-medium">© 2026 Porsche Sales and Marketplace, Inc.</p-text>
|
|
454
|
+
<ul class="flex flex-wrap justify-center gap-fluid-md">
|
|
455
|
+
<li>
|
|
456
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Legal notice</a></p-link-pure>
|
|
457
|
+
</li>
|
|
458
|
+
<li>
|
|
459
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Privacy notice</a></p-link-pure>
|
|
460
|
+
</li>
|
|
461
|
+
<li>
|
|
462
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Accessibility Statement</a></p-link-pure>
|
|
463
|
+
</li>
|
|
464
|
+
<li>
|
|
465
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Open Source Software Notice</a></p-link-pure>
|
|
466
|
+
</li>
|
|
467
|
+
</ul>
|
|
468
|
+
</div>
|
|
469
|
+
</footer>
|
|
470
|
+
<script type="module" src="main.js"></script>
|
|
471
|
+
</body>
|
|
472
|
+
</html>
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
## Script
|
|
476
|
+
|
|
477
|
+
```js
|
|
478
|
+
// DO NOT USE IN PRODUCTION!
|
|
479
|
+
// EXAMPLE CODE FOR DEMONSTRATION PURPOSE ONLY.
|
|
480
|
+
|
|
481
|
+
// Behaviour of the header navigation: the menu button opens the drilldown, and the drilldown reports the level
|
|
482
|
+
// the user drilled into.
|
|
483
|
+
|
|
484
|
+
const navButton = document.getElementById('nav-button');
|
|
485
|
+
const navDrilldown = document.getElementById('nav-drilldown');
|
|
486
|
+
|
|
487
|
+
navButton.addEventListener('click', () => {
|
|
488
|
+
navDrilldown.open = true;
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
// Closing is requested by the component (Escape, the close button, a click on the backdrop) – the open state is
|
|
492
|
+
// owned by the page, so it has to be written back.
|
|
493
|
+
navDrilldown.addEventListener('dismiss', (e) => {
|
|
494
|
+
e.target.open = false;
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
navDrilldown.addEventListener('update', (e) => {
|
|
498
|
+
e.target.activeIdentifier = e.detail.activeIdentifier;
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
// Behaviour of the hero video: a pause control that follows the actual state of the video.
|
|
502
|
+
|
|
503
|
+
const video = document.getElementById('hero-video');
|
|
504
|
+
const pauseButton = document.getElementById('pause-button');
|
|
505
|
+
|
|
506
|
+
// The button hides its label, so its text content is its accessible name – it has to follow the actual state of
|
|
507
|
+
// the video, not the last click. Deriving it from the media events also covers autoplay being refused by the
|
|
508
|
+
// browser.
|
|
509
|
+
const syncPauseButton = () => {
|
|
510
|
+
pauseButton.textContent = video.paused ? 'Play Video' : 'Pause Video';
|
|
511
|
+
pauseButton.icon = video.paused ? 'play' : 'pause';
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
video.addEventListener('play', syncPauseButton);
|
|
515
|
+
video.addEventListener('pause', syncPauseButton);
|
|
516
|
+
|
|
517
|
+
pauseButton.addEventListener('click', () => {
|
|
518
|
+
video[video.paused ? 'play' : 'pause']();
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
// WCAG 2.2: an animation that starts on its own must be stoppable – and it must not start at all when the
|
|
522
|
+
// operating system was asked for reduced motion.
|
|
523
|
+
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
524
|
+
video.autoplay = false;
|
|
525
|
+
video.pause();
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
syncPauseButton();
|
|
529
|
+
```
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Patterns and templates
|
|
2
|
+
|
|
3
|
+
Every pattern and template with its reference, and what all of them share: the conventions of their references and their stylesheet. Start from the example closest to the task; keep its landmarks, labels and focus handling, and replace its placeholder content, links and media and the demo logic of its script.
|
|
4
|
+
|
|
5
|
+
## Patterns
|
|
6
|
+
|
|
7
|
+
| Pattern | Description | Components | Reference |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| Feedback: Dialog | A trigger button opens the same rating-and-comment flow inside a dialog, keeping the page uncluttered. It can be launched from any action on the page, which makes it ideal for task-focused or space-constrained contexts where feedback should stay available but out of the way. | [`p-button`](./components/p-button/p-button.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-modal`](./components/p-modal/p-modal.md), [`p-segmented-control`](./components/p-segmented-control/p-segmented-control.md), [`p-text`](./components/p-text/p-text.md), [`p-textarea`](./components/p-textarea/p-textarea.md) | [dialog.md](./examples/patterns/feedback/dialog.md) |
|
|
10
|
+
| Feedback: Inline | The rating sits directly in the page flow, typically at the end of the content, and stays visible at all times. Once feedback is submitted, it shows a confirmation and offers the option to start over and give new feedback. | [`p-button`](./components/p-button/p-button.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-segmented-control`](./components/p-segmented-control/p-segmented-control.md), [`p-text`](./components/p-text/p-text.md), [`p-textarea`](./components/p-textarea/p-textarea.md) | [inline.md](./examples/patterns/feedback/inline.md) |
|
|
11
|
+
| Footer | The footer serves as a universal navigation and information hub located at the bottom of every page. It provides essential links, copyright information, legal disclaimers, and contact details, ensuring users can easily access key information regardless of their location on the site. | [`p-flag`](./components/p-flag/p-flag.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-link-pure`](./components/p-link-pure/p-link-pure.md), [`p-select`](./components/p-select/p-select.md), [`p-text`](./components/p-text/p-text.md), [`p-wordmark`](./components/p-wordmark/p-wordmark.md) | [footer.md](./examples/patterns/footer.md) |
|
|
12
|
+
| Header: Overlay | The header lies on top of the content, typically a full-bleed hero image or video, and is reduced to a single row with brand, navigation and meta actions. The menu opens a drilldown with the site navigation. | [`p-button`](./components/p-button/p-button.md), [`p-button-pure`](./components/p-button-pure/p-button-pure.md), [`p-crest`](./components/p-crest/p-crest.md), [`p-drilldown`](./components/p-drilldown/p-drilldown.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-wordmark`](./components/p-wordmark/p-wordmark.md) | [overlay.md](./examples/patterns/header/overlay.md) |
|
|
13
|
+
| Header: Stacked | The header sits above the content instead of lying on top of it: a note on top, the bar with brand, navigation and meta actions in the middle, and a row of category navigation below. The menu opens a drilldown with the site navigation. | [`p-button-pure`](./components/p-button-pure/p-button-pure.md), [`p-crest`](./components/p-crest/p-crest.md), [`p-drilldown`](./components/p-drilldown/p-drilldown.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-link-pure`](./components/p-link-pure/p-link-pure.md), [`p-tabs-bar`](./components/p-tabs-bar/p-tabs-bar.md), [`p-text`](./components/p-text/p-text.md), [`p-wordmark`](./components/p-wordmark/p-wordmark.md) | [stacked.md](./examples/patterns/header/stacked.md) |
|
|
14
|
+
| Popover: Feature tour | On first visit, a sequence of popovers guides the user through the key areas of the interface one step at a time ("Step 2 of 4", Back / Next / Skip), each anchored to the element it describes. Only a single step is open at once. | [`p-button`](./components/p-button/p-button.md), [`p-button-pure`](./components/p-button-pure/p-button-pure.md), [`p-crest`](./components/p-crest/p-crest.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-popover`](./components/p-popover/p-popover.md), [`p-text`](./components/p-text/p-text.md), [`p-wordmark`](./components/p-wordmark/p-wordmark.md) | [feature-tour.md](./examples/patterns/popover/feature-tour.md) |
|
|
15
|
+
| Popover: Local market switch | On entering the site, a popover anchored to the globe icon in the header suggests switching to the user's local market for correct content and pricing. It is shown on load and can be dismissed via an outside click or the Escape key. | [`p-button`](./components/p-button/p-button.md), [`p-button-pure`](./components/p-button-pure/p-button-pure.md), [`p-crest`](./components/p-crest/p-crest.md), [`p-drilldown`](./components/p-drilldown/p-drilldown.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-link-pure`](./components/p-link-pure/p-link-pure.md), [`p-popover`](./components/p-popover/p-popover.md), [`p-sheet`](./components/p-sheet/p-sheet.md), [`p-tag`](./components/p-tag/p-tag.md), [`p-text`](./components/p-text/p-text.md), [`p-wordmark`](./components/p-wordmark/p-wordmark.md) | [local-market-switch.md](./examples/patterns/popover/local-market-switch.md) |
|
|
16
|
+
| Popover: Priority navigation | When horizontal space is limited, navigation items that no longer fit are collapsed into a popover behind a "More" trigger, keeping the bar on a single line. Items move in and out of the popover as the available width changes. | [`p-button`](./components/p-button/p-button.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-link-pure`](./components/p-link-pure/p-link-pure.md), [`p-popover`](./components/p-popover/p-popover.md), [`p-tag`](./components/p-tag/p-tag.md), [`p-text`](./components/p-text/p-text.md) | [priority-navigation.md](./examples/patterns/popover/priority-navigation.md) |
|
|
17
|
+
|
|
18
|
+
## Templates
|
|
19
|
+
|
|
20
|
+
| Template | Description | Components | Reference |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| Admin panel | The template is designed for internal tools and management interfaces that require a clear, efficient, and data-driven layout. It's built to help administrators oversee and manage content, users, or system settings with ease — whether that's monitoring key metrics, managing user accounts, or configuring application settings. | [`p-accordion`](./components/p-accordion/p-accordion.md), [`p-button`](./components/p-button/p-button.md), [`p-button-pure`](./components/p-button-pure/p-button-pure.md), [`p-canvas`](./components/p-canvas/p-canvas.md), [`p-checkbox`](./components/p-checkbox/p-checkbox.md), [`p-divider`](./components/p-divider/p-divider.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-input-search`](./components/p-input-search/p-input-search.md), [`p-link-pure`](./components/p-link-pure/p-link-pure.md), [`p-modal`](./components/p-modal/p-modal.md), [`p-popover`](./components/p-popover/p-popover.md), [`p-select`](./components/p-select/p-select.md), [`p-table`](./components/p-table/p-table.md), [`p-tabs-bar`](./components/p-tabs-bar/p-tabs-bar.md), [`p-text`](./components/p-text/p-text.md) | [admin-panel.md](./examples/templates/admin-panel.md) |
|
|
23
|
+
| Landing page | The template is designed for campaigns that require a high-impact, conversion-focused experience. It's built to capture user attention and guide them toward a singular goal, whether that's signing up for a newsletter, exploring a new model, or registering for an event. | [`p-button`](./components/p-button/p-button.md), [`p-button-pure`](./components/p-button-pure/p-button-pure.md), [`p-carousel`](./components/p-carousel/p-carousel.md), [`p-crest`](./components/p-crest/p-crest.md), [`p-drilldown`](./components/p-drilldown/p-drilldown.md), [`p-flag`](./components/p-flag/p-flag.md), [`p-heading`](./components/p-heading/p-heading.md), [`p-link`](./components/p-link/p-link.md), [`p-link-pure`](./components/p-link-pure/p-link-pure.md), [`p-link-tile`](./components/p-link-tile/p-link-tile.md), [`p-select`](./components/p-select/p-select.md), [`p-text`](./components/p-text/p-text.md), [`p-wordmark`](./components/p-wordmark/p-wordmark.md) | [landing-page.md](./examples/templates/landing-page.md) |
|
|
24
|
+
|
|
25
|
+
## Conventions
|
|
26
|
+
|
|
27
|
+
- **Markup:** the document without its `<head>`. Links point to `#`, texts and media are placeholders.
|
|
28
|
+
- **Attributes:** the components are written as HTML takes them – object and breakpoint values of props are strings, e.g. `hide-label="{ base: true, s: false }"`.
|
|
29
|
+
- **Script:** the behaviour of the page, as a JavaScript module. It is demo code: it wires up the components by their ids and fakes everything a real application would load or send.
|
|
30
|
+
|
|
31
|
+
## Stylesheet
|
|
32
|
+
|
|
33
|
+
Every example imports the same stylesheet: the [global styles](./stylesheets.md) the components depend on, Tailwind CSS and the [PDS Tailwind CSS theme](./styles/tailwindcss.md) whose utilities the markup uses, and a rule hiding the components until they are defined. Its comment describes how that rule differs for server-side rendering and Angular.
|
|
34
|
+
|
|
35
|
+
```css
|
|
36
|
+
@import "@porsche-design-system/components-js";
|
|
37
|
+
@import "tailwindcss";
|
|
38
|
+
@import "@porsche-design-system/components-js/tailwindcss";
|
|
39
|
+
|
|
40
|
+
/* Hide custom elements (e.g. `p-button`) until they are defined to prevent a flash of unstyled content. The bare
|
|
41
|
+
* selector works here because these pages are vanilla JS; other setups need a variant. The React SSR wrappers of
|
|
42
|
+
* Next.js and React Router mark their server rendered elements with a `data-ssr` attribute, which has to be excluded
|
|
43
|
+
* (`:not(:defined,[data-ssr])`), and Angular has to list the PDS tags explicitly (`:is(p-button, …):not(:defined)`)
|
|
44
|
+
* because its own elements like `app-root` never get defined and would stay invisible. */
|
|
45
|
+
:not(:defined) {
|
|
46
|
+
visibility: hidden;
|
|
47
|
+
}
|
|
48
|
+
```
|