Skip to content
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

FW-6263 Add Apps link in a widget on Landing page #705

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/images/landing-apps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/components/LandingPage/LandingPageContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import LandingKeyboards from 'components/LandingKeyboards'
import WidgetArea from '../WidgetArea/index'

function LandingPageContainer() {
const { whyData, aboutData, quotesData } = LandingPageData()
const { whyData, aboutData, quotesData, appsData } = LandingPageData()
return (
<div id="LandingPageContainer">
<LandingBanner.Container />
<WidgetArea.Container widgetData={[whyData, aboutData, quotesData]} />
<WidgetArea.Container
widgetData={[whyData, aboutData, quotesData, appsData]}
/>
<LandingKeyboards.Container />
</div>
)
Expand Down
22 changes: 20 additions & 2 deletions src/components/LandingPage/LandingPageData.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// FPCC
import Elders from 'assets/images/elders-landing.png'
import Img from 'assets/images/landing-about.png'
import aboutImage from 'assets/images/landing-about.png'
import appsImage from 'assets/images/landing-apps.png'
import bgImage from 'assets/images/landing-about-bg.png'
import languages from 'assets/images/languages-background.png'
import {
WIDGET_TEXT,
WIDGET_TEXTICONS,
WIDGET_QUOTES,
FIRSTVOICESLINK,
FORMAT_RIGHT,
} from 'src/common/constants'

function LandingPageData() {
Expand All @@ -30,7 +32,7 @@ function LandingPageData() {
mockData: true,
bgColor: 'jade-500',
bgImage,
image: Img,
image: aboutImage,
title: 'ABOUT FIRSTVOICES',
url: `https://${FIRSTVOICESLINK}/about`,
urlLabel: 'Learn more',
Expand All @@ -56,10 +58,26 @@ function LandingPageData() {
},
}

const appsData = {
id: 4,
type: WIDGET_TEXT,
format: FORMAT_RIGHT,
settings: {
mockData: true,
image: appsImage,
title: 'FIRSTVOICES APPS',
url: `https://${FIRSTVOICESLINK}/apps`,
urlLabel: 'Learn more',
textWithFormatting:
'<p>The wealth of language data uploaded by Indigenous communities onto their FirstVoices language sites can now also be accessed through mobile and desktop apps. The app pulls content directly from entries on FirstVoices and functions with offline capabilities. The apps are updated throughout the year in order to ensure that the latest content that has been added to a language site also appears on the app.</p>',
},
}

return {
whyData,
aboutData,
quotesData,
appsData,
}
}

Expand Down
Loading