Skip to content

Commit

Permalink
Add
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcauliffe committed Dec 4, 2024
1 parent b76f020 commit a89e6c3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
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

0 comments on commit a89e6c3

Please sign in to comment.