From 0416dfefe5f7c9441affb2b6efbbf1f355d9fa57 Mon Sep 17 00:00:00 2001 From: leecalcote Date: Sun, 19 Nov 2023 15:32:06 -0600 Subject: [PATCH] fix: test of overview fix Signed-off-by: leecalcote --- .../src/pages/identity/typography/overview.js | 186 +++++++++++++++--- 1 file changed, 155 insertions(+), 31 deletions(-) diff --git a/site/src/pages/identity/typography/overview.js b/site/src/pages/identity/typography/overview.js index ecc30aaf..ff49eac5 100644 --- a/site/src/pages/identity/typography/overview.js +++ b/site/src/pages/identity/typography/overview.js @@ -1,33 +1,45 @@ import React from 'react'; import Sidebar from '../Sidebar'; -import SubContent from '../SubContent'; import SubText from '../SubText'; -import SubHeading from '../SubHeading'; +import SubContent from '../SubContent'; import Previous from '../Previous'; import Next from '../Next'; const items = [ + { + title: "Introduction" + }, + { + title: "Color Anatomy" + }, + { + title: "Layer Hierarchy" + }, { title: "The Basics" }, { - title: "Type Scale" + title: "Green Color Accessibility" } ] -const basicItems = [ +const basics = [ { - title: "Typeface", - description:"A typeface is a set of letters, numbers, and accessories that have common design features. These characters are usually grouped into families and used in relation to each other to ensure uniform text representation in designs and forms of text that are relative to each other. Qanelas Soft, Times New Roman, Merriweather, and Roboto are all examples of typefaces." + title:'Theme', + description:'By definition, a theme is a cohesive and consistent look and feel for a product. This consistent look can be achieved with the use of harmonious color palettes, legible fonts and layout patterns. Currently, sistent outlines specifications for light and dark themes.' }, { - title: "Font", - description:"Often wrongly used interchangeably with typeface, a font refers to variations of a typeface. So this includes the weight, size, line height, tracking (letter spacing), and any other features that are added to a typeface for it to function in a certain capacity. A key relationship between a typeface and a font is that characters in a typeface can be modified to form different fonts." + title:'Value', + description:'A value is the unique visual attribute assigned to a token through the use of themes. This could range from hex codes to rgba values which are used to highlight specific colors in any given instance. We highly recommend that no exact values be referenced anywhere in the design in order to avoid errors and ensure consistency. Instead, tokens should be used to curate and implement the reusable values. More on tokens next.' }, { - title: "Line Height", - description:"Line height is mostly used to refer to the distance between lines of text. WCAG standards for line height recommend a line height that is at least 1.5 times the chosen font size, especially for small text sizes. For larger fonts, however, evidence has shown that anything between 1.2 and 1.5 times the font size might also be appropriate, especially considering the fact that most large fonts used for headings and subheadings tend not to exceed a single line of text." + title:'Tokens', + description:'Tokens can be regarded as a shared language between design and development for communicating detailed information about how to build user interfaces. Generally, a rule of thumb is to represent the context (background, text, component), role (success, warning, brand, inverse), and modifier(s) (secondary, tertiary, hover) in a string of text that will represent set values gotten from the colors in the color palette.' }, + { + title:'Role', + description:'Roles are parameters that specify the context that colors are being applied to and while different roles can share the same value, the token structure means that they will have different use cases. These values can be different though depending on the current theme.' + } ] const Overview = ()=> { @@ -36,11 +48,55 @@ const Overview = ()=> {
+
+ +
+ + +
+
- - {basicItems && basicItems.map((basic)=>{ + + +
+ +
+
+
+ + {basics && basics.map((basic)=>{ return (
{ />
) })} -
-
- - -
- -
+
- +
- -
+ +
) } -export default Overview; \ No newline at end of file +export default Overview; + +// import React from 'react'; +// import Sidebar from '../Sidebar'; +// import SubContent from '../SubContent'; +// import SubText from '../SubText'; +// import SubHeading from '../SubHeading'; +// import Previous from '../Previous'; +// import Next from '../Next'; + +// const items = [ +// { +// title: "The Basics" +// }, +// { +// title: "Type Scale" +// } +// ] + +// const basicItems = [ +// { +// title: "Typeface", +// description:"A typeface is a set of letters, numbers, and accessories that have common design features. These characters are usually grouped into families and used in relation to each other to ensure uniform text representation in designs and forms of text that are relative to each other. Qanelas Soft, Times New Roman, Merriweather, and Roboto are all examples of typefaces." +// }, +// { +// title: "Font", +// description:"Often wrongly used interchangeably with typeface, a font refers to variations of a typeface. So this includes the weight, size, line height, tracking (letter spacing), and any other features that are added to a typeface for it to function in a certain capacity. A key relationship between a typeface and a font is that characters in a typeface can be modified to form different fonts." +// }, +// { +// title: "Line Height", +// description:"Line height is mostly used to refer to the distance between lines of text. WCAG standards for line height recommend a line height that is at least 1.5 times the chosen font size, especially for small text sizes. For larger fonts, however, evidence has shown that anything between 1.2 and 1.5 times the font size might also be appropriate, especially considering the fact that most large fonts used for headings and subheadings tend not to exceed a single line of text." +// }, +// ] + +// const Overview = ()=> { +// return ( +// <> +// +//
+// +//
+// +// {basicItems && basicItems.map((basic)=>{ +// return ( +//
+// +// +//
) +// })} +//
+//
+// +// +//
+// +//
+//
+//
+// +//
+// +//
+// +// ) +// } + +// export default Overview; \ No newline at end of file