Skip to content

Commit

Permalink
Update the name of the tools
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Dec 5, 2023
1 parent a9295fc commit 15e5f84
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 34 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# supply-chain-chart
# Trade Flow Map

Supply chain chart is tool that generates flow map images for Mongabay's articles.
Create images of maps with flows representing the exchange of a variety of commodities across the world.

<p align="center">
<img src="docs/assets/hero.png" alt="Supply chain chart" />
Expand Down
4 changes: 1 addition & 3 deletions components/head/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import Head from 'next/head';

const HeadComponent = ({ title, description }) => (
<Head>
<title key="title">
{title ? `${title} | Supply Chain Data Tool` : 'Supply Chain Data Tool'}
</title>
<title key="title">{title ? `${title} | Trade Flow Map` : 'Trade Flow Map'}</title>
<meta
key="description"
name="description"
Expand Down
2 changes: 1 addition & 1 deletion components/header/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Header = () => {
/>
</div>
<div className="header__content">
<p>supply chain Tool</p>
<p className="header__content__name">Trade Flow Map</p>
<HeaderMenu />
</div>
</div>
Expand Down
28 changes: 7 additions & 21 deletions components/header/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,29 @@ export const COLORS = ['#03755E', '#184B95', '#A01200', '#7E56D8'];

export const TOOLS = [
{
id: 'satellite',
title: 'Satellite',
description:
'Create images of maps using a wide set of basemaps, contextual layers and data layers or explore the map presets that provide information about topics like conservation.',
id: 'earth-atlas',
name: 'Earth Atlas',
color: COLORS[1],
image: '/images/satellite-tool.png',
name: 'Satellite Tool',
url: 'https://maps.mongabay.com',
},
{
id: 'fire',
title: 'Fire Drought',
description:
'Explore and report temporal interactions between annual precipitation and fire occurrences at national and subnational scales.',
id: 'fire-weather-almanac',
name: 'Fire Weather Almanac',
color: COLORS[2],
image: '/images/fire-tool.png',
name: 'Fire Drought',
url: 'https://charts.mongabay.com',
},
{
id: 'reforestation',
id: 'reforestation-app',
title: 'Reforestation App',
description:
'Mongabay’s global directory of reforestation and tree-planting projects is a starting point for people wanting to support reforestation.',
color: COLORS[0],
image: '/images/reforestation-tool.png',
name: 'Reforestation App',
url: 'https://reforestation.app',
},
{
id: 'supply',
title: 'Supply Chain',
description:
'Create images of maps with flows representing the exchange of a variety of commodities across the world.',
id: 'trade-flow-map',
name: 'Trade Flow Map',
color: COLORS[3],
image: '/images/supply-tool.png',
name: 'Supply Chain',
url: 'https://chains.mongabay.com',
},
];
4 changes: 2 additions & 2 deletions components/header/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const HeaderMenu = () => {
<span className="sr-only">close navigation menu</span>
<Icon name="menu-close" className="header__menu__content__wrap__close-btn__icon" />
</button>
<p className="header__menu__content__wrap__title">Mongabay Chart Tools</p>
<p className="header__menu__content__wrap__title">Data Journalism Tools</p>
<ul className="space-y-6">
{TOOLS.map(({ name, url, id, color }) => (
<li key={name}>
Expand All @@ -50,7 +50,7 @@ const HeaderMenu = () => {
backgroundColor: color,
}}
>
<Icon className={cx(id === 'supply' ? '--lg' : '--md')} name={id} />
<Icon className={cx(id === 'trade-flow-map' ? '--lg' : '--md')} name={id} />
</div>
{name}
</a>
Expand Down
4 changes: 4 additions & 0 deletions components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
letter-spacing: 0.96px;
text-transform: uppercase;
}

&__name {
text-transform: uppercase;
}
}
&__menu {
flex-shrink: 0;
Expand Down
8 changes: 4 additions & 4 deletions components/icons/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/tool/sidebar/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Sidebar = ({
<aside className="c-tool-sidebar">
<DownloadSuccessModal open={downloadModalOpen} onClose={() => setDownloadModalOpen(false)} />
<div className="content">
<h1>Supply Chain Data Tool</h1>
<h1>Trade Flow Map</h1>
<p>
Create images of maps with flows representing the exchange of a variety of commodities
across the world.
Expand Down
Binary file modified docs/assets/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15e5f84

Please sign in to comment.