forked from City-of-Helsinki/varaamo
-
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.
Refactored and updated about page (#355)
Changes: - switched about page to be functional component instead of class component - use html string for whole main about content instead of small translated pieces - updated what is said on about page's main content
- Loading branch information
Showing
11 changed files
with
241 additions
and
89 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
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,13 +1,13 @@ | ||
.about-page { | ||
max-width: 600px; | ||
|
||
} | ||
p.lead { | ||
font-size: 1.125em; | ||
p { | ||
margin: 0 0 12px; | ||
} | ||
} | ||
|
||
@media(max-width:$screen-400-min - 50) { | ||
.about-page { | ||
font-size: 16px; | ||
} | ||
} | ||
} |
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,19 @@ | ||
import getAboutContentEn from './aboutEn'; | ||
import getAboutContentFi from './aboutFi'; | ||
import getAboutContentSv from './aboutSv'; | ||
|
||
/** | ||
* Returns the content for the about page based on the current language. | ||
* @param {string} currentLanguage - 'en', 'fi' or 'sv' | ||
* @param {string} feedbackLink - url to feedback form | ||
* @returns {string} - html string content for the about page | ||
*/ | ||
export function getAboutContent(currentLanguage, feedbackLink) { | ||
if (currentLanguage === 'en') { | ||
return getAboutContentEn(feedbackLink); | ||
} | ||
if (currentLanguage === 'sv') { | ||
return getAboutContentSv(feedbackLink); | ||
} | ||
return getAboutContentFi(feedbackLink); | ||
} |
Oops, something went wrong.