Skip to content

Commit

Permalink
Merge pull request #16 from SAEONData/ui-development
Browse files Browse the repository at this point in the history
Ui development
  • Loading branch information
Taryn-Saeon authored Apr 20, 2020
2 parents f431663 + 7d4c83c commit 40f92b2
Show file tree
Hide file tree
Showing 112 changed files with 3,753 additions and 491 deletions.
66 changes: 66 additions & 0 deletions App/Data/2019Data.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import React from 'react';
import { MDBDataTable } from 'mdbreact';
import WMOExtremeClimateIndicesreport2019FIN from '../content/pdfs/WMOExtremeClimateIndicesreport2019FIN.pdf'
import AnnualStateoftheClimate2019 from '../content/pdfs/AnnualStateoftheClimate2019.pdf'

const ReportYearData = () => {
const data = {
columns: [
{
label: 'Title',
field: 'title',
sort: 'asc',
width: 150
},
{
label: 'Source',
field: 'source',
sort: 'asc',
width: 150
},
{
label: 'Document Reference',
field: 'docref',
sort: 'asc',
width: 150
},
{
label: 'Link',
field: 'link',
sort: 'asc',
width: 150
}
],
rows: [
{
title: "Annual State of the Climate of South Africa 2019",
source: "SAWS",
docref: "WCS-CLS-CI-ASC-2019",
link: [<a className="dataLink" href={AnnualStateoftheClimate2019} target="_blank">link</a>]
},
{
title: "Trends in Extreme Climate Indices in South Africa 2019",
source: "SAWS",
docref: "WCS-CLS-WMO_EXTREME_CLIMATE_INDICES_2019.1",
link: [<a className="dataLink" href={WMOExtremeClimateIndicesreport2019FIN} target="_blank">link</a>]
}
]
};

return (
<>
<MDBDataTable
striped
bordered
hover
data={data}
// exportToCSV
info={false}
/>
</>
);
}



export default (ReportYearData);
File renamed without changes.
6 changes: 3 additions & 3 deletions App/Data/footerConfig.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import DEA_Logo from '../images/DEA/environmental_affairs_logo_small.jpg'
//import DEA_Logo from '../images/DEA/environmental_affairs_logo_small.jpg'


