Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Nov 11, 2024
1 parent 95b8c41 commit 4e39a69
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
Binary file modified taxonium_website/public/usher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion taxonium_website/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ function App() {
title: config.title,
url: `/${path}`,
desc: config.description,
icon: config.icon,
maintainerMessage: config.maintainerMessage,
};
}).filter(Boolean); // Remove any null entries from missing configs

Expand Down Expand Up @@ -191,9 +193,15 @@ function App() {
)}
{window.screen.width >= 600 && (
<>
{
pathConfig && pathConfig.maintainerMessage && pathConfig.icon && (
<img src={pathConfig.icon} className="w-6 h-6 rounded border-gray-400 border inline-block" title={pathConfig.maintainerMessage} />
)

}
<span
className={`font-medium ${
title.length > 12 ? "text-lg" : ""
title.length > 12 ? "text-lg leading-tight" : ""
}`}
>
{title}
Expand Down Expand Up @@ -284,11 +292,19 @@ function App() {
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{showCase.map((item, i) => (
<div key={i} className="border border-gray-300 rounded p-3">
<img src={item.icon} className="w-6 h-6 rounded border-gray-500 mb-2 inline-block mr-2"

title={
item.maintainerMessage
}

/>
<a
href={item.url}
className="text-gray-800 hover:underline"
target="_top"
>

{item.title}
</a>
<p className="text-gray-600 text-sm">{item.desc}</p>
Expand Down
6 changes: 3 additions & 3 deletions taxonium_website/src/trees.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"title": "Mpox",
"description": "Mpox sequences from GenBank",
"legacyHostnames": ["mpx.taxonium.org"],
"icon": "/usher.png",
"icon": "/apple-touch-icon.png",
"maintainerMessage": "Maintained by the Taxonium team",
"maintainerUrl": null
},
Expand All @@ -35,7 +35,7 @@
"title": "NCBI Taxonomy (full)",
"description": "Full 2.2M NCBI Taxonomy of species",
"legacyHostnames": ["taxonomy.taxonium.org"],
"icon": "/usher.png",
"icon": "/apple-touch-icon.png",
"maintainerMessage": "Built by the Taxonium team from the NCBI phylogeny",
"maintainerUrl": null
},
Expand All @@ -44,7 +44,7 @@
"title": "Wikidata visual tree of life",
"description": "The tree of life, showing species from Wikidata with images. Links to Wikipedia.",
"legacyHostnames": ["visualtreeoflife.taxonium.org"],
"icon": "/usher.png",
"icon": "/apple-touch-icon.png",
"maintainerMessage": "Built by the Taxonium team from the Wikidata phylogeny",
"maintainerUrl": null
},
Expand Down

0 comments on commit 4e39a69

Please sign in to comment.