@porsche-design-system/components-react 4.10.0 → 4.11.0-rc.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/CHANGELOG.md +110 -9
- package/cjs/lib/components/link.wrapper.cjs +3 -3
- package/cjs/lib/components/popover.wrapper.cjs +3 -3
- package/cjs/lib/components/sheet.wrapper.cjs +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +2 -2
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/link.wrapper.mjs +3 -3
- package/esm/lib/components/popover.wrapper.d.ts +10 -0
- package/esm/lib/components/popover.wrapper.mjs +3 -3
- package/esm/lib/components/sheet.wrapper.d.ts +12 -2
- package/esm/lib/components/sheet.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +7 -3
- package/package.json +2 -2
- package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
- package/skills/pds-knowledge-react/SKILL.md +8 -7
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/InteractiveElementsInSummary.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/StickySummary.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-ai-tag/examples/WithinRadioGroup.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-ai-tag/examples/WithinTable.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-banner/examples/Customization.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-banner/p-banner.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-button-pure/p-button-pure.md +9 -0
- package/skills/pds-knowledge-react/references/components/p-carousel/p-carousel.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-fieldset/p-fieldset.md +7 -9
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/CustomStyling.tsx +3 -3
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/StickyTop.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-inline-notification/p-inline-notification.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +26 -8
- package/skills/pds-knowledge-react/references/components/p-link/examples/Cover.tsx +20 -0
- package/skills/pds-knowledge-react/references/components/p-link/p-link.md +3 -0
- package/skills/pds-knowledge-react/references/components/p-link-pure/p-link-pure.md +39 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/AlertDialog.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/Scrollable.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-popover/p-popover.md +4 -2
- package/skills/pds-knowledge-react/references/components/p-sheet/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-sheet/p-sheet.md +6 -3
- package/skills/pds-knowledge-react/references/components/p-table/examples/CaptionSlot.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-toast/p-toast.md +2 -2
- package/skills/pds-knowledge-react/references/deprecations.md +4 -4
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/dialog.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/inline.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/{footer.md → footer/extended.md} +9 -8
- package/skills/pds-knowledge-react/references/examples/patterns/footer/simple.md +75 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/booking.md +479 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/contact.md +211 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/personal-details.md +253 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/search-combobox-link-list.md +363 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/search-combobox-option-list.md +499 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/overlay.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/header/stacked.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/feature-tour.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/local-market-switch.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/priority-navigation.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/tile/call-to-action.md +71 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/category.md +60 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/disclosure.md +84 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/equipment-stacked.md +54 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/equipment.md +69 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/image.md +64 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-navigation.md +52 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-selection.md +66 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-teaser.md +78 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/product.md +92 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/vehicle-listing.md +107 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/video.md +114 -0
- package/skills/pds-knowledge-react/references/examples/templates/admin-panel.md +1 -0
- package/skills/pds-knowledge-react/references/examples/templates/landing-page.md +4 -3
- package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/no-video.md +1166 -0
- package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/video.md +1252 -0
- package/skills/pds-knowledge-react/references/examples.md +50 -1
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +239 -70
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +424 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +14 -3
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +239 -70
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +411 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +15 -4
- package/ssr/esm/public-api.d.ts +8696 -5
- package/skills/pds-knowledge-react/references/components/p-input-search/examples/AriaCombobox.tsx +0 -35
- package/ssr/esm/BaseProps.d.ts +0 -2
- package/ssr/esm/getCachedMinifiedCss.d.ts +0 -23
- package/ssr/esm/hooks.d.ts +0 -15
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +0 -98
- package/ssr/esm/lib/components/ai-tag.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/banner.wrapper.d.ts +0 -86
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +0 -158
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +0 -140
- package/ssr/esm/lib/components/button.wrapper.d.ts +0 -118
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +0 -54
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +0 -166
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +0 -160
- package/ssr/esm/lib/components/crest.wrapper.d.ts +0 -32
- package/ssr/esm/lib/components/display.wrapper.d.ts +0 -57
- package/ssr/esm/lib/components/divider.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +0 -53
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +0 -60
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +0 -50
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +0 -66
- package/ssr/esm/lib/components/flag.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +0 -110
- package/ssr/esm/lib/components/heading.wrapper.d.ts +0 -76
- package/ssr/esm/lib/components/icon.wrapper.d.ts +0 -52
- package/ssr/esm/lib/components/index.d.ts +0 -74
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +0 -102
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +0 -228
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +0 -220
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +0 -210
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +0 -220
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +0 -138
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +0 -104
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +0 -126
- package/ssr/esm/lib/components/link.wrapper.d.ts +0 -98
- package/ssr/esm/lib/components/modal.wrapper.d.ts +0 -100
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +0 -68
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +0 -156
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +0 -64
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +0 -160
- package/ssr/esm/lib/components/popover.wrapper.d.ts +0 -58
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +0 -43
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +0 -148
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +0 -62
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +0 -58
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +0 -148
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/select.wrapper.d.ts +0 -164
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +0 -80
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/switch.wrapper.d.ts +0 -94
- package/ssr/esm/lib/components/table-body.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +0 -17
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +0 -36
- package/ssr/esm/lib/components/table-head-row.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-head.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-row.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table.wrapper.d.ts +0 -54
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +0 -70
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +0 -15
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +0 -72
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/tag.wrapper.d.ts +0 -46
- package/ssr/esm/lib/components/text-list-item.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +0 -18
- package/ssr/esm/lib/components/text.wrapper.d.ts +0 -78
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +0 -238
- package/ssr/esm/lib/components/toast.wrapper.d.ts +0 -3
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +0 -42
- package/ssr/esm/lib/dsr-components/accordion.d.ts +0 -18
- package/ssr/esm/lib/dsr-components/ai-tag.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/banner.d.ts +0 -20
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/button.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/canvas.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/carousel.d.ts +0 -27
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/crest.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/dialog-base.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/display.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/divider.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/drilldown.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/fc-dismiss-button.d.ts +0 -16
- package/ssr/esm/lib/dsr-components/fieldset.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/filter-status-announcer.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/flag.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/flyout.d.ts +0 -26
- package/ssr/esm/lib/dsr-components/heading.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/icon.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/inline-notification.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/input-base.d.ts +0 -38
- package/ssr/esm/lib/dsr-components/input-date.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-email.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-month.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-number.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-password.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/input-search.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-text.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-time.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-url.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-week.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/label.d.ts +0 -24
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/link.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/loading-message.d.ts +0 -8
- package/ssr/esm/lib/dsr-components/modal.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/model-signature.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +0 -40
- package/ssr/esm/lib/dsr-components/no-results-option.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/notification-base.d.ts +0 -14
- package/ssr/esm/lib/dsr-components/optgroup.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/pagination.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/popover.d.ts +0 -27
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +0 -13
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/required.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/scroller.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +0 -21
- package/ssr/esm/lib/dsr-components/select-option.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/select.d.ts +0 -41
- package/ssr/esm/lib/dsr-components/sheet.d.ts +0 -20
- package/ssr/esm/lib/dsr-components/spinner.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/state-message.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/switch.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/table-body.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-cell.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head-row.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-row.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +0 -17
- package/ssr/esm/lib/dsr-components/tabs-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/tabs.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/tag.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text-list-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text-list.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/textarea.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/toast.d.ts +0 -7
- package/ssr/esm/lib/dsr-components/wordmark.d.ts +0 -6
- package/ssr/esm/lib/types.d.ts +0 -1862
- package/ssr/esm/minifyCss.d.ts +0 -1
- package/ssr/esm/provider.d.ts +0 -10
- package/ssr/esm/splitChildren.d.ts +0 -17
- package/ssr/esm/utils.d.ts +0 -4
package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/no-video.md
ADDED
|
@@ -0,0 +1,1166 @@
|
|
|
1
|
+
# Personalized mailing: No video
|
|
2
|
+
|
|
3
|
+
A personal follow-up page for a configured vehicle, linked from a mailing. It recaps the configuration, recommends further options and hands over to a personal sales advisor. It opens on a giant title the configured vehicle is pulled up into – for a lighter page, or when no footage is available.
|
|
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-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-modal`](../../../components/p-modal/p-modal.md), [`p-segmented-control`](../../../components/p-segmented-control/p-segmented-control.md), [`p-tag`](../../../components/p-tag/p-tag.md), [`p-text`](../../../components/p-text/p-text.md), [`p-textarea`](../../../components/p-textarea/p-textarea.md), [`p-wordmark`](../../../components/p-wordmark/p-wordmark.md)
|
|
7
|
+
- **Color schemes:** light and dark – see Conventions
|
|
8
|
+
- **Conventions and stylesheet:** shared by all examples, see [examples.md](../../../examples.md)
|
|
9
|
+
|
|
10
|
+
## Markup
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<html lang="en">
|
|
14
|
+
<body>
|
|
15
|
+
<!--
|
|
16
|
+
Dark by design, independent of the color scheme of the page, like the footer, the contact bar and the video modal.
|
|
17
|
+
-->
|
|
18
|
+
<main id="main" class="scheme-only-dark bg-canvas grid-template gap-y-0" style="--pm-config-color: #c4001a">
|
|
19
|
+
<section
|
|
20
|
+
id="pm-hero"
|
|
21
|
+
class="relative col-full grid grid-cols-subgrid overflow-x-clip bg-surface"
|
|
22
|
+
aria-labelledby="pm-hero-heading"
|
|
23
|
+
>
|
|
24
|
+
<div
|
|
25
|
+
class="absolute inset-0 bg-linear-to-b from-transparent via-(--pm-config-color) via-45% to-(--pm-config-color)"
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
></div>
|
|
28
|
+
<div
|
|
29
|
+
class="z-1 col-full justify-self-center pt-fluid-lg pointer-events-none motion-safe:transition-opacity motion-safe:duration-lg motion-safe:ease-in-out motion-safe:starting:opacity-0"
|
|
30
|
+
>
|
|
31
|
+
<p-wordmark aria="{ 'aria-label': 'Porsche' }"></p-wordmark>
|
|
32
|
+
</div>
|
|
33
|
+
<h1
|
|
34
|
+
id="pm-hero-heading"
|
|
35
|
+
class="col-full justify-self-center text-center hyphens-auto wrap-break-word font-normal leading-[1.05] bg-linear-to-b from-contrast-medium to-transparent bg-clip-text text-transparent forced-colors:bg-none forced-colors:text-[CanvasText] pointer-events-none text-[clamp(3rem,12.5vw,18.75rem)] z-1 mt-fluid-xl"
|
|
36
|
+
>
|
|
37
|
+
<span class="block">A choice</span>
|
|
38
|
+
<span class="block">with character.</span>
|
|
39
|
+
</h1>
|
|
40
|
+
<p-button-pure
|
|
41
|
+
id="pm-scroll-next"
|
|
42
|
+
class="fixed inset-x-0 bottom-fluid-md z-20 mx-auto w-fit"
|
|
43
|
+
type="button"
|
|
44
|
+
icon="arrow-down"
|
|
45
|
+
hide-label="true"
|
|
46
|
+
size="md"
|
|
47
|
+
>
|
|
48
|
+
Scroll down
|
|
49
|
+
</p-button-pure>
|
|
50
|
+
</section>
|
|
51
|
+
<section
|
|
52
|
+
class="relative z-1 col-full grid grid-cols-subgrid gap-y-fluid-lg py-fluid-2xl rounded-b-4xl bg-(--pm-config-color)"
|
|
53
|
+
aria-label="Your 911 Targa"
|
|
54
|
+
>
|
|
55
|
+
<div class="col-narrow flex flex-col items-center gap-fluid-lg text-center">
|
|
56
|
+
<div
|
|
57
|
+
class="relative w-full motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up -mt-[clamp(7.5rem,22vw,20rem)]"
|
|
58
|
+
data-reveal="true"
|
|
59
|
+
>
|
|
60
|
+
<img
|
|
61
|
+
class="relative z-1 w-full"
|
|
62
|
+
src="/examples/media/pm-chapter-car.webp"
|
|
63
|
+
width="1600"
|
|
64
|
+
height="900"
|
|
65
|
+
alt="Your 911 Targa in Carmine Red, front view"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
<p-text
|
|
69
|
+
class="max-w-prose motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
70
|
+
data-reveal="true"
|
|
71
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 1)"
|
|
72
|
+
size="lg"
|
|
73
|
+
align="center"
|
|
74
|
+
>
|
|
75
|
+
Your 911 Targa in Carmine Red has arrived with us – a combination that shows attitude. Now the best part
|
|
76
|
+
begins: the way to your Porsche. Take the next step and talk to your personal advisor.
|
|
77
|
+
</p-text>
|
|
78
|
+
<div
|
|
79
|
+
id="pm-sound"
|
|
80
|
+
class="group/sound flex max-w-full items-center gap-static-md rounded-full bg-frosted backdrop-blur-frosted py-static-xs ps-static-xs pe-static-md motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
81
|
+
data-reveal="true"
|
|
82
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 2)"
|
|
83
|
+
>
|
|
84
|
+
<p-button id="pm-sound-toggle" class="shrink-0" type="button" icon="play-filled" hide-label="true">
|
|
85
|
+
Play engine sound
|
|
86
|
+
</p-button>
|
|
87
|
+
<div
|
|
88
|
+
class="relative flex h-7 min-w-0 items-center overflow-hidden [interpolate-size:allow-keywords] motion-safe:transition-[width] motion-safe:duration-lg motion-safe:ease-in-out group-data-playing/sound:w-44.25 supports-[width:calc-size(auto,size)]:group-data-playing/sound:w-[calc-size(auto,size_+_2.5rem)]"
|
|
89
|
+
>
|
|
90
|
+
<p-text
|
|
91
|
+
class="min-w-0 motion-safe:transition-opacity motion-safe:duration-md motion-safe:ease-in-out group-data-playing/sound:opacity-0"
|
|
92
|
+
size="sm"
|
|
93
|
+
ellipsis
|
|
94
|
+
>
|
|
95
|
+
Sports exhaust system
|
|
96
|
+
</p-text>
|
|
97
|
+
<div
|
|
98
|
+
class="absolute inset-0 flex items-center justify-between gap-px opacity-0 motion-safe:transition-opacity motion-safe:duration-md motion-safe:ease-in-out group-data-playing/sound:opacity-100"
|
|
99
|
+
aria-hidden="true"
|
|
100
|
+
>
|
|
101
|
+
<span
|
|
102
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
103
|
+
style="height: 8px; animation-delay: 0.28s"
|
|
104
|
+
></span>
|
|
105
|
+
<span
|
|
106
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
107
|
+
style="height: 14px; animation-delay: 0s"
|
|
108
|
+
></span>
|
|
109
|
+
<span
|
|
110
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
111
|
+
style="height: 22px; animation-delay: 0.1s"
|
|
112
|
+
></span>
|
|
113
|
+
<span
|
|
114
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
115
|
+
style="height: 28px; animation-delay: 0.28s"
|
|
116
|
+
></span>
|
|
117
|
+
<span
|
|
118
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
119
|
+
style="height: 18px; animation-delay: 0s"
|
|
120
|
+
></span>
|
|
121
|
+
<span
|
|
122
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
123
|
+
style="height: 24px; animation-delay: 0.1s"
|
|
124
|
+
></span>
|
|
125
|
+
<span
|
|
126
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
127
|
+
style="height: 12px; animation-delay: 0.28s"
|
|
128
|
+
></span>
|
|
129
|
+
<span
|
|
130
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
131
|
+
style="height: 20px; animation-delay: 0s"
|
|
132
|
+
></span>
|
|
133
|
+
<span
|
|
134
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
135
|
+
style="height: 15px; animation-delay: 0.1s"
|
|
136
|
+
></span>
|
|
137
|
+
<span
|
|
138
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
139
|
+
style="height: 10px; animation-delay: 0.28s"
|
|
140
|
+
></span>
|
|
141
|
+
<span
|
|
142
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
143
|
+
style="height: 8px; animation-delay: 0s"
|
|
144
|
+
></span>
|
|
145
|
+
<span
|
|
146
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
147
|
+
style="height: 14px; animation-delay: 0.1s"
|
|
148
|
+
></span>
|
|
149
|
+
<span
|
|
150
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
151
|
+
style="height: 22px; animation-delay: 0.28s"
|
|
152
|
+
></span>
|
|
153
|
+
<span
|
|
154
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
155
|
+
style="height: 28px; animation-delay: 0s"
|
|
156
|
+
></span>
|
|
157
|
+
<span
|
|
158
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
159
|
+
style="height: 18px; animation-delay: 0.1s"
|
|
160
|
+
></span>
|
|
161
|
+
<span
|
|
162
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
163
|
+
style="height: 24px; animation-delay: 0.28s"
|
|
164
|
+
></span>
|
|
165
|
+
<span
|
|
166
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
167
|
+
style="height: 12px; animation-delay: 0s"
|
|
168
|
+
></span>
|
|
169
|
+
<span
|
|
170
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
171
|
+
style="height: 20px; animation-delay: 0.1s"
|
|
172
|
+
></span>
|
|
173
|
+
<span
|
|
174
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
175
|
+
style="height: 15px; animation-delay: 0.28s"
|
|
176
|
+
></span>
|
|
177
|
+
<span
|
|
178
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
179
|
+
style="height: 10px; animation-delay: 0s"
|
|
180
|
+
></span>
|
|
181
|
+
<span
|
|
182
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
183
|
+
style="height: 8px; animation-delay: 0.1s"
|
|
184
|
+
></span>
|
|
185
|
+
<span
|
|
186
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
187
|
+
style="height: 14px; animation-delay: 0.28s"
|
|
188
|
+
></span>
|
|
189
|
+
<span
|
|
190
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
191
|
+
style="height: 22px; animation-delay: 0s"
|
|
192
|
+
></span>
|
|
193
|
+
<span
|
|
194
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
195
|
+
style="height: 28px; animation-delay: 0.1s"
|
|
196
|
+
></span>
|
|
197
|
+
<span
|
|
198
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
199
|
+
style="height: 18px; animation-delay: 0.28s"
|
|
200
|
+
></span>
|
|
201
|
+
<span
|
|
202
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
203
|
+
style="height: 24px; animation-delay: 0s"
|
|
204
|
+
></span>
|
|
205
|
+
<span
|
|
206
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
207
|
+
style="height: 12px; animation-delay: 0.1s"
|
|
208
|
+
></span>
|
|
209
|
+
<span
|
|
210
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
211
|
+
style="height: 20px; animation-delay: 0.28s"
|
|
212
|
+
></span>
|
|
213
|
+
<span
|
|
214
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
215
|
+
style="height: 15px; animation-delay: 0s"
|
|
216
|
+
></span>
|
|
217
|
+
<span
|
|
218
|
+
class="w-0.75 min-w-px rounded-full bg-primary forced-colors:forced-color-adjust-none forced-colors:bg-[CanvasText] scale-y-50 motion-safe:group-data-playing/sound:animate-sound-wave"
|
|
219
|
+
style="height: 10px; animation-delay: 0.1s"
|
|
220
|
+
></span>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
<audio id="pm-sound-audio" src="/examples/media/pm-engine-sound.mp3" preload="none"></audio>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
<dl
|
|
227
|
+
id="pm-kpis"
|
|
228
|
+
class="col-basic flex flex-wrap justify-center gap-fluid-lg motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
229
|
+
data-reveal="true"
|
|
230
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 3)"
|
|
231
|
+
>
|
|
232
|
+
<div class="flex max-w-full flex-col-reverse items-center gap-static-xs text-center">
|
|
233
|
+
<dt><p-text tag="span" size="sm" color="primary" align="center">Maximum engine speed</p-text></dt>
|
|
234
|
+
<dd>
|
|
235
|
+
<span class="sr-only">9000 rpm</span>
|
|
236
|
+
<span class="flex flex-wrap items-baseline justify-center gap-x-static-xs" aria-hidden="true">
|
|
237
|
+
<span class="flex items-baseline gap-static-xs">
|
|
238
|
+
<p-text size="3xl">
|
|
239
|
+
<span class="grid justify-items-end">
|
|
240
|
+
<span class="invisible col-start-1 row-start-1">9000</span>
|
|
241
|
+
<span class="col-start-1 row-start-1" data-countup="9000" data-decimals="0">9000</span>
|
|
242
|
+
</span>
|
|
243
|
+
</p-text>
|
|
244
|
+
<p-text size="sm" weight="semibold">rpm</p-text>
|
|
245
|
+
</span>
|
|
246
|
+
</span>
|
|
247
|
+
</dd>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="flex max-w-full flex-col-reverse items-center gap-static-xs text-center">
|
|
250
|
+
<dt><p-text tag="span" size="sm" color="primary" align="center">Acceleration 0–100 km/h</p-text></dt>
|
|
251
|
+
<dd>
|
|
252
|
+
<span class="sr-only">3.9 s</span>
|
|
253
|
+
<span class="flex flex-wrap items-baseline justify-center gap-x-static-xs" aria-hidden="true">
|
|
254
|
+
<span class="flex items-baseline gap-static-xs">
|
|
255
|
+
<p-text size="3xl">
|
|
256
|
+
<span class="grid justify-items-end">
|
|
257
|
+
<span class="invisible col-start-1 row-start-1">3.9</span>
|
|
258
|
+
<span class="col-start-1 row-start-1" data-countup="3.9" data-decimals="1">3.9</span>
|
|
259
|
+
</span>
|
|
260
|
+
</p-text>
|
|
261
|
+
<p-text size="sm" weight="semibold">s</p-text>
|
|
262
|
+
</span>
|
|
263
|
+
</span>
|
|
264
|
+
</dd>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="flex max-w-full flex-col-reverse items-center gap-static-xs text-center">
|
|
267
|
+
<dt><p-text tag="span" size="sm" color="primary" align="center">Power (kW) / Power (PS)</p-text></dt>
|
|
268
|
+
<dd>
|
|
269
|
+
<span class="sr-only">375 kW / 510 PS</span>
|
|
270
|
+
<span class="flex flex-wrap items-baseline justify-center gap-x-static-xs" aria-hidden="true">
|
|
271
|
+
<span class="flex items-baseline gap-static-xs">
|
|
272
|
+
<p-text size="3xl">
|
|
273
|
+
<span class="grid justify-items-end">
|
|
274
|
+
<span class="invisible col-start-1 row-start-1">375</span>
|
|
275
|
+
<span class="col-start-1 row-start-1" data-countup="375" data-decimals="0">375</span>
|
|
276
|
+
</span>
|
|
277
|
+
</p-text>
|
|
278
|
+
<p-text size="sm" weight="semibold">kW</p-text>
|
|
279
|
+
<p-text size="3xl">/</p-text>
|
|
280
|
+
</span>
|
|
281
|
+
<span class="flex items-baseline gap-static-xs">
|
|
282
|
+
<p-text size="3xl">
|
|
283
|
+
<span class="grid justify-items-end">
|
|
284
|
+
<span class="invisible col-start-1 row-start-1">510</span>
|
|
285
|
+
<span class="col-start-1 row-start-1" data-countup="510" data-decimals="0">510</span>
|
|
286
|
+
</span>
|
|
287
|
+
</p-text>
|
|
288
|
+
<p-text size="sm" weight="semibold">PS</p-text>
|
|
289
|
+
</span>
|
|
290
|
+
</span>
|
|
291
|
+
</dd>
|
|
292
|
+
</div>
|
|
293
|
+
</dl>
|
|
294
|
+
</section>
|
|
295
|
+
<section
|
|
296
|
+
class="col-full grid grid-cols-subgrid gap-y-fluid-xl -mt-(--radius-4xl) pt-[calc(var(--radius-4xl)+var(--spacing-fluid-2xl))] pb-fluid-2xl bg-linear-to-b from-(--pm-config-color)/22 via-(--pm-config-color)/4 via-70% to-surface"
|
|
297
|
+
aria-labelledby="pm-mosaic-heading"
|
|
298
|
+
>
|
|
299
|
+
<div
|
|
300
|
+
class="col-basic flex flex-col items-center gap-fluid-sm text-center motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
301
|
+
data-reveal="true"
|
|
302
|
+
>
|
|
303
|
+
<p-heading id="pm-mosaic-heading" tag="h2" size="xl" align="center">What makes your 911 Targa.</p-heading>
|
|
304
|
+
<p-text class="max-w-prose" size="md" color="contrast-high" align="center">
|
|
305
|
+
The equipment you chose – a combination that exists in this form only once.
|
|
306
|
+
</p-text>
|
|
307
|
+
</div>
|
|
308
|
+
<div class="col-extended grid grid-cols-1 gap-fluid-md md:grid-cols-2 md:grid-rows-2">
|
|
309
|
+
<div
|
|
310
|
+
class="relative isolate flex flex-col justify-end rounded-3xl aspect-3/4 md:row-span-2 motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
311
|
+
data-reveal="true"
|
|
312
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 1)"
|
|
313
|
+
>
|
|
314
|
+
<img
|
|
315
|
+
class="absolute inset-0 -z-1 size-full rounded-[inherit] object-cover"
|
|
316
|
+
src="/examples/media/pm-mosaic-1.webp"
|
|
317
|
+
alt="Front of your 911 Targa in Carmine Red, parked in front of a white brick wall"
|
|
318
|
+
loading="lazy"
|
|
319
|
+
/>
|
|
320
|
+
<div
|
|
321
|
+
class="flex flex-col gap-static-xs p-fluid-md pt-[calc(var(--spacing-fluid-md)+var(--spacing-fluid-lg))] rounded-b-[inherit] bg-fade-to-t"
|
|
322
|
+
>
|
|
323
|
+
<p-text size="sm" color="contrast-high">Exterior colour</p-text>
|
|
324
|
+
<p-text size="lg">Carmine Red</p-text>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
<div
|
|
328
|
+
class="relative isolate flex flex-col justify-end rounded-3xl aspect-3/2 md:aspect-auto motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
329
|
+
data-reveal="true"
|
|
330
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 2)"
|
|
331
|
+
>
|
|
332
|
+
<img
|
|
333
|
+
class="absolute inset-0 -z-1 size-full rounded-[inherit] object-cover"
|
|
334
|
+
src="/examples/media/pm-mosaic-2.webp"
|
|
335
|
+
alt="Cockpit of your 911 Targa with steering wheel, dashboard and doors in Carmine Red leather"
|
|
336
|
+
loading="lazy"
|
|
337
|
+
/>
|
|
338
|
+
<div
|
|
339
|
+
class="flex flex-col gap-static-xs p-fluid-md pt-[calc(var(--spacing-fluid-md)+var(--spacing-fluid-lg))] rounded-b-[inherit] bg-fade-to-t"
|
|
340
|
+
>
|
|
341
|
+
<p-text size="sm" color="contrast-high">Interior colour and material</p-text>
|
|
342
|
+
<p-text size="lg">Leather interior in Carmine Red</p-text>
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
<div
|
|
346
|
+
class="relative isolate flex flex-col justify-end rounded-3xl aspect-3/2 md:aspect-auto motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
347
|
+
data-reveal="true"
|
|
348
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 3)"
|
|
349
|
+
>
|
|
350
|
+
<img
|
|
351
|
+
class="absolute inset-0 -z-1 size-full rounded-[inherit] object-cover"
|
|
352
|
+
src="/examples/media/pm-mosaic-3.webp"
|
|
353
|
+
alt="Rear of your 911 Targa in Carmine Red with its Targa bar and two black tailpipes"
|
|
354
|
+
loading="lazy"
|
|
355
|
+
/>
|
|
356
|
+
<div
|
|
357
|
+
class="flex flex-col gap-static-xs p-fluid-md pt-[calc(var(--spacing-fluid-md)+var(--spacing-fluid-lg))] rounded-b-[inherit] bg-fade-to-t"
|
|
358
|
+
>
|
|
359
|
+
<p-text size="sm" color="contrast-high">Exterior</p-text>
|
|
360
|
+
<p-text size="lg">Sports exhaust system with tailpipes in black</p-text>
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
<div
|
|
365
|
+
class="col-basic flex justify-center motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
366
|
+
data-reveal="true"
|
|
367
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 4)"
|
|
368
|
+
>
|
|
369
|
+
<p-link href="#">To the configurator</p-link>
|
|
370
|
+
</div>
|
|
371
|
+
</section>
|
|
372
|
+
<section
|
|
373
|
+
class="col-full grid grid-cols-subgrid gap-y-fluid-md pt-fluid-lg pb-fluid-2xl overflow-hidden bg-linear-to-b from-surface to-[color-mix(in_srgb,var(--pm-config-color)_45%,black)]"
|
|
374
|
+
aria-labelledby="pm-crosssell-heading"
|
|
375
|
+
>
|
|
376
|
+
<h2
|
|
377
|
+
id="pm-crosssell-heading"
|
|
378
|
+
class="col-full justify-self-center text-center hyphens-auto wrap-break-word font-normal leading-[1.05] bg-linear-to-b from-contrast-medium to-transparent bg-clip-text text-transparent forced-colors:bg-none forced-colors:text-[CanvasText] pointer-events-none text-[clamp(3rem,12.5vw,18.75rem)]"
|
|
379
|
+
>
|
|
380
|
+
<span class="block">Extend</span>
|
|
381
|
+
<span class="block">your dream.</span>
|
|
382
|
+
</h2>
|
|
383
|
+
<div
|
|
384
|
+
class="z-1 col-extended -mt-[6vw] motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
385
|
+
data-reveal="true"
|
|
386
|
+
>
|
|
387
|
+
<p-text class="max-w-prose" size="lg" color="contrast-high">
|
|
388
|
+
Options other drivers particularly value on the 911 Targa.
|
|
389
|
+
</p-text>
|
|
390
|
+
</div>
|
|
391
|
+
<p-carousel
|
|
392
|
+
class="z-1 col-full motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
393
|
+
data-reveal="true"
|
|
394
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 1)"
|
|
395
|
+
width="extended"
|
|
396
|
+
slides-per-page="{ base: 1, s: 2 }"
|
|
397
|
+
pagination="true"
|
|
398
|
+
rewind
|
|
399
|
+
aria="{ 'aria-label': 'Recommended options' }"
|
|
400
|
+
>
|
|
401
|
+
<p-link-tile
|
|
402
|
+
class="h-full"
|
|
403
|
+
href="#"
|
|
404
|
+
label="To the configurator"
|
|
405
|
+
description="Burmester® High-End Surround Sound System"
|
|
406
|
+
aspect-ratio="4/3"
|
|
407
|
+
gradient
|
|
408
|
+
>
|
|
409
|
+
<p-tag slot="header" variant="secondary" compact>Popular</p-tag>
|
|
410
|
+
<img src="/examples/media/pm-xsell-burmester.webp" alt loading="lazy" />
|
|
411
|
+
<p-text slot="footer">Your sound experience, perfected.</p-text>
|
|
412
|
+
</p-link-tile>
|
|
413
|
+
<p-link-tile
|
|
414
|
+
class="h-full"
|
|
415
|
+
href="#"
|
|
416
|
+
label="To the configurator"
|
|
417
|
+
description="HD-Matrix LED main headlights"
|
|
418
|
+
aspect-ratio="4/3"
|
|
419
|
+
gradient
|
|
420
|
+
>
|
|
421
|
+
<p-tag slot="header" variant="secondary" compact>Popular</p-tag>
|
|
422
|
+
<img src="/examples/media/pm-xsell-led.webp" alt loading="lazy" />
|
|
423
|
+
<p-text slot="footer">Precise light for every situation.</p-text>
|
|
424
|
+
</p-link-tile>
|
|
425
|
+
<p-link-tile
|
|
426
|
+
class="h-full"
|
|
427
|
+
href="#"
|
|
428
|
+
label="To the configurator"
|
|
429
|
+
description="Sport Chrono Package"
|
|
430
|
+
aspect-ratio="4/3"
|
|
431
|
+
gradient
|
|
432
|
+
>
|
|
433
|
+
<p-tag slot="header" variant="secondary" compact>Popular</p-tag>
|
|
434
|
+
<img src="/examples/media/pm-xsell-chrono.webp" alt loading="lazy" />
|
|
435
|
+
<p-text slot="footer">For the decisive moment.</p-text>
|
|
436
|
+
</p-link-tile>
|
|
437
|
+
</p-carousel>
|
|
438
|
+
</section>
|
|
439
|
+
<section
|
|
440
|
+
id="pm-voices"
|
|
441
|
+
class="col-full grid grid-cols-subgrid gap-y-fluid-md py-fluid-2xl overflow-hidden bg-surface"
|
|
442
|
+
aria-labelledby="pm-voices-heading"
|
|
443
|
+
>
|
|
444
|
+
<h2
|
|
445
|
+
id="pm-voices-heading"
|
|
446
|
+
class="col-full justify-self-center text-center hyphens-auto wrap-break-word font-normal leading-[1.05] bg-linear-to-b from-contrast-medium to-transparent bg-clip-text text-transparent forced-colors:bg-none forced-colors:text-[CanvasText] pointer-events-none text-5xl"
|
|
447
|
+
>
|
|
448
|
+
<span class="block">Expert opinions</span>
|
|
449
|
+
<span class="block">& reviews.</span>
|
|
450
|
+
</h2>
|
|
451
|
+
<ul class="z-1 col-extended -mt-[3vw] grid gap-fluid-md md:grid-cols-2">
|
|
452
|
+
<li
|
|
453
|
+
class="@container grid rounded-lg bg-frosted p-fluid-sm backdrop-blur-frosted motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
454
|
+
data-reveal="true"
|
|
455
|
+
>
|
|
456
|
+
<div class="flex items-center gap-fluid-md @max-2xs:flex-col @max-2xs:items-stretch">
|
|
457
|
+
<div
|
|
458
|
+
class="relative isolate aspect-video shrink-0 basis-[clamp(7.5rem,38%,21.25rem)] overflow-hidden rounded-md @max-2xs:basis-auto"
|
|
459
|
+
>
|
|
460
|
+
<img
|
|
461
|
+
class="absolute inset-0 size-full object-cover"
|
|
462
|
+
src="https://img.youtube.com/vi/oK9JB7SpZWw/hqdefault.jpg"
|
|
463
|
+
alt
|
|
464
|
+
loading="lazy"
|
|
465
|
+
/>
|
|
466
|
+
<p-button
|
|
467
|
+
class="absolute top-1/2 left-1/2 -translate-1/2"
|
|
468
|
+
type="button"
|
|
469
|
+
icon="play-filled"
|
|
470
|
+
hide-label="true"
|
|
471
|
+
aria="{ 'aria-haspopup': 'dialog' }"
|
|
472
|
+
data-video-id="oK9JB7SpZWw"
|
|
473
|
+
data-video-title="Porsche 911 Targa tested by auto motor und sport"
|
|
474
|
+
>
|
|
475
|
+
Play video: Porsche 911 Targa tested by auto motor und sport
|
|
476
|
+
</p-button>
|
|
477
|
+
</div>
|
|
478
|
+
<div class="flex flex-col gap-static-xs">
|
|
479
|
+
<p-text size="md">“The finest roads of the Black Forest and the Porsche 911 – it simply fits.”</p-text>
|
|
480
|
+
<p-text size="sm" color="contrast-medium">auto motor und sport</p-text>
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
</li>
|
|
484
|
+
<li
|
|
485
|
+
class="@container grid rounded-lg bg-frosted p-fluid-sm backdrop-blur-frosted motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
486
|
+
data-reveal="true"
|
|
487
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 1)"
|
|
488
|
+
>
|
|
489
|
+
<div class="flex items-center gap-fluid-md @max-2xs:flex-col @max-2xs:items-stretch">
|
|
490
|
+
<div
|
|
491
|
+
class="relative isolate aspect-video shrink-0 basis-[clamp(7.5rem,38%,21.25rem)] overflow-hidden rounded-md @max-2xs:basis-auto"
|
|
492
|
+
>
|
|
493
|
+
<img
|
|
494
|
+
class="absolute inset-0 size-full object-cover"
|
|
495
|
+
src="https://img.youtube.com/vi/cYvm2S3pNp8/hqdefault.jpg"
|
|
496
|
+
alt
|
|
497
|
+
loading="lazy"
|
|
498
|
+
/>
|
|
499
|
+
<p-button
|
|
500
|
+
class="absolute top-1/2 left-1/2 -translate-1/2"
|
|
501
|
+
type="button"
|
|
502
|
+
icon="play-filled"
|
|
503
|
+
hide-label="true"
|
|
504
|
+
aria="{ 'aria-haspopup': 'dialog' }"
|
|
505
|
+
data-video-id="cYvm2S3pNp8"
|
|
506
|
+
data-video-title="60 years of the Porsche 911 Targa"
|
|
507
|
+
>
|
|
508
|
+
Play video: 60 years of the Porsche 911 Targa
|
|
509
|
+
</p-button>
|
|
510
|
+
</div>
|
|
511
|
+
<div class="flex flex-col gap-static-xs">
|
|
512
|
+
<p-text size="md">“Sixty years of Targa – a silhouette that still turns every head.”</p-text>
|
|
513
|
+
<p-text size="sm" color="contrast-medium">Porsche</p-text>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
</li>
|
|
517
|
+
<li
|
|
518
|
+
class="@container grid rounded-lg bg-frosted p-fluid-sm backdrop-blur-frosted motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
519
|
+
data-reveal="true"
|
|
520
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 2)"
|
|
521
|
+
>
|
|
522
|
+
<div class="flex items-center gap-fluid-md @max-2xs:flex-col @max-2xs:items-stretch">
|
|
523
|
+
<div
|
|
524
|
+
class="relative isolate aspect-video shrink-0 basis-[clamp(7.5rem,38%,21.25rem)] overflow-hidden rounded-md @max-2xs:basis-auto"
|
|
525
|
+
>
|
|
526
|
+
<img
|
|
527
|
+
class="absolute inset-0 size-full object-cover"
|
|
528
|
+
src="https://img.youtube.com/vi/wUGx2ZcxZok/hqdefault.jpg"
|
|
529
|
+
alt
|
|
530
|
+
loading="lazy"
|
|
531
|
+
/>
|
|
532
|
+
<p-button
|
|
533
|
+
class="absolute top-1/2 left-1/2 -translate-1/2"
|
|
534
|
+
type="button"
|
|
535
|
+
icon="play-filled"
|
|
536
|
+
hide-label="true"
|
|
537
|
+
aria="{ 'aria-haspopup': 'dialog' }"
|
|
538
|
+
data-video-id="wUGx2ZcxZok"
|
|
539
|
+
data-video-title="Porsche 911 Targa 4 GTS driving report"
|
|
540
|
+
>
|
|
541
|
+
Play video: Porsche 911 Targa 4 GTS driving report
|
|
542
|
+
</p-button>
|
|
543
|
+
</div>
|
|
544
|
+
<div class="flex flex-col gap-static-xs">
|
|
545
|
+
<p-text size="md">
|
|
546
|
+
“Open-top driving without compromise: in everyday use the Targa stays remarkably composed.”
|
|
547
|
+
</p-text>
|
|
548
|
+
<p-text size="sm" color="contrast-medium">Driving report</p-text>
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
551
|
+
</li>
|
|
552
|
+
<li
|
|
553
|
+
class="@container grid rounded-lg bg-frosted p-fluid-sm backdrop-blur-frosted motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
554
|
+
data-reveal="true"
|
|
555
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 3)"
|
|
556
|
+
>
|
|
557
|
+
<div class="flex items-center gap-fluid-md @max-2xs:flex-col @max-2xs:items-stretch">
|
|
558
|
+
<div
|
|
559
|
+
class="relative isolate aspect-video shrink-0 basis-[clamp(7.5rem,38%,21.25rem)] overflow-hidden rounded-md @max-2xs:basis-auto"
|
|
560
|
+
>
|
|
561
|
+
<img
|
|
562
|
+
class="absolute inset-0 size-full object-cover"
|
|
563
|
+
src="https://img.youtube.com/vi/D6irwZDE1b4/hqdefault.jpg"
|
|
564
|
+
alt
|
|
565
|
+
loading="lazy"
|
|
566
|
+
/>
|
|
567
|
+
<p-button
|
|
568
|
+
class="absolute top-1/2 left-1/2 -translate-1/2"
|
|
569
|
+
type="button"
|
|
570
|
+
icon="play-filled"
|
|
571
|
+
hide-label="true"
|
|
572
|
+
aria="{ 'aria-haspopup': 'dialog' }"
|
|
573
|
+
data-video-id="D6irwZDE1b4"
|
|
574
|
+
data-video-title="Porsche 911 Targa 4 GTS test report"
|
|
575
|
+
>
|
|
576
|
+
Play video: Porsche 911 Targa 4 GTS test report
|
|
577
|
+
</p-button>
|
|
578
|
+
</div>
|
|
579
|
+
<div class="flex flex-col gap-static-xs">
|
|
580
|
+
<p-text size="md">
|
|
581
|
+
“Between sports car and grand tourer, the Targa 4 GTS strikes the perfect balance.”
|
|
582
|
+
</p-text>
|
|
583
|
+
<p-text size="sm" color="contrast-medium">Test report</p-text>
|
|
584
|
+
</div>
|
|
585
|
+
</div>
|
|
586
|
+
</li>
|
|
587
|
+
</ul>
|
|
588
|
+
</section>
|
|
589
|
+
<section
|
|
590
|
+
class="col-full grid grid-cols-subgrid gap-y-fluid-lg pt-fluid-lg pb-fluid-2xl overflow-hidden bg-surface"
|
|
591
|
+
aria-labelledby="pm-share-heading"
|
|
592
|
+
>
|
|
593
|
+
<h2
|
|
594
|
+
id="pm-share-heading"
|
|
595
|
+
class="col-full justify-self-center text-center hyphens-auto wrap-break-word font-normal leading-[1.05] bg-linear-to-b from-contrast-medium to-transparent bg-clip-text text-transparent forced-colors:bg-none forced-colors:text-[CanvasText] pointer-events-none text-[clamp(3rem,12.5vw,18.75rem)]"
|
|
596
|
+
>
|
|
597
|
+
<span class="block">Joy that</span>
|
|
598
|
+
<span class="block">is shared.</span>
|
|
599
|
+
</h2>
|
|
600
|
+
<div id="pm-fan" class="group/fan relative z-1 col-basic -mt-[10vw] h-[clamp(20rem,34vw,30rem)]">
|
|
601
|
+
<img
|
|
602
|
+
class="absolute left-1/2 top-1/2 w-[clamp(12rem,20vw,18rem)] rounded-lg shadow-lg -translate-1/2 scale-90 opacity-0 motion-safe:transition motion-safe:duration-lg motion-safe:ease-in-out group-data-in-view/fan:scale-100 group-data-in-view/fan:opacity-100 z-1 group-data-in-view/fan:-translate-x-[92%] group-data-in-view/fan:-rotate-13"
|
|
603
|
+
src="/examples/media/pm-share-card.webp"
|
|
604
|
+
alt
|
|
605
|
+
loading="lazy"
|
|
606
|
+
/>
|
|
607
|
+
<img
|
|
608
|
+
class="absolute left-1/2 top-1/2 w-[clamp(12rem,20vw,18rem)] rounded-lg shadow-lg -translate-1/2 scale-90 opacity-0 motion-safe:transition motion-safe:duration-lg motion-safe:ease-in-out group-data-in-view/fan:scale-100 group-data-in-view/fan:opacity-100 z-1 delay-(--transition-duration-sm) group-data-in-view/fan:-translate-x-[8%] group-data-in-view/fan:rotate-13"
|
|
609
|
+
src="/examples/media/pm-share-card.webp"
|
|
610
|
+
alt
|
|
611
|
+
loading="lazy"
|
|
612
|
+
/>
|
|
613
|
+
<img
|
|
614
|
+
class="absolute left-1/2 top-1/2 w-[clamp(12rem,20vw,18rem)] rounded-lg shadow-lg -translate-1/2 scale-90 opacity-0 motion-safe:transition motion-safe:duration-lg motion-safe:ease-in-out group-data-in-view/fan:scale-100 group-data-in-view/fan:opacity-100 z-2 delay-[calc(var(--transition-duration-sm)*2)]"
|
|
615
|
+
src="/examples/media/pm-share-card.webp"
|
|
616
|
+
alt
|
|
617
|
+
loading="lazy"
|
|
618
|
+
/>
|
|
619
|
+
</div>
|
|
620
|
+
<div class="col-basic flex flex-col items-center gap-fluid-lg">
|
|
621
|
+
<p-text
|
|
622
|
+
class="max-w-prose motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
623
|
+
data-reveal="true"
|
|
624
|
+
size="lg"
|
|
625
|
+
color="contrast-high"
|
|
626
|
+
align="center"
|
|
627
|
+
>
|
|
628
|
+
A 911 is a feeling – and anticipation grows when it is shared. Show your loved ones what you are looking
|
|
629
|
+
forward to.
|
|
630
|
+
</p-text>
|
|
631
|
+
<p-link
|
|
632
|
+
class="motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
633
|
+
data-reveal="true"
|
|
634
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 1)"
|
|
635
|
+
href="/examples/media/pm-share-card.webp"
|
|
636
|
+
download="911-targa-share-card.webp"
|
|
637
|
+
icon="download"
|
|
638
|
+
>
|
|
639
|
+
Save
|
|
640
|
+
</p-link>
|
|
641
|
+
</div>
|
|
642
|
+
</section>
|
|
643
|
+
<section
|
|
644
|
+
class="col-full grid grid-cols-subgrid gap-y-fluid-lg py-fluid-2xl"
|
|
645
|
+
aria-labelledby="pm-services-heading"
|
|
646
|
+
>
|
|
647
|
+
<p-heading
|
|
648
|
+
id="pm-services-heading"
|
|
649
|
+
class="col-basic justify-self-center max-w-prose motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
650
|
+
data-reveal="true"
|
|
651
|
+
tag="h2"
|
|
652
|
+
size="xl"
|
|
653
|
+
align="center"
|
|
654
|
+
>
|
|
655
|
+
Useful things on your way to the 911.
|
|
656
|
+
</p-heading>
|
|
657
|
+
<div class="col-basic grid grid-cols-1 gap-fluid-md md:grid-cols-2">
|
|
658
|
+
<p-link-tile
|
|
659
|
+
class="motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
660
|
+
data-reveal="true"
|
|
661
|
+
href="#"
|
|
662
|
+
label="A matter of perspective."
|
|
663
|
+
description="Do some dreams seem far away? Individual instalments for your Targa – calculated transparently, without detours."
|
|
664
|
+
aspect-ratio="{ base: '1/1', m: '3/4' }"
|
|
665
|
+
gradient
|
|
666
|
+
>
|
|
667
|
+
<p-tag slot="header" class="scheme-light whitespace-normal" variant="secondary" compact>
|
|
668
|
+
Porsche Financial Services
|
|
669
|
+
</p-tag>
|
|
670
|
+
<img src="/examples/media/pm-practical-finance.webp" alt loading="lazy" />
|
|
671
|
+
</p-link-tile>
|
|
672
|
+
<p-link-tile
|
|
673
|
+
class="motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
674
|
+
data-reveal="true"
|
|
675
|
+
style="animation-delay: calc(var(--transition-duration-sm) * 1)"
|
|
676
|
+
href="#"
|
|
677
|
+
label="What if?"
|
|
678
|
+
description="You enjoy the here and now while we take care of everything around your insurance."
|
|
679
|
+
aspect-ratio="{ base: '1/1', m: '3/4' }"
|
|
680
|
+
gradient
|
|
681
|
+
>
|
|
682
|
+
<p-tag slot="header" class="scheme-light whitespace-normal" variant="secondary" compact>
|
|
683
|
+
Porsche Insurance
|
|
684
|
+
</p-tag>
|
|
685
|
+
<img src="/examples/media/pm-practical-insurance.webp" alt loading="lazy" />
|
|
686
|
+
</p-link-tile>
|
|
687
|
+
</div>
|
|
688
|
+
</section>
|
|
689
|
+
<section
|
|
690
|
+
id="pm-contact"
|
|
691
|
+
class="col-full grid grid-cols-subgrid pt-fluid-md pb-fluid-2xl"
|
|
692
|
+
aria-labelledby="pm-contact-heading"
|
|
693
|
+
>
|
|
694
|
+
<div
|
|
695
|
+
class="col-basic flex flex-col items-center gap-fluid-lg text-center motion-safe:opacity-0 motion-safe:data-revealed:animate-fade-in-up"
|
|
696
|
+
data-reveal="true"
|
|
697
|
+
>
|
|
698
|
+
<img
|
|
699
|
+
class="size-26 shrink-0 rounded-full object-cover object-[50%_28%]"
|
|
700
|
+
src="/examples/media/pm-advisor.webp"
|
|
701
|
+
alt="Alex Taylor"
|
|
702
|
+
/>
|
|
703
|
+
<div class="flex flex-col items-center gap-static-sm">
|
|
704
|
+
<p-heading id="pm-contact-heading" tag="h2" size="xl" align="center">
|
|
705
|
+
Mr. Doe,
|
|
706
|
+
<br />
|
|
707
|
+
Alex Taylor is here for you.
|
|
708
|
+
</p-heading>
|
|
709
|
+
<p-text size="sm" color="contrast-medium" align="center">Sales advisor · Porsche Centre</p-text>
|
|
710
|
+
<div class="flex flex-wrap items-center justify-center gap-static-md">
|
|
711
|
+
<p-link-pure icon="phone" size="sm" underline><a href="#">+49 123 4567890</a></p-link-pure>
|
|
712
|
+
<p-link-pure class="wrap-anywhere" icon="email" size="sm" underline>
|
|
713
|
+
<a href="#">alex.taylor@example.com</a>
|
|
714
|
+
</p-link-pure>
|
|
715
|
+
</div>
|
|
716
|
+
</div>
|
|
717
|
+
<p-text class="max-w-prose" size="md" color="contrast-medium" align="center">
|
|
718
|
+
From confirmation to key handover, your personal advisor accompanies you – directly, uncomplicated and with
|
|
719
|
+
an open ear for every question about your 911 Targa.
|
|
720
|
+
</p-text>
|
|
721
|
+
</div>
|
|
722
|
+
</section>
|
|
723
|
+
<section
|
|
724
|
+
class="col-extended justify-self-center w-full max-w-prose grid gap-fluid-md justify-items-center py-fluid-md"
|
|
725
|
+
aria-label="Feedback"
|
|
726
|
+
>
|
|
727
|
+
<p-heading
|
|
728
|
+
id="feedback-question"
|
|
729
|
+
class="focus-visible:outline outline-focus outline-offset-2 rounded-md"
|
|
730
|
+
tag="h2"
|
|
731
|
+
size="md"
|
|
732
|
+
align="center"
|
|
733
|
+
tabindex="-1"
|
|
734
|
+
>
|
|
735
|
+
How satisfied are you with the information shown on this page?
|
|
736
|
+
</p-heading>
|
|
737
|
+
<form id="feedback-form" class="grid gap-fluid-md justify-items-center">
|
|
738
|
+
<div class="w-full grid md:grid-cols-[auto_minmax(320px,1fr)_auto] items-center gap-static-md">
|
|
739
|
+
<p-text
|
|
740
|
+
class="max-sm:hidden row-2 md:row-auto col-1 md:col-auto justify-self-start"
|
|
741
|
+
size="sm"
|
|
742
|
+
align="start"
|
|
743
|
+
color="contrast-medium"
|
|
744
|
+
>
|
|
745
|
+
Very dissatisfied
|
|
746
|
+
</p-text>
|
|
747
|
+
<p-segmented-control
|
|
748
|
+
id="feedback-rating"
|
|
749
|
+
class="row-1 md:row-auto col-span-2 md:col-auto"
|
|
750
|
+
columns="{ base: 1, s: 5 }"
|
|
751
|
+
label="Select your satisfaction from the scale 1 (very dissatisfied) to 5 (very satisfied)"
|
|
752
|
+
hide-label="true"
|
|
753
|
+
>
|
|
754
|
+
<p-segmented-control-item value="1">
|
|
755
|
+
1
|
|
756
|
+
<span class="sm:sr-only">(very dissatisfied)</span>
|
|
757
|
+
</p-segmented-control-item>
|
|
758
|
+
<p-segmented-control-item value="2">
|
|
759
|
+
2
|
|
760
|
+
<span class="sm:sr-only">(dissatisfied)</span>
|
|
761
|
+
</p-segmented-control-item>
|
|
762
|
+
<p-segmented-control-item value="3">
|
|
763
|
+
3
|
|
764
|
+
<span class="sm:sr-only">(neutral)</span>
|
|
765
|
+
</p-segmented-control-item>
|
|
766
|
+
<p-segmented-control-item value="4">
|
|
767
|
+
4
|
|
768
|
+
<span class="sm:sr-only">(satisfied)</span>
|
|
769
|
+
</p-segmented-control-item>
|
|
770
|
+
<p-segmented-control-item value="5">
|
|
771
|
+
5
|
|
772
|
+
<span class="sm:sr-only">(very satisfied)</span>
|
|
773
|
+
</p-segmented-control-item>
|
|
774
|
+
</p-segmented-control>
|
|
775
|
+
<p-text
|
|
776
|
+
class="max-sm:hidden row-2 md:row-auto col-2 md:col-auto justify-self-end"
|
|
777
|
+
size="sm"
|
|
778
|
+
align="end"
|
|
779
|
+
color="contrast-medium"
|
|
780
|
+
>
|
|
781
|
+
Very satisfied
|
|
782
|
+
</p-text>
|
|
783
|
+
</div>
|
|
784
|
+
<p-textarea
|
|
785
|
+
id="feedback-comment"
|
|
786
|
+
class="w-full"
|
|
787
|
+
name="comment"
|
|
788
|
+
label="What two things could we do to make this page better?"
|
|
789
|
+
rows="4"
|
|
790
|
+
hidden
|
|
791
|
+
></p-textarea>
|
|
792
|
+
<p-button id="feedback-submit" type="button" hidden>Submit feedback</p-button>
|
|
793
|
+
</form>
|
|
794
|
+
<div
|
|
795
|
+
id="feedback-thanks"
|
|
796
|
+
class="grid gap-fluid-md justify-items-center"
|
|
797
|
+
aria-live="polite"
|
|
798
|
+
aria-atomic="true"
|
|
799
|
+
hidden
|
|
800
|
+
>
|
|
801
|
+
<p-heading
|
|
802
|
+
id="feedback-thanks-heading"
|
|
803
|
+
class="focus-visible:outline outline-focus outline-offset-2 rounded-md"
|
|
804
|
+
tag="h2"
|
|
805
|
+
size="md"
|
|
806
|
+
align="center"
|
|
807
|
+
tabindex="-1"
|
|
808
|
+
>
|
|
809
|
+
Thank you for your feedback
|
|
810
|
+
</p-heading>
|
|
811
|
+
<p-text align="center">Your feedback helps us continuously improve our page.</p-text>
|
|
812
|
+
<p-button id="feedback-restart" type="button" variant="secondary" icon="refresh">Give new feedback</p-button>
|
|
813
|
+
</div>
|
|
814
|
+
</section>
|
|
815
|
+
</main>
|
|
816
|
+
<footer class="grid-template py-fluid-lg bg-canvas scheme-only-dark">
|
|
817
|
+
<article class="col-extended grid gap-fluid-md mt-fluid-md" aria-label="Consumption and emission information">
|
|
818
|
+
<p-text size="2xs" color="contrast-medium">
|
|
819
|
+
The consumption and emission values stated were determined in accordance with the legally prescribed
|
|
820
|
+
measurement procedures. Since September 1, 2017, certain new vehicles have been type-approved in accordance
|
|
821
|
+
with the Worldwide Harmonized Vehicles Test Procedure (WLTP), a more realistic test procedure for measuring
|
|
822
|
+
fuel/electricity consumption and CO₂ emissions. Since September 1, 2018, the WLTP has replaced the New
|
|
823
|
+
European Driving Cycle (NEDC). Due to the more realistic testing conditions, the fuel/electricity consumption
|
|
824
|
+
and CO₂ emission values measured according to the WLTP are, in many cases, higher than those measured
|
|
825
|
+
according to the NEDC. As a result, vehicle taxation may change accordingly starting September 1, 2018.
|
|
826
|
+
Further information on the differences between WLTP and NEDC can be found at www.porsche.com/wltp.
|
|
827
|
+
</p-text>
|
|
828
|
+
<p-text size="2xs" color="contrast-medium">
|
|
829
|
+
Currently, regardless of the applied type-approval procedure, it remains mandatory to communicate NEDC values.
|
|
830
|
+
The additional disclosure of WLTP values may be done on a voluntary basis until their mandatory use. In the
|
|
831
|
+
case of new vehicles type-approved according to WLTP, NEDC values are derived from WLTP values and stated
|
|
832
|
+
during the transitional period. Where NEDC values are stated as ranges, they do not refer to a specific
|
|
833
|
+
individual vehicle and are not part of the offer. They serve solely for comparison purposes between different
|
|
834
|
+
vehicle types. Optional equipment and accessories (attachments, tire formats, etc.) can alter relevant vehicle
|
|
835
|
+
parameters such as weight, rolling resistance, and aerodynamics, and can influence fuel/electricity
|
|
836
|
+
consumption, CO₂ emissions, and performance values of a vehicle in addition to weather and traffic conditions
|
|
837
|
+
and individual driving behavior. Further information on the official fuel/electricity consumption and official
|
|
838
|
+
specific CO₂ emissions of new passenger cars can be found in the "Guide on fuel consumption, CO₂
|
|
839
|
+
emissions and electricity consumption of new passenger cars," available free of charge at all sales
|
|
840
|
+
outlets and from DAT.
|
|
841
|
+
</p-text>
|
|
842
|
+
<p-text size="2xs" color="contrast-medium">
|
|
843
|
+
Neither the number of active users of this Porsche Connect Store nor the number of active users of the App
|
|
844
|
+
Center available in the connected vehicle (Macan electric) upon activation of the Connect services exceeds the
|
|
845
|
+
threshold of 45 million active users in the European Union as defined by the Digital Services Act (DSA).
|
|
846
|
+
Important information regarding fully electric Porsche models can be found here.
|
|
847
|
+
</p-text>
|
|
848
|
+
</article>
|
|
849
|
+
<div class="col-extended grid gap-fluid-md justify-items-center mt-fluid-md">
|
|
850
|
+
<p-wordmark></p-wordmark>
|
|
851
|
+
<p-text size="2xs" color="contrast-medium" align="center">© 2026 Porsche Sales and Marketplace, Inc.</p-text>
|
|
852
|
+
<ul class="flex flex-wrap justify-center gap-fluid-md text-center">
|
|
853
|
+
<li>
|
|
854
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Legal notice</a></p-link-pure>
|
|
855
|
+
</li>
|
|
856
|
+
<li>
|
|
857
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Privacy notice</a></p-link-pure>
|
|
858
|
+
</li>
|
|
859
|
+
<li>
|
|
860
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Accessibility Statement</a></p-link-pure>
|
|
861
|
+
</li>
|
|
862
|
+
<li>
|
|
863
|
+
<p-link-pure icon="none" size="xs" underline><a href="#">Open Source Software Notice</a></p-link-pure>
|
|
864
|
+
</li>
|
|
865
|
+
</ul>
|
|
866
|
+
</div>
|
|
867
|
+
</footer>
|
|
868
|
+
<aside
|
|
869
|
+
id="pm-contact-bar"
|
|
870
|
+
class="scheme-only-dark group/bar fixed inset-x-0 bottom-0 z-50 flex justify-center px-fluid-md pb-fluid-md translate-y-[130%] pointer-events-none motion-safe:transition-[translate] motion-safe:duration-lg motion-safe:ease-in-out data-shown:translate-y-0 data-shown:pointer-events-auto"
|
|
871
|
+
aria-label="Your sales advisor"
|
|
872
|
+
inert
|
|
873
|
+
>
|
|
874
|
+
<div class="@container flex w-full justify-center">
|
|
875
|
+
<div
|
|
876
|
+
class="flex max-w-full items-center gap-static-sm rounded-full bg-frosted backdrop-blur-frosted py-static-sm ps-static-sm pe-static-md shadow-lg opacity-0 motion-safe:transition-opacity motion-safe:duration-lg motion-safe:ease-in-out group-data-shown/bar:opacity-100 @max-[15rem]:pe-static-sm"
|
|
877
|
+
>
|
|
878
|
+
<img
|
|
879
|
+
class="size-12 shrink-0 rounded-full object-cover object-[50%_28%] @max-[15rem]:hidden"
|
|
880
|
+
src="/examples/media/pm-advisor.webp"
|
|
881
|
+
alt
|
|
882
|
+
/>
|
|
883
|
+
<div class="flex min-w-0 flex-col @max-[15rem]:ps-static-sm">
|
|
884
|
+
<p-text size="sm" weight="semibold">Alex Taylor</p-text>
|
|
885
|
+
<p-text class="@max-xl:hidden" size="xs" color="contrast-medium">Sales advisor · Porsche Centre</p-text>
|
|
886
|
+
</div>
|
|
887
|
+
<div class="ms-static-md flex shrink-0 items-center gap-static-xs @max-[15rem]:ms-0">
|
|
888
|
+
<p-link href="#" variant="secondary" icon="phone" hide-label="true" compact="true">Call Alex Taylor</p-link>
|
|
889
|
+
<p-link href="#" variant="secondary" icon="email" hide-label="true" compact="true">
|
|
890
|
+
Email Alex Taylor
|
|
891
|
+
</p-link>
|
|
892
|
+
</div>
|
|
893
|
+
</div>
|
|
894
|
+
</div>
|
|
895
|
+
</aside>
|
|
896
|
+
<p-modal
|
|
897
|
+
id="pm-video-modal"
|
|
898
|
+
class="scheme-only-dark [--p-modal-width:min(960px,calc(100%-2rem))]"
|
|
899
|
+
aria="{ 'aria-label': 'Play video' }"
|
|
900
|
+
>
|
|
901
|
+
<iframe
|
|
902
|
+
id="pm-video-iframe"
|
|
903
|
+
class="block -mt-(--ref-p-modal-pt) -mx-(--ref-p-modal-px) -mb-(--ref-p-modal-pb) w-[calc(100%+2*var(--ref-p-modal-px))] aspect-video border-0 bg-canvas"
|
|
904
|
+
title="Video"
|
|
905
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
906
|
+
referrerpolicy="strict-origin-when-cross-origin"
|
|
907
|
+
allowfullscreen
|
|
908
|
+
></iframe>
|
|
909
|
+
</p-modal>
|
|
910
|
+
<script type="module" src="main.js"></script>
|
|
911
|
+
</body>
|
|
912
|
+
</html>
|
|
913
|
+
```
|
|
914
|
+
|
|
915
|
+
## Script
|
|
916
|
+
|
|
917
|
+
```js
|
|
918
|
+
// DO NOT USE IN PRODUCTION!
|
|
919
|
+
// EXAMPLE CODE FOR DEMONSTRATION PURPOSE ONLY.
|
|
920
|
+
|
|
921
|
+
// Behaviour of the feedback flow: which of its two steps – the question or the confirmation – is shown.
|
|
922
|
+
//
|
|
923
|
+
// No data is sent anywhere: the submission is simulated, so the flow can be reviewed end to end.
|
|
924
|
+
|
|
925
|
+
const question = document.getElementById('feedback-question');
|
|
926
|
+
const form = document.getElementById('feedback-form');
|
|
927
|
+
const rating = document.getElementById('feedback-rating');
|
|
928
|
+
const comment = document.getElementById('feedback-comment');
|
|
929
|
+
const submit = document.getElementById('feedback-submit');
|
|
930
|
+
const thanks = document.getElementById('feedback-thanks');
|
|
931
|
+
const thanksHeading = document.getElementById('feedback-thanks-heading');
|
|
932
|
+
|
|
933
|
+
// Handle of the simulated request, so dismissing the modal mid-submission can cancel it.
|
|
934
|
+
let pendingSubmission;
|
|
935
|
+
|
|
936
|
+
const cancelSubmission = () => {
|
|
937
|
+
window.clearTimeout(pendingSubmission);
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
// Choosing a rating reveals the optional free-text field and the submit button.
|
|
941
|
+
rating.addEventListener('change', () => {
|
|
942
|
+
comment.hidden = false;
|
|
943
|
+
submit.hidden = false;
|
|
944
|
+
});
|
|
945
|
+
|
|
946
|
+
// Reveal the confirmation once the "submission" has completed.
|
|
947
|
+
const showConfirmation = () => {
|
|
948
|
+
form.hidden = true;
|
|
949
|
+
question.hidden = true;
|
|
950
|
+
thanks.hidden = false;
|
|
951
|
+
submit.loading = false;
|
|
952
|
+
// Move focus to the confirmation so keyboard and screen reader users are informed.
|
|
953
|
+
thanksHeading.focus();
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
submit.addEventListener('click', () => {
|
|
957
|
+
// Simulate a short server round-trip: show a loading spinner while "submitting", then reveal the
|
|
958
|
+
// confirmation. In a real integration the request would happen here.
|
|
959
|
+
submit.loading = true;
|
|
960
|
+
pendingSubmission = window.setTimeout(showConfirmation, 1200);
|
|
961
|
+
});
|
|
962
|
+
|
|
963
|
+
const startOver = () => {
|
|
964
|
+
cancelSubmission();
|
|
965
|
+
rating.value = '';
|
|
966
|
+
comment.value = '';
|
|
967
|
+
comment.hidden = true;
|
|
968
|
+
submit.loading = false;
|
|
969
|
+
submit.hidden = true;
|
|
970
|
+
thanks.hidden = true;
|
|
971
|
+
question.hidden = false;
|
|
972
|
+
form.hidden = false;
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
// Offered by the flow shown in the page: starting over from the confirmation.
|
|
976
|
+
document.getElementById('feedback-restart')?.addEventListener('click', () => {
|
|
977
|
+
startOver();
|
|
978
|
+
// Return focus to the question so the flow is re-announced and can be repeated from the start.
|
|
979
|
+
question.focus();
|
|
980
|
+
});
|
|
981
|
+
|
|
982
|
+
// Shown in a modal, the flow follows it: a submission still pending when the modal is dismissed is cancelled, and
|
|
983
|
+
// the next open starts fresh. The reset waits for "motionHiddenEnd", which fires once the close animation has
|
|
984
|
+
// finished, so the content does not visibly snap back while the dialog is still on screen.
|
|
985
|
+
const enclosingModal = form.closest('p-modal');
|
|
986
|
+
enclosingModal?.addEventListener('dismiss', cancelSubmission);
|
|
987
|
+
enclosingModal?.addEventListener('motionHiddenEnd', startOver);
|
|
988
|
+
|
|
989
|
+
// Behaviour of the hero: fades the scroll hint.
|
|
990
|
+
|
|
991
|
+
const hero = document.getElementById('pm-hero');
|
|
992
|
+
const scrollNext = document.getElementById('pm-scroll-next');
|
|
993
|
+
const heroReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
994
|
+
|
|
995
|
+
const clamp01 = (value) => Math.min(1, Math.max(0, value));
|
|
996
|
+
|
|
997
|
+
let heroFrameRequest = 0;
|
|
998
|
+
|
|
999
|
+
const updateHero = () => {
|
|
1000
|
+
const progress = clamp01(-hero.getBoundingClientRect().top / (window.innerHeight * 0.85));
|
|
1001
|
+
|
|
1002
|
+
const hintOpacity = clamp01(1 - progress * 2.5);
|
|
1003
|
+
scrollNext.style.opacity = String(hintOpacity);
|
|
1004
|
+
scrollNext.inert = hintOpacity === 0;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
window.addEventListener(
|
|
1008
|
+
'scroll',
|
|
1009
|
+
() => {
|
|
1010
|
+
cancelAnimationFrame(heroFrameRequest);
|
|
1011
|
+
heroFrameRequest = requestAnimationFrame(updateHero);
|
|
1012
|
+
},
|
|
1013
|
+
{ passive: true }
|
|
1014
|
+
);
|
|
1015
|
+
window.addEventListener('resize', updateHero);
|
|
1016
|
+
|
|
1017
|
+
scrollNext.addEventListener('click', () => {
|
|
1018
|
+
window.scrollBy({ top: window.innerHeight * 0.9, behavior: heroReducedMotion ? 'auto' : 'smooth' });
|
|
1019
|
+
});
|
|
1020
|
+
|
|
1021
|
+
updateHero();
|
|
1022
|
+
|
|
1023
|
+
// Behaviour of the reveal on scroll: every marked element plays its entrance once it enters the viewport.
|
|
1024
|
+
|
|
1025
|
+
const revealObserver = new IntersectionObserver((entries, observer) => {
|
|
1026
|
+
for (const entry of entries) {
|
|
1027
|
+
if (!entry.isIntersecting) continue;
|
|
1028
|
+
entry.target.dataset.revealed = '';
|
|
1029
|
+
observer.unobserve(entry.target);
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
|
|
1033
|
+
for (const element of document.querySelectorAll('[data-reveal]')) {
|
|
1034
|
+
revealObserver.observe(element);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
// Behaviour of the key figures: they count up from zero once they enter the viewport.
|
|
1038
|
+
|
|
1039
|
+
const kpiGrid = document.getElementById('pm-kpis');
|
|
1040
|
+
const countUps = [...kpiGrid.querySelectorAll('[data-countup]')];
|
|
1041
|
+
|
|
1042
|
+
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
1043
|
+
for (const element of countUps) {
|
|
1044
|
+
element.textContent = (0).toFixed(Number(element.dataset.decimals));
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
const countUpObserver = new IntersectionObserver(
|
|
1048
|
+
(entries, observer) => {
|
|
1049
|
+
if (!entries.some((entry) => entry.isIntersecting)) return;
|
|
1050
|
+
observer.disconnect();
|
|
1051
|
+
|
|
1052
|
+
for (const element of countUps) {
|
|
1053
|
+
const target = Number(element.dataset.countup);
|
|
1054
|
+
const decimals = Number(element.dataset.decimals);
|
|
1055
|
+
let start;
|
|
1056
|
+
|
|
1057
|
+
const tick = (time) => {
|
|
1058
|
+
start ??= time;
|
|
1059
|
+
const progress = Math.min(1, (time - start) / 1400);
|
|
1060
|
+
element.textContent = (target * (1 - (1 - progress) ** 3)).toFixed(decimals);
|
|
1061
|
+
if (progress < 1) requestAnimationFrame(tick);
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
requestAnimationFrame(tick);
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
{ threshold: 0.4 }
|
|
1068
|
+
);
|
|
1069
|
+
|
|
1070
|
+
countUpObserver.observe(kpiGrid);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
// Behaviour of the engine sound: plays and pauses the sample and follows its actual state.
|
|
1074
|
+
|
|
1075
|
+
const soundPlayer = document.getElementById('pm-sound');
|
|
1076
|
+
const soundToggle = document.getElementById('pm-sound-toggle');
|
|
1077
|
+
const soundAudio = document.getElementById('pm-sound-audio');
|
|
1078
|
+
|
|
1079
|
+
const syncSoundPlayer = () => {
|
|
1080
|
+
const playing = !soundAudio.paused;
|
|
1081
|
+
soundPlayer.toggleAttribute('data-playing', playing);
|
|
1082
|
+
soundToggle.icon = playing ? 'pause' : 'play-filled';
|
|
1083
|
+
soundToggle.textContent = playing ? 'Pause engine sound' : 'Play engine sound';
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
soundToggle.addEventListener('click', () => {
|
|
1087
|
+
if (soundAudio.paused) {
|
|
1088
|
+
soundAudio.play();
|
|
1089
|
+
} else {
|
|
1090
|
+
soundAudio.pause();
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
|
|
1094
|
+
for (const type of ['play', 'pause', 'ended']) {
|
|
1095
|
+
soundAudio.addEventListener(type, syncSoundPlayer);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
// Behaviour of the share cards: they fan out once they enter the viewport – right away without motion.
|
|
1099
|
+
|
|
1100
|
+
const fan = document.getElementById('pm-fan');
|
|
1101
|
+
|
|
1102
|
+
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
1103
|
+
fan.dataset.inView = '';
|
|
1104
|
+
} else {
|
|
1105
|
+
const fanObserver = new IntersectionObserver(
|
|
1106
|
+
(entries, observer) => {
|
|
1107
|
+
if (!entries.some((entry) => entry.isIntersecting)) return;
|
|
1108
|
+
fan.dataset.inView = '';
|
|
1109
|
+
observer.disconnect();
|
|
1110
|
+
},
|
|
1111
|
+
{ threshold: 0.15 }
|
|
1112
|
+
);
|
|
1113
|
+
|
|
1114
|
+
fanObserver.observe(fan);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// Behaviour of the reviews: a play button opens its clip in the modal, closing the modal unloads the player. The
|
|
1118
|
+
// player and the modal are named after the selected review, so it is identified once the focus moves into them.
|
|
1119
|
+
|
|
1120
|
+
const videoModal = document.getElementById('pm-video-modal');
|
|
1121
|
+
const videoFrame = document.getElementById('pm-video-iframe');
|
|
1122
|
+
|
|
1123
|
+
for (const button of document.getElementById('pm-voices').querySelectorAll('[data-video-id]')) {
|
|
1124
|
+
button.addEventListener('click', () => {
|
|
1125
|
+
videoFrame.src = 'https://www.youtube-nocookie.com/embed/' + button.dataset.videoId + '?autoplay=1&rel=0';
|
|
1126
|
+
videoFrame.title = button.dataset.videoTitle;
|
|
1127
|
+
videoModal.aria = { 'aria-label': button.dataset.videoTitle };
|
|
1128
|
+
videoModal.open = true;
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
videoModal.addEventListener('dismiss', () => {
|
|
1133
|
+
videoModal.open = false;
|
|
1134
|
+
videoFrame.removeAttribute('src');
|
|
1135
|
+
});
|
|
1136
|
+
|
|
1137
|
+
// Behaviour of the contact bar: shown once the hero has scrolled away, unless the contact section or the footer
|
|
1138
|
+
// is on screen.
|
|
1139
|
+
|
|
1140
|
+
const contactBar = document.getElementById('pm-contact-bar');
|
|
1141
|
+
const contactSection = document.getElementById('pm-contact');
|
|
1142
|
+
const pageFooter = document.querySelector('footer');
|
|
1143
|
+
const coveringSections = new Set();
|
|
1144
|
+
|
|
1145
|
+
const syncContactBar = () => {
|
|
1146
|
+
const shown = window.scrollY > window.innerHeight * 0.7 && coveringSections.size === 0;
|
|
1147
|
+
contactBar.toggleAttribute('data-shown', shown);
|
|
1148
|
+
contactBar.inert = !shown;
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
const contactBarObserver = new IntersectionObserver((entries) => {
|
|
1152
|
+
for (const entry of entries) {
|
|
1153
|
+
if (entry.isIntersecting) {
|
|
1154
|
+
coveringSections.add(entry.target);
|
|
1155
|
+
} else {
|
|
1156
|
+
coveringSections.delete(entry.target);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
syncContactBar();
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
contactBarObserver.observe(contactSection);
|
|
1163
|
+
contactBarObserver.observe(pageFooter);
|
|
1164
|
+
window.addEventListener('scroll', syncContactBar, { passive: true });
|
|
1165
|
+
syncContactBar();
|
|
1166
|
+
```
|