export const footerContent = {
sections: [
{
text: "Technology",
links: [
{ text: "DEA NCCIS uses open source, government funded facilities provided by SAEON. The DST and NRF funds the SAEON Open Data Platform (ODP) and associated portals. Developed by SAEON on behalf of DST, DEA, DRDLR, and other stakeholders." },
{ text: "DEFF NCCIS uses open source, government funded facilities provided by SAEON. The DST and NRF funds the SAEON Open Data Platform (ODP) and associated portals. Developed by SAEON on behalf of DSI, DEFF and DLDLR, and other stakeholders." },
]
},
{
Expand All @@ -29,7 +29,7 @@ export const footerContent = {
{
text: "Funding",
links: [
{ src: DEA_Logo, width: "100%"/*, link: "http://www.example.com"*/ }
//{ src: DEA_Logo, width: "100%"/*, link: "http://www.example.com"*/ }
]
}
]
Expand Down
6 changes: 3 additions & 3 deletions App/Data/guidelinesData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const GuidelinesData = () => {
{
type: "Aaptation",
name: "National Environmental Management Act: Implementation guidelines",
description: "The Department of Environmental Affairs (DEA) determined that a guideline on the Environmental Impact Assessmet (EIA) process would be of value in respect of particular types of developments. These are referred to as \"sectors' and the DEA identified 5 sectors that required attention, namely agri-industry projects, energy projects, large-scale developments, social infrastructure and housing projects and linear developments.",
description: "The Department of Environment, Forestry and Fisheries (DEFF) determined that a guideline on the Environmental Impact Assessmet (EIA) process would be of value in respect of particular types of developments. These are referred to as \"sectors' and the DEFF identified 5 sectors that required attention, namely agri-industry projects, energy projects, large-scale developments, social infrastructure and housing projects and linear developments.",
year: 2010,
link: [<button onClick={(event) => {event.preventDefault(); window.open("https://www.gov.za/documents/national-environmental-management-act-implementation-guidelines-draft-0");}}>link</button>]
},
Expand All @@ -60,14 +60,14 @@ const GuidelinesData = () => {
{
type: "Adaptation",
name: "National Environmental Management: Protected Areas Act: Cultural Heritage Survey guidelines and assessment tools for protected areas in South Africa",
description: "The Department of Environmental Affairs (DEA) following the introduction of the Management Effectiveness Tracking Tool (METT-SA) to track protected area management effectiveness, has identified cultural heritage survey, inventory, planning, and condition assessment in relation to planned objectives as a gap in the management of cultural heritage resources in Protected Areas in South Africa.",
description: "The Department of Environment, Forestry and Fisheries (DEFF) following the introduction of the Management Effectiveness Tracking Tool (METT-SA) to track protected area management effectiveness, has identified cultural heritage survey, inventory, planning, and condition assessment in relation to planned objectives as a gap in the management of cultural heritage resources in Protected Areas in South Africa.",
year: 2017,
link: [<button onClick={(event) => {event.preventDefault(); window.open("https://www.gov.za/documents/national-environmental-management-protected-areas-act-cultural-heritage-survey-0");}}>link</button>]
},
{
type: "Adaptation",
name: "Guidelines for Ecosystem-based Adaptation (EBA) in South Africa",
description: "Ecosystem-based Adaptation (EbA) is the use of biodiversity and ecosystem services as part of an overall adaptation strategy to help people to adapt to the adverse effects of climate change (CBD, 2009; DEA & SANBI, 2016). Ecosystem-based Adaptation (EbA) represents a coherent approach for adaptation to climate change that makes use of the role that well-functioning ecosystems play in achieving positive societal and development outcomes.",
description: "Ecosystem-based Adaptation (EbA) is the use of biodiversity and ecosystem services as part of an overall adaptation strategy to help people to adapt to the adverse effects of climate change (CBD, 2009; DEFF & SANBI, 2016). Ecosystem-based Adaptation (EbA) represents a coherent approach for adaptation to climate change that makes use of the role that well-functioning ecosystems play in achieving positive societal and development outcomes.",
year: 2017,
link: [<button onClick={(event) => {event.preventDefault(); window.open("https://www.sanbi.org/wp-content/uploads/2018/09/SA-Ecosystem-based-Adaptation-EbA-Guidelines.pdf");}}>link</button>]
},
Expand Down
2 changes: 1 addition & 1 deletion App/Data/policyData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const PolicyLData = () => {
{
type: "Adaptation",
name: "Strategic Framework and Overarching Implementation Plan for Ecosystem-Based Adaptation (EbA) in South Africa 2016 - 2021",
description: "Developed under the leadership of the Department of Environmental Affairs (DEA) and the South African National Biodiversity Institute (SANBI) and in consultation with biodiversity and climate change stakeholders, the Strategic Framework and Overarching Implementation Plan for EbA (hereafter referred to as the EbA Strategy) aims to take forward EbA as a central component of South Africa?s programme of work on biodiversity and climate change.",
description: "Developed under the leadership of the Department of Environment, Forestry and Fisheries (DEFF) and the South African National Biodiversity Institute (SANBI) and in consultation with biodiversity and climate change stakeholders, the Strategic Framework and Overarching Implementation Plan for EbA (hereafter referred to as the EbA Strategy) aims to take forward EbA as a central component of South Africa?s programme of work on biodiversity and climate change.",
year: 2016,
link: [<button onClick={(event) => {event.preventDefault(); window.open("https://www.sanbi.org/wp-content/uploads/2018/09/Strategic-Framework-and-Overarching-Implementation-Plan-for-EbA-in-SA.pdf");}}>link</button>]
},
Expand Down
155 changes: 155 additions & 0 deletions App/Data/provincialData.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
import React from 'react';
import { MDBDataTable } from 'mdbreact';
import ClimateChangeStatusQuofortheFreeStateProvince from '../content/pdfs/ClimateChangeStatusQuofortheFreeStateProvince.pdf';
import ClimateChangeModelProjectionfortheFreeStateProvince from '../content/pdfs/ClimateChangeModelProjectionfortheFreeStateProvince.pdf';
import VulnerabilityAssessmentforFreeStateProvince from '../content/pdfs/VulnerabilityAssessmentforFreeStateProvince.pdf';
import KZNDraftClimateChangeActionPlan from '../content/pdfs/KZNDraftClimateChangeActionPlan.pdf';
import AdaptationStrategiesforLimpopoProvince from '../content/pdfs/AdaptationStrategiesforLimpopoProvince.pdf';
import AdaptationStrategiesforMpumalangaProvince from '../content/pdfs/AdaptationStrategiesforMpumalangaProvince.pdf';
import VulnerabilityAssessmentforMpumalangaProvince from '../content/pdfs/VulnerabilityAssessmentforMpumalangaProvince.pdf';
import VulnerabilityAssessmentforNorthWestProvince from '../content/pdfs/VulnerabilityAssessmentforNorthWestProvince.pdf';
import AdaptationStrategiesforNorthWestProvince from '../content/pdfs/AdaptationStrategiesforNorthWestProvince.pdf';
import ClimateChangeModelProjectionsFortheNorthernCapeProvince from '../content/pdfs/ClimateChangeModelProjectionsFortheNorthernCapeProvince.pdf';
import VulnerabilityAssessmentforNorthernCapeProvince from '../content/pdfs/VulnerabilityAssessmentforNorthernCapeProvince.pdf';
import ClimateChangeStatusQuofortheNorthernCapeProvince from '../content/pdfs/ClimateChangeStatusQuofortheNorthernCapeProvince.pdf';


const ProvincialData = () => {
const data = {
columns: [
{
label: 'Province',
field: 'province',
sort: 'asc',
width: 150
},
{
label: 'Document',
field: 'document',
sort: 'asc',
width: 150
},
{
label: 'Date',
field: 'date',
sort: 'asc',
width: 250
},
{
label: 'Link',
field: 'link',
sort: 'asc',
width: 200
}
],
rows: [
{
province: "Eastern Cape",
document: "Eastern Cape Climate Change Response Strategy",
date: 2011,
link: [<button onClick={(event) => {event.preventDefault(); window.open("http://www.cityenergy.org.za/uploads/resource_182.pdf");}}>View Document <em className="fa fa-file-pdf-o"></em></button>]
},
{
province: "Free State",
document: "Climate Change Status Quo Report",
date: 2015,
link: [<a className="dataLink" href={ClimateChangeStatusQuofortheFreeStateProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Free State",
document: "Climate Change Model Projection for the Free State Province",
date: 2015,
link: [<a className="dataLink" href={ClimateChangeModelProjectionfortheFreeStateProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Free State",
document: "Vulnerability Assessment for the Free State Province",
date: 2015,
link: [<a className="dataLink" href={VulnerabilityAssessmentforFreeStateProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Gauteng",
document: "Report on the updated climate change projections and broad risk and vulnerability assessment of selected sectors",
date: 2017,
link: [<button onClick={(event) => {event.preventDefault(); window.open("http://www.redirect1.gpg.gov.za/gchip/Documents/Gauteng%20Climate%20Change%20Risk%20and%20vulnerability%20assessment%20-%202017.pdf");}}>View Document <em className="fa fa-file-pdf-o"></em></button>]
},
{
province: "KwaZulu-Natal",
document: "Draft Climate Change ActionPlan",
date: 2014,
link: [<a className="dataLink" href={KZNDraftClimateChangeActionPlan} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Limpopo",
document: "Climate Support Programme (CSP) – Climate Change Adaptation Strategies: Adaptation Strategies for Limpopo Province ",
date: 2015,
link: [<a className="dataLink" href={AdaptationStrategiesforLimpopoProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Limpopo",
document: "Climate Support Programme (CSP) - Climate Change Adaptation Strategies: Adaptation Strategies for Limpopo Province",
date: 2013,
link: [<button onClick={(event) => {event.preventDefault(); window.open("https://www.environment.gov.za/sites/default/files/docs/limpopogreen_economyplan.pdf");}}>View Document <em className="fa fa-file-pdf-o"></em></button>]
},
{
province: "Mpumalanga",
document: "Adaptation Strategies for Mpumalanga Province",
date: 2015,
link: [<a className="dataLink" href={AdaptationStrategiesforMpumalangaProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Mpumalanga",
document: "Mpumalanga Provincial Climate Change Vulnerability Assessment Report",
date: 2015,
link: [<a className="dataLink" href={VulnerabilityAssessmentforMpumalangaProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "North West",
document: "North West Provincial Climate Change Vulnerability Assessment Report",
date: 2015,
link: [<a className="dataLink" href={VulnerabilityAssessmentforNorthWestProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "North West",
document: "Provincial Climate Change Vulnerability Assessment Report",
date: 2015,
link: [<a className="dataLink" href={AdaptationStrategiesforNorthWestProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Northern Cape",
document: "Northern Cape Climate Change Projections",
date: 2015,
link: [<a className="dataLink" href={ClimateChangeModelProjectionsFortheNorthernCapeProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Northern Cape",
document: "Northern Cape Climate Change Vulnerability Assessment",
date: 2015,
link: [<a className="dataLink" href={VulnerabilityAssessmentforNorthernCapeProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Northern Cape",
document: "Northern Cape Climate Change Status Quo",
date: 2015,
link: [<a className="dataLink" href={ClimateChangeStatusQuofortheNorthernCapeProvince} target="_blank">View Document <em className="fa fa-file-pdf-o"></em></a>]
},
{
province: "Western Cape",
document: "Western Cape Climate Change Response Strategy",
date: 2014,
link: [<button onClick={(event) => {event.preventDefault(); window.open("https://www.westerncape.gov.za/text/2015/march/western_cape_climate_change_response_strategy_2014.pdf");}}>View Document <em className="fa fa-file-pdf-o"></em></button>]
}
]
};

return (
<MDBDataTable
striped
bordered
hover
data={data}
/>
);
}

export default ProvincialData;
Loading

0 comments on commit 40f92b2

Please sign in to comment.