1
1
import PhaseBanner from '@common/components/PhaseBanner' ;
2
+ import NotificationBanner from '@common/components/NotificationBanner' ;
2
3
import CookieBanner from '@frontend/components/CookieBanner' ;
3
4
import UserTestingBanner from '@frontend/components/UserTestingBanner' ;
4
5
import classNames from 'classnames' ;
@@ -9,6 +10,7 @@ import PageHeader from './PageHeader';
9
10
import PageMeta , { PageMetaProps } from './PageMeta' ;
10
11
import PageTitle from './PageTitle' ;
11
12
import Feedback from './Feedback' ;
13
+ import Link from './Link' ;
12
14
13
15
type Props = {
14
16
includeDefaultMetaTitle ?: boolean ;
@@ -22,6 +24,7 @@ type Props = {
22
24
children ?: ReactNode ;
23
25
wide ?: boolean ;
24
26
isHomepage ?: boolean ;
27
+ showApiBanner ?: boolean ;
25
28
} & BreadcrumbsProps ;
26
29
27
30
const Page = ( {
@@ -37,6 +40,7 @@ const Page = ({
37
40
wide = false ,
38
41
isHomepage = false ,
39
42
breadcrumbs = [ ] ,
43
+ showApiBanner = true ,
40
44
} : Props ) => {
41
45
return (
42
46
< >
@@ -57,6 +61,30 @@ const Page = ({
57
61
} ) }
58
62
>
59
63
< PhaseBanner url = "https://forms.office.com/Pages/ResponsePage.aspx?id=yXfS-grGoU2187O4s0qC-XMiKzsnr8xJoWM_DeGwIu9UNDJHOEJDRklTNVA1SDdLOFJITEwyWU1OQS4u" />
64
+
65
+ { showApiBanner && (
66
+ < NotificationBanner
67
+ className = "govuk-!-margin-top-6"
68
+ fullWidthContent
69
+ title = "Important update"
70
+ >
71
+ < p >
72
+ The first data sets are now available in our new API,{ ' ' }
73
+ < Link to = "/data-catalogue?dataSetType=api" >
74
+ view them in the data catalogue
75
+ </ Link > { ' ' }
76
+ or read our{ ' ' }
77
+ < Link to = "https://api.education.gov.uk/statistics/docs/ " >
78
+ API documentation
79
+ </ Link >
80
+ . If you have any questions or feedback, contact us at{ ' ' }
81
+ < a href = "mailto:explore.statistics@education.gov.uk" >
82
+ explore.statistics@education.gov.uk
83
+ </ a >
84
+ </ p >
85
+ </ NotificationBanner >
86
+ ) }
87
+
60
88
< Breadcrumbs
61
89
breadcrumbs = {
62
90
isHomepage
0 commit comments