generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MWPW-153237: Test content for CCD validation (#3040)
* MWPW-153237: Test content for CCD validation * review comments * fix merge
- Loading branch information
Showing
9 changed files
with
167 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>CCD Gallery</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<script> | ||
if (/localhost/.test(window.location.host)) { | ||
const meta = document.createElement('meta'); | ||
meta.name = 'aem-base-url'; | ||
meta.content = 'http://localhost:8080'; // local AEM proxy URL | ||
document.head.appendChild(meta); | ||
} | ||
</script> | ||
<!-- Include your custom element script as an ES6 module --> | ||
<script src="../../../features/spectrum-web-components/dist/button.js" type="module"></script> | ||
<script type="module" src="../../../deps/mas/mas.js"></script> | ||
|
||
<script type="module"> | ||
const params = new URLSearchParams(document.location.search); | ||
// theme | ||
const darkTheme = params?.get('theme')?.toLowerCase() === 'dark'; | ||
const theme = document.createElement('script'); | ||
theme.setAttribute('src', `../../../features/spectrum-web-components/dist/themes/${darkTheme ? 'dark' : 'light'}.js`); | ||
theme.setAttribute('type', `module`); | ||
document.head.appendChild(theme); | ||
// mas-commerce-service | ||
const masCommerceService = document.createElement('mas-commerce-service'); | ||
['locale','language','env'].forEach((attribute) => { | ||
const value = params.get(attribute); | ||
if (value) masCommerceService.setAttribute(attribute, value); | ||
}); | ||
document.head.appendChild(masCommerceService); | ||
</script> | ||
<link rel="stylesheet" href="../../../styles/styles.css"> | ||
<!-- Include any additional stylesheets --> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<sp-theme color="light" scale="medium"> | ||
<div class="gallery-content"> | ||
<div class="vpn-banner"> | ||
Please enable VPN | ||
</div> | ||
|
||
<h1 id="ccd-gallery" tabindex="-1">CCD Gallery <a class="header-anchor" href="#ccd-gallery" href="#ccd-gallery" title="Permalink to this heading">#</a></h1> | ||
Switch Theme: <a href="?theme=dark">Dark</a> OR <a href="?theme=light">Light</a> | ||
|
||
<h2 id="ccd-slice-card" tabindex="-1">CCD Slice Card <a class="header-anchor" href="#ccd-slice-card" href="#ccd-slice-card" title="Permalink to this heading">#</a></h2> | ||
<div class="gallery-grid-3"> | ||
<h5>Percentage</h5> | ||
<h5>Two icons & pricing</h5> | ||
<h5>See Terms link</h5> | ||
<merch-card><aem-fragment fragment="0ef2a804-e788-4959-abb8-b4d96a18b0ef"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="58c7906f-70a6-4e2b-bc29-257ff2ade513"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="51c23f28-504f-450d-9764-0e60f1e279b2"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="2a293069-1f9a-45ae-9840-2fa0303fe685"></aem-fragment></merch-card> | ||
</div> | ||
|
||
<h2 id="ccd-slice-wide-card" tabindex="-1">CCD Slice Wide Card <a class="header-anchor" href="#ccd-slice-wide-card" href="#ccd-slice-wide-card" title="Permalink to this heading">#</a></h2> | ||
<div> | ||
<merch-card><aem-fragment fragment="bdf40d06-5914-4f1f-aa10-77c5676fe671"></aem-fragment></merch-card> | ||
</div> | ||
|
||
<h2 id="ccd-suggested-card" tabindex="-1">CCD Suggested Card <a class="header-anchor" href="#ccd-suggested-card" href="#ccd-suggested-card" title="Permalink to this heading">#</a></h2> | ||
<div class="gallery-grid-3"> | ||
<h5>With eyebrow</h5> | ||
<h5>See Terms link</h5> | ||
<h5>No eyebrow, price with term</h5> | ||
<merch-card><aem-fragment fragment="0a2ac7c9-1965-488e-beca-856849305313"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="549f6981-f5c8-4512-b41c-313d60f375b2"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="8b198434-f32d-4a77-8be0-cd6b9f7155b1"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="cdfae8c5-4129-43bc-a283-9ce46d07e21f"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="33c8f437-3c39-48cc-8afd-938a13af5732"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="45783ec8-ed85-4595-a445-3f018ac4ad9d"></aem-fragment></merch-card> | ||
<merch-card><aem-fragment fragment="6217fb6d-e793-4235-af70-6f82401fc5de"></aem-fragment></merch-card> | ||
</div> | ||
</div> | ||
</sp-theme> | ||
<script type="module"> | ||
if (new URLSearchParams(document.location.search)?.get('theme')?.toLowerCase() === 'dark') { | ||
document.querySelectorAll('sp-theme').forEach((theme) => theme.setAttribute('color', 'dark')); | ||
} | ||
</script> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
libs/features/spectrum-web-components/dist/themes/light.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import '@spectrum-web-components/theme/sp-theme.js'; | ||
import '@spectrum-web-components/theme/theme-dark.js'; | ||
import '@spectrum-web-components/theme/scale-medium.js'; | ||
export * from '@spectrum-web-components/theme'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import '@spectrum-web-components/theme/sp-theme.js'; | ||
import '@spectrum-web-components/theme/theme-light.js'; | ||
import '@spectrum-web-components/theme/scale-medium.js'; | ||
export * from '@spectrum-web-components/theme'; |