|
| 1 | + |
| 2 | + <!DOCTYPE html> |
| 3 | + <html> |
| 4 | + <head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <title>M@S Web Components</title> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 8 | + <link rel="stylesheet" href="spectrum.css"> |
| 9 | + <link rel="stylesheet" href="styles.css"> |
| 10 | + <link rel="stylesheet" href="https://p.typekit.net/p.css?s=1&k=hah7vzn&ht=tk&f=7180.7181.7182.7183.22474.22749.22750.22751.22753&a=8634977&app=typekit&e=css"> |
| 11 | + <link rel="stylesheet" href="https://use.typekit.net/hah7vzn.css"> |
| 12 | + |
| 13 | + <!-- Include your custom element script as an ES6 module --> |
| 14 | + <script type="module"> |
| 15 | + import { init } from './common.js'; |
| 16 | + init(); |
| 17 | + </script> |
| 18 | + <!-- Include Highlight.js stylesheet for syntax highlighting --> |
| 19 | + <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css"> |
| 20 | + <script type="module" src="./mas-sidenav.js"></script> |
| 21 | +</head> |
| 22 | +<body class="spectrum spectrum--medium spectrum--light"> |
| 23 | + <aside is="mas-sidenav"></aside> |
| 24 | +<main> |
| 25 | +<sp-theme color="light" scale="medium"> |
| 26 | +<script type="module" src="../../../features/spectrum-web-components/dist/theme.js"></script> |
| 27 | +<script type="module" src="../../../features/spectrum-web-components/dist/button.js"></script> |
| 28 | +<script type="module" src="../../../features/spectrum-web-components/dist/tooltip.js"></script> |
| 29 | +<script type="module" src="../../../features/spectrum-web-components/dist/overlay.js"></script> |
| 30 | +<script type="module" src="../../../features/spectrum-web-components/dist/popover.js"></script> |
| 31 | +<div class="commerce-gallery-content"> |
| 32 | + <h1 id="commerce-gallery">Commerce Gallery</h1> |
| 33 | + <div class="commerce-container"> |
| 34 | + <h2 id="commerce-plans">Commerce Plans <a class="header-anchor" href="#commerce-plans" title="Permalink to this heading">#</a></h2> |
| 35 | + <h3 class="size-header">Featured Commerce Plans</h3> |
| 36 | + <div class="four-merch-cards commerce-plans"> |
| 37 | + <div class="commerce-item"> |
| 38 | + <merch-card spectrum="swc"><aem-fragment fragment="8bd9c722-8b3c-4c65-b135-7f6a1b84f800"></aem-fragment></merch-card> |
| 39 | + <a class="commerce-link" target="_blank" href="https://main--mas--adobecom.aem.live/studio.html?#path=nala&query=8bd9c722-8b3c-4c65-b135-7f6a1b84f800"> Open in Studio</a> |
| 40 | + </div> |
| 41 | + <div class="commerce-item"> |
| 42 | + <merch-card spectrum="swc"><aem-fragment fragment="8487f19d-b038-44fa-9db6-0dc55a85b326"></aem-fragment></merch-card> |
| 43 | + <a class="commerce-link" target="_blank" href="https://main--mas--adobecom.aem.live/studio.html?#path=nala&query=8487f19d-b038-44fa-9db6-0dc55a85b326"> Open in Studio</a> |
| 44 | + </div> |
| 45 | + <div class="commerce-item"> |
| 46 | + <merch-card spectrum="swc"><aem-fragment fragment="a7179d35-1dd2-4f9a-9223-2f8c7062acc7"></aem-fragment></merch-card> |
| 47 | + <a class="commerce-link" target="_blank" href="https://main--mas--adobecom.aem.live/studio.html?#path=nala&query=a7179d35-1dd2-4f9a-9223-2f8c7062acc7"> Open in Studio</a> |
| 48 | + </div> |
| 49 | + <div class="commerce-item"> |
| 50 | + <merch-card spectrum="swc"><aem-fragment fragment="e243cb07-cb53-439d-bb62-d80f0fd719e5"></aem-fragment></merch-card> |
| 51 | + <a class="commerce-link" target="_blank" href="https://main--mas--adobecom.aem.live/studio.html?#path=nala&query=e243cb07-cb53-439d-bb62-d80f0fd719e5"> Open in Studio</a> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | +</div> |
| 56 | +</sp-theme> |
| 57 | +</main> |
| 58 | +<script type="module"> |
| 59 | + document.querySelectorAll('code.demo').forEach(el => { |
| 60 | + const targetContainer = document.createElement('div'); |
| 61 | + targetContainer.classList.toggle('light', el.classList.contains('light')); |
| 62 | + targetContainer.innerHTML = `<h4>Demo: </h4><div class="demo-container">${el.textContent}</div>`; |
| 63 | + el.parentElement.after(targetContainer); |
| 64 | + // Extract and evaluate <script> tags |
| 65 | + const scriptTags = targetContainer.getElementsByTagName('script'); |
| 66 | + for (let i = 0; i < scriptTags.length; i++) { |
| 67 | + const script = document.createElement('script'); |
| 68 | + script.type = 'module'; |
| 69 | + script.text = scriptTags[i].text; |
| 70 | + document.body.appendChild(script); // Appends to the document to execute |
| 71 | + scriptTags[i].remove(); // Remove the script tag |
| 72 | + } |
| 73 | + }); |
| 74 | +</script> |
| 75 | +</body> |
| 76 | +</html> |
0 commit comments