-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c67fd12
commit 9f55391
Showing
6 changed files
with
115 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
<script lang="ts"> | ||
import posts from "./posts.json" | ||
import { groups } from "./posts" | ||
</script> | ||
|
||
{#each posts as { title, url, description }, i} | ||
<a target="_blank" href={url}> | ||
<b>{title}</b>: | ||
{description} | ||
</a> | ||
{#each groups as { heading, posts }} | ||
<h2>{heading}</h2> | ||
{#each posts as { title, author, url, description }, i} | ||
<a target="_blank" href={url}> | ||
<div class="label-caps">{author}</div> | ||
<div class="link-title bold">{title}</div> | ||
{#if description} | ||
<div class="description label">{description}</div> | ||
{/if} | ||
</a> | ||
{/each} | ||
{/each} | ||
|
||
<style lang="sass"> | ||
a | ||
display: flex | ||
flex-direction: column | ||
margin-bottom: 1em | ||
text-decoration: none | ||
transition: background 0.2s | ||
padding: var(--border-radius) | ||
border-radius: var(--border-radius) | ||
background: var(--color-secondary-2) | ||
@media (hover: hover) | ||
a:hover | ||
background: var(--color-secondary-3) | ||
</style> |
This file was deleted.
Oops, something went wrong.
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,83 @@ | ||
export const datasets = { | ||
heading: "Datasets", | ||
posts: [ | ||
{ | ||
title: "Focus on what you eat, not whether your food is local", | ||
description: "How does the impact of what you eat compare to where it's come from?", | ||
author: "Our World In Data", | ||
url: "https://ourworldindata.org/food-choice-vs-eating-local" | ||
}, | ||
{ | ||
title: "Environmental Impacts of Food Data Explorer", | ||
author: "Our World In Data", | ||
description: "Explore the land use, carbon, and water footprints of food products.", | ||
url: "https://ourworldindata.org/explorers/food-footprints" | ||
}, | ||
{ | ||
title: "FoodData Central", | ||
author: "US Deptartment of Agriculture", | ||
description: "The USDA's food and nutrient database.", | ||
url: "https://fdc.nal.usda.gov/fdc-app.html#/" | ||
}, | ||
{ | ||
title: "FAOSTAT", | ||
author: "Food and Agriculture Organization", | ||
description: "A broad database on food, agriculture, economics, and land use.", | ||
url: "https://www.fao.org/faostat/en/#data" | ||
} | ||
] | ||
} | ||
|
||
export const articles = { | ||
heading: "Articles", | ||
posts: [ | ||
{ | ||
title: "Environmental Impacts of Food Production", | ||
author: "Our World In Data", | ||
url: "https://ourworldindata.org/environmental-impacts-of-food", | ||
description: | ||
"A comprehensive overview of the environmental impacts of food production, including a series of articles and data explorers." | ||
}, | ||
{ | ||
title: | ||
"A meta-analysis of projected global food demand and population at risk of hunger for the period 2010–2050", | ||
author: "Nature Journal", | ||
url: "https://www.ipcc.ch/srccl/" | ||
} | ||
] | ||
} | ||
|
||
export const reports = { | ||
heading: "Reports", | ||
posts: [ | ||
{ | ||
title: "Climate change and land", | ||
author: "Intergovernmental Panel on Climate Change (IPCC)", | ||
description: | ||
"On climate change, desertification, land degradation, sustainable land management, food security.", | ||
url: "https://www.ipcc.ch/srccl/" | ||
}, | ||
{ | ||
title: "Shifting diets for a sustainable food future", | ||
author: "World Resources Institute", | ||
description: | ||
"A 2016 report about how shifting diets can reduce agriculture’s pressure on the environment", | ||
url: "https://www.wri.org/research/shifting-diets-sustainable-food-future" | ||
} | ||
] | ||
} | ||
|
||
export const interactives = { | ||
heading: "Interactives", | ||
posts: [ | ||
{ | ||
title: "CAFO Explorer", | ||
description: | ||
"Chickens in the United States are raised in factory farms called concentrated animal feeding operations (CAFOs). Explore where they are using this tool.", | ||
author: "The Plotline", | ||
url: "https://stories.theplotline.org/cafo-explorer/" | ||
} | ||
] | ||
} | ||
|
||
export const groups = [interactives, articles, reports, datasets] |