Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenwindflower committed Mar 17, 2024
1 parent 0446a9c commit 37edaf1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
18 changes: 12 additions & 6 deletions reports/pages/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<script>
import '@evidence-dev/tailwind/fonts.css';
import '../app.css';
import { EvidenceDefaultLayout } from '@evidence-dev/core-components';
export let data;
import "@evidence-dev/tailwind/fonts.css";
import "../app.css";
import { EvidenceDefaultLayout } from "@evidence-dev/core-components";
export let data;
</script>

<EvidenceDefaultLayout {data} title="🌲 dbtree 🌳" githubRepo="https://github.com/gwenwindflower/dbtree">
<slot slot="content" />
<EvidenceDefaultLayout
{data}
title="🌲 dbtree 🌳"
githubRepo="https://github.com/gwenwindflower/dbtree"
builtWithEvidence={true}
logo="./logo.png"
>
<slot slot="content" />
</EvidenceDefaultLayout>
16 changes: 8 additions & 8 deletions reports/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ title: 🌲🌳 Trees of San Francisco 🚃🌉

The 3 most common species of trees in San Francisco are the <Value data={common_species_counts} column=species_friendly_name row=0 />, the <Value data={common_species_counts} column=species_friendly_name row=1 />, and the <Value data={common_species_counts} column=species_friendly_name row=2 />.

- <BarChart
data={common_species_counts}
x="species_friendly_name"
y="count_of_trees"
title="Most common species"
subtitle="Species with more than 3000 trees"
colorPalette={myColors}
/>
<BarChart
data={common_species_counts}
x="species_friendly_name"
y="count_of_trees"
title="Most common species"
subtitle="Species with more than 3000 trees"
colorPalette={myColors}
/>

```sql common_species_counts
select
Expand Down
4 changes: 2 additions & 2 deletions reports/pages/trees_planted_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title: History of Trees Planted
]
</script>

San Francisco's urban forest has been growing for over a century. This heatmap shows the number of trees planted as far back as the data goes. The earliest tree in the dataset was planted in <Value data={trees_planted_all_time_start_year} fmt="YYYY"/>!
San Francisco's urban forest has been growing for over a century. This heatmap shows the number of trees planted as far back as the data goes. The earliest tree in the dataset was planted in <Value data={trees_planted_all_time_start_year} fmt="YYYY" />!

<CalendarHeatmap
data={trees_planted_all_time}
Expand All @@ -37,7 +37,7 @@ order by 1 desc

```sql trees_planted_all_time_start_year
select
date_part('year', min(planted_at_date)) as start_year
min(planted_at_date) as start_year

from ${trees_planted_all_time}
```
Binary file added reports/static/logo.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 37edaf1

Please sign in to comment.