-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from City-of-Helsinki/release/1.0.0-rc.3
Release/1.0.0 rc.3
- Loading branch information
Showing
60 changed files
with
1,710 additions
and
508 deletions.
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
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,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.10.1/oidc-client.min.js"></script> | ||
<script> | ||
var mgr = new Oidc.UserManager(); | ||
mgr.signinSilentCallback().catch(error => { | ||
console.error('silent_renew.html error', error); | ||
}); | ||
</script></body> | ||
</html> |
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,8 +1,13 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import { MemoryRouter } from 'react-router'; | ||
|
||
import App from './App'; | ||
|
||
it('renders without crashing', () => { | ||
shallow(<App />); | ||
shallow( | ||
<MemoryRouter> | ||
<App /> | ||
</MemoryRouter> | ||
); | ||
}); |
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
53 changes: 53 additions & 0 deletions
53
src/accessibilityStatement/AccessibilityStatement.module.css
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,53 @@ | ||
.pageWrapper { | ||
min-height: 100vh; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.container { | ||
margin: var(--spacing-layout-xs) var(--spacing-layout-2-xs) 0; | ||
width: auto; | ||
flex: 1 0 auto; | ||
} | ||
|
||
.innerWrapper { | ||
width: auto; | ||
margin-left: var(--spacing-xs); | ||
margin-bottom: var(--spacing-layout-m); | ||
} | ||
|
||
|
||
.innerWrapper p { | ||
margin: var(--spacing-layout-2-xs) 0; | ||
} | ||
|
||
.innerWrapper h1 { | ||
font-size: var(--fontsize-h-3); | ||
} | ||
|
||
.innerWrapper h2 { | ||
margin-top: var(--spacing-layout-xs); | ||
font-size: var(--fontsize-h-4); | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.innerWrapper { | ||
width: 768px; | ||
} | ||
|
||
.innerWrapper h1 { | ||
font-size: var(--fontsize-h-2); | ||
} | ||
|
||
.innerWrapper h2 { | ||
font-size: var(--fontsize-h-3); | ||
} | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.container { | ||
margin: var(--spacing-layout-xs) auto 0; | ||
width: 1130px; | ||
} | ||
} |
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,42 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import styles from './AccessibilityStatement.module.css'; | ||
import Header from '../common/header/Header'; | ||
import Footer from '../common/footer/Footer'; | ||
import AccessibilityStatementFi from './AccessibilityStatementFi'; | ||
import AccessibilityStatementSv from './AccessibilityStatementSv'; | ||
import AccessibilityStatementEn from './AccessibilityStatementEn'; | ||
|
||
function AccessibilityStatement() { | ||
const { i18n } = useTranslation(); | ||
const selectStatement = () => { | ||
const lang = | ||
i18n.languages[0].length > 2 | ||
? i18n.languages[0].substr(0, 2) | ||
: i18n.languages[0]; | ||
|
||
switch (lang) { | ||
case 'fi': | ||
return <AccessibilityStatementFi />; | ||
case 'sv': | ||
return <AccessibilityStatementSv />; | ||
case 'en': | ||
return <AccessibilityStatementEn />; | ||
default: | ||
return <div>Invalid language.</div>; | ||
} | ||
}; | ||
|
||
return ( | ||
<div className={styles.pageWrapper}> | ||
<Header /> | ||
<div className={styles.container}> | ||
<div className={styles.innerWrapper}>{selectStatement()}</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
|
||
export default AccessibilityStatement; |
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,89 @@ | ||
import React, { Fragment } from 'react'; | ||
|
||
function AccessibilityStatementEn() { | ||
return ( | ||
<Fragment> | ||
<h1>Accessibility Statement</h1> | ||
<p> | ||
This accessibility statement applies to the website Youth membership | ||
registration. The site address is https://hel.fi/profiili | ||
</p> | ||
<h2>Statutory provisions applicable to the website</h2> | ||
<p> | ||
This website was published after 23 September 2018. The website must | ||
fulfil statutory accessibility requirements. | ||
</p> | ||
<h2>The objective of the city</h2> | ||
<p> | ||
As regards the accessibility of digital services, Helsinki aims to reach | ||
at least Level AA or above as set forth in the WCAG guidelines in so far | ||
as is reasonably practical. | ||
</p> | ||
<h2>Compliance status</h2> | ||
<p> | ||
The accessibility compliance of this website has not yet been evaluated. | ||
</p> | ||
<h2>Preparing an accessibility statement</h2> | ||
<p>This statement was prepared on 6.4.2020</p> | ||
<h2>Updating the accessibility statement</h2> | ||
<p> | ||
The accessibility statement will be updated so that it corresponds with | ||
the observations related to accessibility compliance made during an | ||
audit. | ||
</p> | ||
|
||
<h2>Requesting information in an accessible format</h2> | ||
<p> | ||
If a user feels that content on a website is not available in an | ||
accessible format, they can request for this information by e-mail at{' '} | ||
<a href="mailto:helsinki.palaute@hel.fi">helsinki.palaute@hel.fi</a> or | ||
through the feedback form at{' '} | ||
<a href="https://www.hel.fi/feedback">www.hel.fi/feedback</a>. The aim | ||
is to reply to the enquiry within a reasonable time frame.{' '} | ||
</p> | ||
|
||
<h2>Feedback and contact information</h2> | ||
<p> | ||
City Executive Office, Helsinki | ||
<br /> | ||
<a href="tel:+35893101641">+358 9 310 1641</a> | ||
</p> | ||
|
||
<h2>The City of Helsinki and accessibility</h2> | ||
<p> | ||
The objective of the city of Helsinki is to be an accessible city to | ||
all. Helsinki aims to ensure that all residents are able to move about | ||
and act as effortlessly as possible and that all content and services | ||
are accessible to all. | ||
</p> | ||
|
||
<p> | ||
The city promotes accessibility of digital services by streamlining | ||
publishing work and organising accessibility-related training for its | ||
staff. | ||
</p> | ||
<p> | ||
The accessibility level of websites is monitored constantly during their | ||
maintenance. Immediate action will be taken if deficiencies are found. | ||
The aim is to carry out the necessary amendments as quickly as possible. | ||
</p> | ||
|
||
<h2>The disabled and users of assistive technologies</h2> | ||
<p> | ||
The city provides counselling and support for the disabled and users of | ||
assistive technologies. Support is available on guidance sites announced | ||
on the city’s website and through telephone counselling. | ||
</p> | ||
|
||
<h2>Approval of the accessibility statement</h2> | ||
<p>This statement was approved on 17.4.2020</p> | ||
<p> | ||
City Executive Office | ||
<br /> | ||
City of Helsinki | ||
</p> | ||
</Fragment> | ||
); | ||
} | ||
|
||
export default AccessibilityStatementEn; |
Oops, something went wrong.