Skip to content

Commit 53627e2

Browse files
Merge pull request #2339 from dxc-technology/jialecl/header-example
header and application layout examples updated
2 parents 6048ed2 + 264921b commit 53627e2

File tree

2 files changed

+19
-64
lines changed

2 files changed

+19
-64
lines changed

apps/website/screens/components/application-layout/code/ApplicationLayoutCodePage.tsx

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -96,55 +96,18 @@ const sections = [
9696
title: "Examples",
9797
subSections: [
9898
{
99-
title: "Basic usage",
99+
title: "Application layout with components",
100100
content: (
101101
<iframe
102-
src="https://codesandbox.io/embed/basic-usage-pi619r?fontsize=14&hidenavigation=1&theme=dark"
102+
src="https://codesandbox.io/embed/p4xxm3?view=editor+%2B+preview&module=%2Fsrc%2FApp.js"
103103
style={{
104104
width: "100%",
105105
minHeight: "500px",
106106
border: "0",
107107
borderRadius: "4px",
108108
overflow: "hidden",
109109
}}
110-
title="Basic usage"
111-
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
112-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
113-
/>
114-
),
115-
},
116-
{
117-
title: "With sidenav",
118-
content: (
119-
<iframe
120-
src="https://codesandbox.io/embed/with-sidenav-xce9s2?fontsize=14&hidenavigation=1&theme=dark"
121-
style={{
122-
width: "100%",
123-
minHeight: "500px",
124-
border: "0",
125-
borderRadius: "4px",
126-
overflow: "hidden",
127-
}}
128-
title="With sidenav"
129-
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
130-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
131-
/>
132-
),
133-
},
134-
{
135-
title: "Custom header and footer",
136-
content: (
137-
<iframe
138-
src="https://codesandbox.io/embed/custom-footer-and-header-lt3gkv?fontsize=14&hidenavigation=1&theme=dark"
139-
style={{
140-
width: "100%",
141-
minHeight: "500px",
142-
border: "0",
143-
borderRadius: "4px",
144-
overflow: "hidden",
145-
}}
146-
title="Custom footer and header"
147-
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
110+
title="Application layout with components"
148111
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
149112
/>
150113
),

apps/website/screens/components/header/code/HeaderCodePage.tsx

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -110,30 +110,22 @@ const sections = [
110110
</DxcTable>
111111
),
112112
},
113-
// UPDATE to new sandbox link when available
114-
// {
115-
// title: "Examples",
116-
// subSections: [
117-
// {
118-
// title: "Header in application layout",
119-
// content: (
120-
// <iframe
121-
// src="https://codesandbox.io/embed/rough-https-9oduyh?fontsize=14&hidenavigation=1&theme=dark"
122-
// style={{
123-
// width: "100%",
124-
// minHeight: "500px",
125-
// border: "0",
126-
// borderRadius: "4px",
127-
// overflow: "hidden",
128-
// }}
129-
// title="Footer and header"
130-
// sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
131-
// allowFullScreen
132-
// />
133-
// ),
134-
// },
135-
// ],
136-
// },
113+
{
114+
title: "Examples",
115+
subSections: [
116+
{
117+
title: "Header in application layout",
118+
content: (
119+
<iframe
120+
src="https://codesandbox.io/embed/6m6hdj?view=editor+%2B+preview&module=%2Fsrc%2FApp.js&hidenavigation=1"
121+
style={{ width: "100%", height: "500px", border: "0", borderRadius: "4px", overflow: "hidden" }}
122+
title="Header in application layout"
123+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
124+
/>
125+
),
126+
},
127+
],
128+
},
137129
];
138130

139131
const HeaderCodePage = () => {

0 commit comments

Comments
 (0)