Skip to content

Commit

Permalink
clean: cleaner default layout
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetit committed Aug 14, 2024
1 parent ad29455 commit 747456e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 55 deletions.
10 changes: 5 additions & 5 deletions observablehq.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ export default {
// ],

// Content to add to the head of the page, e.g. for a favicon:
head: '<link rel="icon" href="observable.png" type="image/png" sizes="32x32">',
head: '<link rel="icon" href="favicon_hubblo.png" type="image/png" sizes="16x16">',

// The path to the source root.
root: "src",

// Some additional configuration options and their defaults:
// theme: "default", // try "light", "dark", "slate", etc.
theme: "cotton", // try "light", "dark", "slate", etc.
// header: "", // what to show in the header (HTML)
// footer: "Built with Observable.", // what to show in the footer (HTML)
// sidebar: true, // whether to show the sidebar
// toc: true, // whether to show the table of contents
footer: 'A case study by <a href="https://hubblo.org/blog">Hubblo</a>.', // what to show in the footer (HTML)
sidebar: false, // whether to show the sidebar
toc: true, // whether to show the table of contents
// pager: true, // whether to show previous & next links in the footer
// output: "dist", // path to the output root for build
// search: true, // activate search
Expand Down
18 changes: 0 additions & 18 deletions src/data/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,3 @@ def main():

if __name__ == '__main__':
main()

#for src_file in ["storage_1.csv", "storage_2.csv"]:
# if exists(src_file):
# with open(src_file, "r") as fs_sto:
# for l in fs_sto.readlines():
# if l.startswith("Service Type"):
#
# if "GWP" in l:
# cols = l.split(",")
# impact_criterias = cols[1:]
# else:
# if l.startswith("Tier") or l.startswith("Total"):
# cols = l.split(",")
# tier = cols[0]
# values = cols[1:]
#
# # use_case,tier_1,tier_2,tier_3,total
# # storage
Binary file added src/favicon_hubblo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 2 additions & 32 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ toc: false
font-size: 14vw;
font-weight: 900;
line-height: 1;
background: linear-gradient(30deg, var(--theme-foreground-focus), currentColor);
background: linear-gradient(30deg, var(--theme-foreground-muted), currentColor);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
Expand All @@ -37,7 +37,7 @@ toc: false

@media (min-width: 640px) {
.hero h1 {
font-size: 90px;
font-size: 70px;
}
}

Expand Down Expand Up @@ -81,33 +81,3 @@ const fx = view(Inputs.select(["dc_location", "tier"], {value: "dc_location", la
}))}
</div>
</div>

---

## Next steps

Here are some ideas of things you could try…

<div class="grid grid-cols-4">
<div class="card">
Chart your own data using <a href="https://observablehq.com/framework/lib/plot"><code>Plot</code></a> and <a href="https://observablehq.com/framework/files"><code>FileAttachment</code></a>. Make it responsive using <a href="https://observablehq.com/framework/display#responsive-display"><code>resize</code></a>.
</div>
<div class="card">
Create a <a href="https://observablehq.com/framework/project-structure">new page</a> by adding a Markdown file (<code>whatever.md</code>) to the <code>src</code> folder.
</div>
<div class="card">
Add a drop-down menu using <a href="https://observablehq.com/framework/inputs/select"><code>Inputs.select</code></a> and use it to filter the data shown in a chart.
</div>
<div class="card">
Write a <a href="https://observablehq.com/framework/loaders">data loader</a> that queries a local database or API, generating a data snapshot on build.
</div>
<div class="card">
Import a <a href="https://observablehq.com/framework/imports">recommended library</a> from npm, such as <a href="https://observablehq.com/framework/lib/leaflet">Leaflet</a>, <a href="https://observablehq.com/framework/lib/dot">GraphViz</a>, <a href="https://observablehq.com/framework/lib/tex">TeX</a>, or <a href="https://observablehq.com/framework/lib/duckdb">DuckDB</a>.
</div>
<div class="card">
Ask for help, or share your work or ideas, on the <a href="https://talk.observablehq.com/">Observable forum</a>.
</div>
<div class="card">
Visit <a href="https://github.com/observablehq/framework">Framework on GitHub</a> and give us a star. Or file an issue if you’ve found a bug!
</div>
</div>

0 comments on commit 747456e

Please sign in to comment.