/
ApplicationLayoutSpecsPage.tsx
140 lines (137 loc) · 4.17 KB
/
ApplicationLayoutSpecsPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import {
DxcBulletedList,
DxcParagraph,
DxcFlex,
DxcTable,
} from "@dxc-technology/halstack-react";
import QuickNavContainer from "@/common/QuickNavContainer";
import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
import DocFooter from "@/common/DocFooter";
import Code from "@/common/Code";
import Image from "@/common/Image";
import Figure from "@/common/Figure";
import specsImage from "./images/appLayout_specs.png";
const sections = [
{
title: "Specifications",
content: (
<>
<Figure caption="Application layout design specifications">
<Image
src={specsImage}
alt="Application layout design specifications"
/>
</Figure>
<DxcParagraph>
Columns, gutters, and margins make up the responsive layout grid
following these breakpoints. Depending on resolution and screen size
of a device, column numbers and the values of the margins and gutters
adjust to accommodate all screen elements in the most optimal manner.
</DxcParagraph>
<DxcBulletedList>
<DxcBulletedList.Item>
Columns are the areas of the screen where content is placed.
</DxcBulletedList.Item>
<DxcBulletedList.Item>
A gutter is the space between columns used to separate content.
</DxcBulletedList.Item>
<DxcBulletedList.Item>
Margins are the space between the edges of the screen and content.
</DxcBulletedList.Item>
</DxcBulletedList>
</>
),
},
{
title: "Recommended values",
content: (
<>
<DxcParagraph>
The following table describes the columns, margins, and gutter at each
of the different breakpoints:
</DxcParagraph>
<DxcTable>
<thead>
<tr>
<th>Breakpoint</th>
<th>Columns</th>
<th>
Gutter (recommended) <sup>1</sup>
</th>
<th>
Margin (min)<sup>2</sup>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<Code>xsmall</Code>
</td>
<td>4</td>
<td>16 / small</td>
<td>24</td>
</tr>
<tr>
<td>
<Code>small</Code>
</td>
<td>4</td>
<td>16 / small</td>
<td>24</td>
</tr>
<tr>
<td>
<Code>medium</Code>
</td>
<td>4</td>
<td>24 / medium</td>
<td>48</td>
</tr>
<tr>
<td>
<Code>large</Code>
</td>
<td>8</td>
<td>16 / small</td>
<td>56</td>
</tr>
<tr>
<td>
<Code>xlarge</Code>
</td>
<td>8</td>
<td>24/medium</td>
<td>56</td>
</tr>
</tbody>
</DxcTable>
<DxcBulletedList type="number">
<DxcBulletedList.Item>
Any value provided by the gutter prop in the layout components can
be used (ideally multiples of 8) although we recommend to stick to
the values provided.
</DxcBulletedList.Item>
<DxcBulletedList.Item>
The margin value provided are the minimun recommended, any value
from our spacing scale can be used or even an auto value.
</DxcBulletedList.Item>
</DxcBulletedList>
</>
),
},
];
const ApplicationLayoutSpecsPage = () => {
return (
<DxcFlex direction="column" gap="4rem">
<QuickNavContainerLayout>
<QuickNavContainer
sections={sections}
startHeadingLevel={2}
></QuickNavContainer>
</QuickNavContainerLayout>
<DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/website/screens/components/application-layout/specs/ApplicationLayoutSpecsPage.tsx" />
</DxcFlex>
);
};
export default ApplicationLayoutSpecsPage;