Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,55 +96,18 @@ const sections = [
title: "Examples",
subSections: [
{
title: "Basic usage",
title: "Application layout with components",
content: (
<iframe
src="https://codesandbox.io/embed/basic-usage-pi619r?fontsize=14&hidenavigation=1&theme=dark"
src="https://codesandbox.io/embed/p4xxm3?view=editor+%2B+preview&module=%2Fsrc%2FApp.js"
style={{
width: "100%",
minHeight: "500px",
border: "0",
borderRadius: "4px",
overflow: "hidden",
}}
title="Basic usage"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
/>
),
},
{
title: "With sidenav",
content: (
<iframe
src="https://codesandbox.io/embed/with-sidenav-xce9s2?fontsize=14&hidenavigation=1&theme=dark"
style={{
width: "100%",
minHeight: "500px",
border: "0",
borderRadius: "4px",
overflow: "hidden",
}}
title="With sidenav"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
/>
),
},
{
title: "Custom header and footer",
content: (
<iframe
src="https://codesandbox.io/embed/custom-footer-and-header-lt3gkv?fontsize=14&hidenavigation=1&theme=dark"
style={{
width: "100%",
minHeight: "500px",
border: "0",
borderRadius: "4px",
overflow: "hidden",
}}
title="Custom footer and header"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
title="Application layout with components"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
/>
),
Expand Down
40 changes: 16 additions & 24 deletions apps/website/screens/components/header/code/HeaderCodePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,30 +110,22 @@ const sections = [
</DxcTable>
),
},
// UPDATE to new sandbox link when available
// {
// title: "Examples",
// subSections: [
// {
// title: "Header in application layout",
// content: (
// <iframe
// src="https://codesandbox.io/embed/rough-https-9oduyh?fontsize=14&hidenavigation=1&theme=dark"
// style={{
// width: "100%",
// minHeight: "500px",
// border: "0",
// borderRadius: "4px",
// overflow: "hidden",
// }}
// title="Footer and header"
// sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
// allowFullScreen
// />
// ),
// },
// ],
// },
{
title: "Examples",
subSections: [
{
title: "Header in application layout",
content: (
<iframe
src="https://codesandbox.io/embed/6m6hdj?view=editor+%2B+preview&module=%2Fsrc%2FApp.js&hidenavigation=1"
style={{ width: "100%", height: "500px", border: "0", borderRadius: "4px", overflow: "hidden" }}
title="Header in application layout"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
/>
),
},
],
},
];

const HeaderCodePage = () => {
Expand Down