diff --git a/apps/website/pages/components/grid/code.tsx b/apps/website/pages/components/grid/code.tsx new file mode 100644 index 0000000000..5f61370cc9 --- /dev/null +++ b/apps/website/pages/components/grid/code.tsx @@ -0,0 +1,17 @@ +import Head from "next/head"; +import type { ReactElement } from "react"; +import GridPageLayout from "screens/components/grid/GridPageLayout"; +import GridCodePage from "screens/components/grid/code/GridCodePage"; + +const Code = () => ( + <> +
+grid-auto-columns CSS property. See{" "}
- grid-auto-flow CSS property. See{" "}
- grid-auto-rows CSS property. See{" "}
- gap CSS property. See{" "}
- place-content CSS property. See{" "}
- place-items CSS property. See{" "}
- grid-template-areas CSS property. See{" "}
- grid-template-columns CSS property. See{" "}
- grid-template-rows CSS property. See{" "}
- grid-auto-columns CSS property. See{" "}
+ grid-auto-flow CSS property. See{" "}
+ grid-auto-rows CSS property. See{" "}
+
+ being Message an object with the following properties:
+
gap CSS property. See{" "}
+ place-content CSS property. See{" "}
+ place-items CSS property. See{" "}
+ grid-template-areas CSS property. See{" "}
+ grid-template-columns CSS property. See{" "}
+ grid-template-rows CSS property. See{" "}
+ grid-template-areas property.
- grid-column CSS property. See{" "}
- grid-row CSS property. See{" "}
- place-self CSS property. See{" "}
- grid-template-areas property.
+ grid-column CSS property. See{" "}
+ place-self CSS property. See{" "}
+ grid-row CSS property. See{" "}
+ DxcGrid.Item tag and
+ should be used when the decision to follow the Grid layout pattern is assumed only by the parent container.
+ Ensure that you use the grid items correctly within the grid container. The grid items should be direct
+ descendants of the grid container to ensure proper alignment and spacing.
+ templateColumns, templateRows, and templateAreas to create scalable
+ designs.
+ placeContent and{" "}
+ placeItems strategically to control content positioning within the grid container, ensuring a
+ well-structured and visually balanced layout.
+ grid-auto-flow property. This property lets you
- control how the auto-placement algorithm works, determining exactly how auto-placed items get flowed into the
- grid. Use the gap property to set the space between items and the placement properties{" "}
- placeContent and placeItems for more specific controls of how individual items stack
- or align within the grid.
- grid-template-areas property
- is used to establish cells within a grid and assign them names. grid-template-columns defines the
- line names and track sizing functions of the grid columns while grid-template-rows defines the
- line names and track sizing functions of the grid columns.
- DxcGrid.Item tag and should be used when the decision to follow the Grid layout pattern is
- assumed only by the parent container.
- DxcGrid.Item{" "}
- becomes very limited and therefore, you will have to wrap the children with DxcGrid.
-