-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/f-161-lighthouse-best-practices-score
- Loading branch information
Showing
107 changed files
with
3,285 additions
and
807 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** @type {import('next-sitemap').IConfig} */ | ||
module.exports = { | ||
siteUrl: 'https://localhost:3000', // local temporary | ||
generateRobotsTxt: true, | ||
changefreq: 'daily', | ||
priority: 0.7, | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 @@ | ||
# * | ||
User-agent: * | ||
Allow: / | ||
|
||
# Host | ||
Host: https://localhost:3000 | ||
|
||
# Sitemaps | ||
Sitemap: https://localhost:3000/sitemap.xml |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> | ||
<url><loc>https://localhost:3000/about</loc><lastmod>2024-12-17T19:34:24.137Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://localhost:3000/data_sources</loc><lastmod>2024-12-17T19:34:24.138Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://localhost:3000/elements</loc><lastmod>2024-12-17T19:34:24.138Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://localhost:3000/disclaimer</loc><lastmod>2024-12-17T19:34:24.138Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://localhost:3000</loc><lastmod>2024-12-17T19:34:24.138Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://localhost:3000/wiki</loc><lastmod>2024-12-17T19:34:24.138Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://localhost:3000/download-portal</loc><lastmod>2024-12-17T19:34:24.138Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
</urlset> |
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,62 @@ | ||
import { Metadata } from 'next'; | ||
|
||
import HungerMapChatbot from '@/components/Chatbot/Chatbot'; | ||
import { Topbar } from '@/components/Topbar/Topbar'; | ||
import { siteConfig } from '@/config/site'; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
default: 'Comparison Portal', | ||
template: `%s - ${siteConfig.name}`, | ||
}, | ||
description: | ||
'Compare real-time global hunger data across different countries and regions. Obtain food insecurity statistics from the WFP Hunger Map Comparison Portal, tailored to various time zones. A valuable resource for humanitarian efforts and research.', | ||
keywords: siteConfig.keywords, | ||
openGraph: { | ||
title: `Comparison Portal - ${siteConfig.name}`, | ||
description: | ||
'Compare real-time global hunger data across different countries and regions. Obtain food insecurity statistics from the WFP Hunger Map Comparison Portal, tailored to various time zones. Essential for humanitarian aid and research.', | ||
url: `${siteConfig.domain}/comparison-portal`, | ||
images: [ | ||
{ | ||
url: '/Images/Comparison-preview.png', | ||
width: 1200, | ||
height: 630, | ||
alt: `Comparison Portal - ${siteConfig.name}`, | ||
}, | ||
], | ||
type: 'website', | ||
}, | ||
twitter: { | ||
card: 'summary_large_image', | ||
title: `Comparison Portal - ${siteConfig.name}`, | ||
description: | ||
'Access comparable global hunger data from the WFP Hunger Map Comparison Portal, tailored to different countries and time zones.', | ||
images: [ | ||
{ | ||
url: '/Images/Comparison-preview.png', | ||
width: 1200, | ||
height: 630, | ||
alt: `Comparison Portal - ${siteConfig.name}`, | ||
}, | ||
], | ||
site: '@WFP', | ||
}, | ||
robots: { | ||
index: true, | ||
follow: true, | ||
nocache: false, | ||
}, | ||
}; | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<div className="min-h-screen flex flex-col"> | ||
<div className="mb-20"> | ||
<Topbar /> | ||
<HungerMapChatbot /> | ||
</div> | ||
<main className="flex flex-col gap-6 lg:gap-10 p-5 lg:p-10 text-content w-full">{children}</main> | ||
</div> | ||
); | ||
} |
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,28 @@ | ||
import { Suspense } from 'react'; | ||
|
||
import ComparisonAccordionSkeleton from '@/components/ComparisonPortal/ComparisonAccordionSkeleton'; | ||
import CountryComparison from '@/components/ComparisonPortal/CountryComparison'; | ||
import CountrySelectionSkeleton from '@/components/ComparisonPortal/CountrySelectSkeleton'; | ||
import container from '@/container'; | ||
import { GlobalDataRepository } from '@/domain/repositories/GlobalDataRepository'; | ||
|
||
export default async function ComparisonPortal() { | ||
const globalRepo = container.resolve<GlobalDataRepository>('GlobalDataRepository'); | ||
const countryMapData = await globalRepo.getMapDataForCountries(); | ||
const globalFcsData = await globalRepo.getFcsData(); | ||
return ( | ||
<div> | ||
<h1>Comparison Portal</h1> | ||
<Suspense | ||
fallback={ | ||
<> | ||
<CountrySelectionSkeleton /> | ||
<ComparisonAccordionSkeleton /> | ||
</> | ||
} | ||
> | ||
<CountryComparison countryMapData={countryMapData} globalFcsData={globalFcsData} /> | ||
</Suspense> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.