-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GN-104 Cks content #127
Merged
wa-rren-dev
merged 112 commits into
GN-95-Add-meganav-mechanism
from
GN-104-CKS-content
Oct 12, 2021
Merged
GN-104 Cks content #127
Changes from all commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
f20c88a
Scrim
emollett 78cbc72
GN-101 Move focus to search when clicked
emollett c9a3644
GN-101 Close MyAccount Dropdown on meganav click
emollett f3442d7
GN-101 Close MyAccount Dropdown on meganav click
emollett 473e161
Merge branch 'GN-101-Issues' of https://github.com/nice-digital/globa…
emollett 1fbcdbc
GN-101 Styling issues across applications
emollett 8a11524
GN-101 Use bundled design system css
emollett 6f01a8e
GN-101 Loose grid
emollett 77d2e70
GN-98 Initial guidance content
emollett 7a21c08
GN-95 Now click scrim to close
emollett 16ee7b5
Merge branch 'GN-95-Add-meganav-mechanism' into GN-95-With-scrim
emollett 7893635
GN-101 Fix list styling variation
emollett 98ef54b
GN-102 Add BNF content
emollett 01ee466
Merge branch 'GN-95-With-scrim' into GN-101-Issues
emollett 12d45ae
Merge branch 'GN-101-Issues' into GN-102-BNF-content
emollett 7a6c615
GN-102 BNFc content
emollett 2343357
GN-102 BNF content update
emollett 22c72d8
GN-103 BNFC content
emollett 03b6138
GN-104 CKS content
emollett c2eea79
GN-104 Revert nav text to abbreviation
emollett 7f627ff
GN-103 Revert nav text to abbreviation
emollett b36b922
Merge branch 'GN-104-CKS-content' into demo-branch
emollett 13e51aa
GN-101 Code review fixes
emollett 473366d
Merge branch 'GN-101-Issues' into GN-102-BNF-content
emollett 3354639
Merge branch 'GN-95-Add-meganav-mechanism' into GN-102-BNF-content
emollett d85f709
Merge branch 'GN-95-Add-meganav-mechanism' into GN-103-BNFC-content
emollett ed21a9b
Merge branch 'GN-95-Add-meganav-mechanism' into GN-104-CKS-content
emollett 6ece64d
GN-102 Nitpicking css
wa-rren-dev 62d9199
GN-104 Rename var
emollett a5d5fd3
GN-102 Pull url from services
emollett 16a4f74
Merge branch 'GN-102-BNF-content' of https://github.com/nice-digital/…
emollett 03c3068
GN-103 Use var for url
emollett 6ad3292
Merge branch 'GN-95-Add-meganav-mechanism' into GN-98-Guidance-content
emollett eb416a1
GN-98 Content update
emollett be97432
Merge branch 'GN-104-CKS-content' into demo-branch
emollett c0c09d7
Merge branch 'GN-102-BNF-content' into demo-branch
emollett 362ad8a
Merge branch 'GN-103-BNFC-content' into demo-branch
emollett 607a1ab
Merge branch 'GN-98-Guidance-content' into demo-branch
emollett 413b89a
demo stuff
emollett b8548a9
GN-104 Url var
emollett 9c1cfc0
GN-102 Spacing
emollett ad770f7
GN-103 Spacing
emollett d9e1e1b
GN-105 Content for standards and indicators
emollett dfe7732
GN-106 About us content
emollett 4c29255
GN-105 Update links
emollett 64dd936
GN-105 Remove standards and indicators from more
emollett ed1511f
GN-101 Fix failing tests
emollett 2fc7fe6
Merge branch 'GN-101-Fix-failing-tests' into GN-102-BNF-content
emollett d122a5d
GN-102 Update snapshot
emollett fe6d888
Merge branch 'GN-101-Fix-failing-tests' into GN-103-BNFC-content
emollett e134710
GN-103 Update snapshot
emollett e5dc21c
Merge branch 'GN-101-Fix-failing-tests' into GN-105-SandI-content
emollett 9bb8d58
GN-105 Update snapshot
emollett 14b2339
Merge branch 'GN-101-Fix-failing-tests' into GN-106-About-us-content
emollett 1eedcd7
GN-106 Update snapshot
emollett cac4aa3
Merge branch 'GN-101-Fix-failing-tests' into GN-104-CKS-content
emollett 9ef229a
GN-104 Update snapshot
emollett 001206c
Merge branch 'GN-101-Fix-failing-tests' into GN-98-Guidance-content
emollett 591d8f3
GN-98 Snapshot updated
emollett e705417
Merge branch 'GN-101-Fix-failing-tests' into GN-000-All-content
emollett c4def1a
Merge branch 'GN-102-BNF-content' into GN-000-All-content
emollett 001c67e
Merge branch 'GN-103-BNFC-content' into GN-000-All-content
emollett ea65378
Merge branch 'GN-105-SandI-content' into GN-000-All-content
emollett 32c45d6
Merge branch 'GN-106-About-us-content' into GN-000-All-content
emollett aaea8e6
Merge branch 'GN-104-CKS-content' into GN-000-All-content
emollett 7011b6e
Merge branch 'GN-98-Guidance-content' into GN-000-All-content
emollett 754ce15
GN-000 Alpha services. May want renaming for UR.
emollett 4e691ea
GN-000 Renamed for UR. DO NOT DEPLOY TO LIVE.
emollett fe7ec88
GN-000 Snapshot updated
emollett e1cf782
GN-000 Links for UR. DO NOT DEPLOY TO LIVE
emollett b946c2d
GN-000 Prettier issue
emollett d1eacba
GN-102 Fix letters and dancing button
emollett 28c07db
GN-103 Button fix and letter link fix
emollett 8f96f45
GN-103 Button dancing fix
emollett 2e0694d
GN-103 Another dancing button fix attempt
emollett 3a08273
Merge branch 'GN-102-BNF-content' into GN-000-All-content
emollett 74608ee
Merge branch 'GN-103-BNFC-content' into GN-000-All-content
emollett e00f431
GN-106 Content link issue
wa-rren-dev b5b992c
GN-105 Amend S&I base link
wa-rren-dev f0cf202
Start guidance content
wa-rren-dev bb65207
AW/21 Colour Scheme
wa-rren-dev cfde4af
GN-98 Guidance content
wa-rren-dev 8e4dac6
Merge branch 'GN-95-Add-meganav-mechanism' into GN-98-Guidance-content
wa-rren-dev 6bbee86
GN-106 About us content update
wa-rren-dev 833d902
GN-109 More content
wa-rren-dev b7a45ec
Merge branch 'GN-95-Add-meganav-mechanism' into GN-109-More-content
wa-rren-dev bc42f10
GN-107 Pathways content
wa-rren-dev 34b97ec
Merge branch 'GN-98-Guidance-content' into GN-000-All-content
wa-rren-dev 606bc64
Merge branch 'GN-105-SandI-content' into GN-000-All-content
wa-rren-dev b71df86
Merge branch 'GN-106-About-us-content' into GN-000-All-content
wa-rren-dev 19dff6d
GN-108 Remove e.preventDefault on mega menu click handler to enable l…
johndavey72 470d011
GN-108 Fix scrim
wa-rren-dev 0981a0d
GN-108 Add canUseDOM state to control display of dropdown menus in ma…
johndavey72 f34317e
Merge branch 'GN-107-Pathways-content' into GN-000-All-content
wa-rren-dev 05ccf27
Merge branch 'GN-109-More-content' into GN-000-All-content
wa-rren-dev e189dca
Merge branch 'GN-108-Snag-list' into GN-000-All-content
wa-rren-dev 659b01f
Merge branch 'GN-95-Add-meganav-mechanism' into GN-000-All-content
wa-rren-dev 183b9b8
Duplicate css removed
wa-rren-dev a7ebf1c
Merge branch 'GN-95-Add-meganav-mechanism' into GN-104-CKS-content
wa-rren-dev 7ee2d0c
Remove duplicate CSS
wa-rren-dev 02ef435
Merge branch 'GN-95-Add-meganav-mechanism' into GN-107-Pathways-content
wa-rren-dev a0fee73
Remove duplicate css
wa-rren-dev 1dbf284
Merge branch 'GN-95-Add-meganav-mechanism' into GN-109-More-content
wa-rren-dev 4bdeeb6
Remove duplicate export
wa-rren-dev f685222
Links to live
wa-rren-dev 657eed0
Merge branch 'GN-109-More-content' into GN-000-All-content
wa-rren-dev 74fb24c
Merge branch 'GN-107-Pathways-content' into GN-000-All-content
wa-rren-dev dd58cb0
Merge branch 'GN-104-CKS-content' into GN-000-All-content
wa-rren-dev 65468c2
Tidy up
wa-rren-dev 9d298fb
GN-104 Snapshot update
wa-rren-dev f45326a
Snapshot update
wa-rren-dev 4619916
Merge branch 'GN-000-All-content' into GN-104-CKS-content
wa-rren-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
import React from "react"; | ||
import { Button } from "@nice-digital/nds-button"; | ||
import { Grid, GridItem } from "@nice-digital/nds-grid"; | ||
import styles from "./Components.module.scss"; | ||
import services from "../../../../services.json"; | ||
|
||
export function CKS() { | ||
const baseUrl = services.external.find( | ||
(service) => service.text == "CKS" | ||
).href; | ||
|
||
const topicsAtoZurl = baseUrl + "topics/#"; | ||
|
||
const topicsAtoZ = [ | ||
{ letter: "A", link: true }, | ||
{ letter: "B", link: true }, | ||
{ letter: "C", link: true }, | ||
{ letter: "D", link: true }, | ||
{ letter: "E", link: true }, | ||
{ letter: "F", link: true }, | ||
{ letter: "G", link: true }, | ||
{ letter: "H", link: true }, | ||
{ letter: "I", link: true }, | ||
{ letter: "J", link: true }, | ||
{ letter: "K", link: true }, | ||
{ letter: "L", link: true }, | ||
{ letter: "M", link: true }, | ||
{ letter: "N", link: true }, | ||
{ letter: "O", link: true }, | ||
{ letter: "P", link: true }, | ||
{ letter: "Q", link: false }, | ||
{ letter: "R", link: true }, | ||
{ letter: "S", link: true }, | ||
{ letter: "T", link: true }, | ||
{ letter: "U", link: true }, | ||
{ letter: "V", link: true }, | ||
{ letter: "W", link: true }, | ||
{ letter: "X", link: false }, | ||
{ letter: "Y", link: false }, | ||
{ letter: "Z", link: true }, | ||
]; | ||
|
||
return ( | ||
<section aria-label="CKS - dropdown navigation"> | ||
<h2 className="mt--0">CKS</h2> | ||
<p> | ||
Providing primary care practitioners with a readily accessible summary | ||
of the current evidence base and practical guidance on best practice | ||
</p> | ||
<Button variant="primary" to={baseUrl}> | ||
View CKS | ||
</Button> | ||
|
||
<h3 className="mt--d">Health topics A to Z</h3> | ||
<ol className={styles.alphabet}> | ||
{topicsAtoZ.map(({ letter, link }) => { | ||
return ( | ||
<li | ||
key={letter} | ||
className={`${styles.letter} ${link ? "" : styles.chunkyLetter}`} | ||
> | ||
{link ? ( | ||
<a href={`${topicsAtoZurl}${letter}`}>{letter}</a> | ||
) : ( | ||
<span>{letter}</span> | ||
)} | ||
</li> | ||
); | ||
})} | ||
</ol> | ||
|
||
<Grid gutter="loose"> | ||
<GridItem cols={12} md={6}> | ||
<h3 className="mt--0">Topics most frequently visited</h3> | ||
<ul className={styles.listUnstyled} style={{ columnCount: 2 }}> | ||
<li> | ||
<a href={`${baseUrl}topics/hypertension/`}>Hypertension</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}topics/diabetes-type-2/`}> | ||
Diabetes - type 2 | ||
</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}topics/gout/`}>Gout</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}topics/migraine/`}>Migraine</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}topics/allergic-rhinitis/`}> | ||
Allergic rhinitis | ||
</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}topics/asthma/`}>Asthma</a> | ||
</li> | ||
</ul> | ||
</GridItem> | ||
<GridItem cols={12} md={3}> | ||
<h3 className="mt--0">Browse by</h3> | ||
<ul className={styles.listUnstyled}> | ||
<li> | ||
<a href={`${baseUrl}specialities/`}>Specialities</a> | ||
</li> | ||
</ul> | ||
</GridItem> | ||
<GridItem cols={12} md={3}> | ||
<h3 className="mt--0">What’s new</h3> | ||
<ul className={styles.listUnstyled}> | ||
<li> | ||
<a href={`${baseUrl}whats-new/`}>Latest CKS</a> | ||
</li> | ||
</ul> | ||
</GridItem> | ||
</Grid> | ||
<hr /> | ||
<a href={`${baseUrl}about/`}>About CKS</a> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
import React from "react"; | ||
import { Button } from "@nice-digital/nds-button"; | ||
import { Grid, GridItem } from "@nice-digital/nds-grid"; | ||
import styles from "./Components.module.scss"; | ||
import services from "../../../../services.json"; | ||
|
||
export function Pathways() { | ||
const baseUrl = services.external.find( | ||
(service) => service.text == "NICE Pathways" | ||
).href; | ||
|
||
const pathwaysAtoZurl = baseUrl + "?jumpAtoZ="; | ||
|
||
const pathwaysAtoZ = [ | ||
{ letter: "A", link: true }, | ||
{ letter: "B", link: true }, | ||
{ letter: "C", link: true }, | ||
{ letter: "D", link: true }, | ||
{ letter: "E", link: true }, | ||
{ letter: "F", link: true }, | ||
{ letter: "G", link: true }, | ||
{ letter: "H", link: true }, | ||
{ letter: "I", link: true }, | ||
{ letter: "J", link: true }, | ||
{ letter: "K", link: true }, | ||
{ letter: "L", link: true }, | ||
{ letter: "M", link: true }, | ||
{ letter: "N", link: true }, | ||
{ letter: "O", link: true }, | ||
{ letter: "P", link: true }, | ||
{ letter: "Q", link: false }, | ||
{ letter: "R", link: true }, | ||
{ letter: "S", link: true }, | ||
{ letter: "T", link: true }, | ||
{ letter: "U", link: true }, | ||
{ letter: "V", link: true }, | ||
{ letter: "W", link: true }, | ||
{ letter: "X", link: false }, | ||
{ letter: "Y", link: true }, | ||
{ letter: "Z", link: false }, | ||
]; | ||
|
||
return ( | ||
<section aria-label="Pathways - dropdown navigation"> | ||
<h2 className="mt--0">NICE Pathways</h2> | ||
<p>Everything NICE says on a topic in an interactive flowchart</p> | ||
<Button variant="cta" to={baseUrl}> | ||
View NICE Pathways | ||
</Button> | ||
|
||
<h3 className="mt--d">Pathways A to Z</h3> | ||
<ol className={styles.alphabet}> | ||
{pathwaysAtoZ.map(({ letter, link }) => { | ||
return ( | ||
<li | ||
key={letter} | ||
className={`${styles.letter} ${link ? "" : styles.chunkyLetter}`} | ||
> | ||
{link ? ( | ||
<a href={`${pathwaysAtoZurl}${letter}`}>{letter}</a> | ||
) : ( | ||
<span>{letter}</span> | ||
)} | ||
</li> | ||
); | ||
})} | ||
</ol> | ||
|
||
<Grid gutter="loose"> | ||
<GridItem cols={12} md={6}> | ||
<h3 className="mt--0">Browse topics by</h3> | ||
<ul className={styles.listUnstyled} style={{ columnCount: 2 }}> | ||
<li> | ||
<a href={`${baseUrl}?browse=conditionsAndDiseases`}> | ||
Conditions and diseases | ||
</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}?browse=healthProtection`}> | ||
Health protection | ||
</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}?browse=lifestyleAndWellbeing`}> | ||
Lifestyle and wellbeing | ||
</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}?browse=populationGroups`}> | ||
Population groups | ||
</a> | ||
</li> | ||
<li> | ||
<a href={`${baseUrl}?browse=healthProtection`}> | ||
Service delivery, organisation and staffing | ||
</a> | ||
</li> | ||
</ul> | ||
</GridItem> | ||
<GridItem cols={12} md={3}> | ||
<h3 className="mt--0">What's new</h3> | ||
<ul className={styles.listUnstyled}> | ||
<li> | ||
<a href={`${baseUrl}?browse=latest`}>Latest NICE Pathways</a> | ||
</li> | ||
</ul> | ||
</GridItem> | ||
</Grid> | ||
<hr /> | ||
<a href={`${baseUrl}#help`}>How to use NICE Pathways</a> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export { Guidance } from "./Guidance"; | ||
export { More } from "./More"; | ||
export { StandardsAndIndicators } from "./StandardsAndIndicators"; | ||
export { AboutUs } from "./AboutUs"; | ||
export { BNF } from "./BNF"; | ||
export { BNFc } from "./BNFc"; | ||
export { CKS } from "./CKS"; | ||
export { Guidance } from "./Guidance"; | ||
export { More } from "./More"; | ||
export { Pathways } from "./Pathways"; | ||
export { StandardsAndIndicators } from "./StandardsAndIndicators"; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna say it - do we need a fullstop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going off the design and the content supplied apparently not...