@@ -2,10 +2,10 @@ import React from 'react';
22import { Meta , StoryObj } from '@storybook/react' ;
33import NavAZ from '@patterns/nav-a-z' ;
44import HeadingLevel from '@components/utils/HeadingLevel' ;
5- import Panel from '@patterns/panel/Panel' ;
65import Container from '@components/layout/Container' ;
76import Row from '@components/layout/Row' ;
87import Col from '@components/layout/Col' ;
8+ import { Card } from '../../src' ;
99
1010/**
1111 * A to Z is a way of presenting a number of pages alphabetically.
@@ -62,28 +62,86 @@ export const Standard: Story = {
6262 < NavAZ . LinkItem href = "#Z" > Z</ NavAZ . LinkItem >
6363 </ NavAZ >
6464
65- < Panel label = "A" labelProps = { { id : 'A' } } backToTop backToTopLink = "#nhsuk-nav-a-z" >
66- < Panel . LinkItem href = "/conditions/abdominal-aortic-aneurysm/" > AAA</ Panel . LinkItem >
67- < Panel . LinkItem href = "/conditions/abdominal-aortic-aneurysm/" >
68- Abdominal aortic aneurysm
69- </ Panel . LinkItem >
70- < Panel . LinkItem href = "/conditions/abscess/" > Abscess</ Panel . LinkItem >
71- </ Panel >
65+ < Card cardType = "feature" >
66+ < Card . Content >
67+ < Card . Heading id = "A" > A</ Card . Heading >
68+ < ul className = "nhsuk-list nhsuk-list--border" >
69+ < li >
70+ < a href = "/conditions/abdominal-aortic-aneurysm/" > AAA</ a >
71+ </ li >
72+ < li >
73+ < a href = "/conditions/abdominal-aortic-aneurysm/" > Abdominal aortic aneurysm</ a >
74+ </ li >
75+ < li >
76+ < a href = "/conditions/abscess/" > Abscess</ a >
77+ </ li >
78+ </ ul >
79+ </ Card . Content >
80+ </ Card >
7281
73- < Panel label = "B" labelProps = { { id : 'B' } } backToTop backToTopLink = "#nhsuk-nav-a-z" >
74- < Panel . Item > There are currently no conditions listed</ Panel . Item >
75- </ Panel >
82+ < div className = "nhsuk-back-to-top" >
83+ < a className = "nhsuk-back-to-top__link" href = "#nhsuk-nav-a-z" >
84+ Back to top
85+ </ a >
86+ </ div >
7687
77- < Panel label = "C" labelProps = { { id : 'C' } } backToTop backToTopLink = "#nhsuk-nav-a-z" >
78- < Panel . LinkItem href = "/conditions/chest-pain/" > Chest pain</ Panel . LinkItem >
79- < Panel . LinkItem href = "/conditions/cold-sores/" > Cold sore</ Panel . LinkItem >
80- </ Panel >
88+ < Card cardType = "feature" >
89+ < Card . Content >
90+ < Card . Heading id = "B" > B</ Card . Heading >
91+ < ul className = "nhsuk-list nhsuk-list--border" >
92+ < li > There are currently no conditions listed</ li >
93+ </ ul >
94+ </ Card . Content >
95+ </ Card >
8196
82- < Panel label = "D" labelProps = { { id : 'D' } } backToTop backToTopLink = "#nhsuk-nav-a-z" >
83- < Panel . LinkItem href = "/conditions/dandruff/" > Dandruff</ Panel . LinkItem >
84- < Panel . LinkItem href = "/conditions/dementia/" > Dementia</ Panel . LinkItem >
85- < Panel . LinkItem href = "/conditions/toothache/" > Toothache</ Panel . LinkItem >
86- </ Panel >
97+ < div className = "nhsuk-back-to-top" >
98+ < a className = "nhsuk-back-to-top__link" href = "#nhsuk-nav-a-z" >
99+ Back to top
100+ </ a >
101+ </ div >
102+
103+ < Card cardType = "feature" >
104+ < Card . Content >
105+ < Card . Heading id = "C" > C</ Card . Heading >
106+ < ul className = "nhsuk-list nhsuk-list--border" >
107+ < li >
108+ < a href = "/conditions/chest-pain/" > Chest pain</ a >
109+ </ li >
110+ < li >
111+ < a href = "/conditions/cold-sores/" > Cold sore</ a >
112+ </ li >
113+ </ ul >
114+ </ Card . Content >
115+ </ Card >
116+
117+ < div className = "nhsuk-back-to-top" >
118+ < a className = "nhsuk-back-to-top__link" href = "#nhsuk-nav-a-z" >
119+ Back to top
120+ </ a >
121+ </ div >
122+
123+ < Card cardType = "feature" >
124+ < Card . Content >
125+ < Card . Heading id = "D" > D</ Card . Heading >
126+ < ul className = "nhsuk-list nhsuk-list--border" >
127+ < li >
128+ < a href = "/conditions/dandruff/" > Dandruff</ a >
129+ </ li >
130+ < li >
131+ < a href = "/conditions/dementia/" > Dementia</ a >
132+ </ li >
133+ < li >
134+ < a href = "/conditions/toothache/" > Dental pain</ a >
135+ </ li >
136+ </ ul >
137+ </ Card . Content >
138+ </ Card >
139+
140+ < div className = "nhsuk-back-to-top" >
141+ < a className = "nhsuk-back-to-top__link" href = "#nhsuk-nav-a-z" >
142+ Back to top
143+ </ a >
144+ </ div >
87145 </ Col >
88146 </ Row >
89147 </ main >
0 commit comments