Skip to content

Commit

Permalink
add social logos and change panel color
Browse files Browse the repository at this point in the history
  • Loading branch information
rorywhite200 committed Jan 21, 2024
1 parent 9a9c450 commit 25f2b55
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 12 deletions.
1 change: 1 addition & 0 deletions docs/assets/index-A6sV4zcx.css

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

10 changes: 5 additions & 5 deletions docs/assets/index-11rCnKXE.js → docs/assets/index-SIgYcnQv.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/assets/index-obtGD0H4.css

This file was deleted.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://use.typekit.net/nrk3mgd.css">

<script type="module" crossorigin src="/antibiotic-aware-viz/assets/index-11rCnKXE.js"></script>
<link rel="stylesheet" crossorigin href="/antibiotic-aware-viz/assets/index-obtGD0H4.css">
<script type="module" crossorigin src="/antibiotic-aware-viz/assets/index-SIgYcnQv.js"></script>
<link rel="stylesheet" crossorigin href="/antibiotic-aware-viz/assets/index-A6sV4zcx.css">
</head>
<body>
<div id="app"></div>
Expand Down
28 changes: 24 additions & 4 deletions src/components/ControlPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,36 @@

</div>
<div class ="credits" style="width: 100vw; font-size: 0.9rem; background: #D6D6D6; position: {mediumScreen ? "relative" : "absolute"}; bottom: 0; left: 0; padding: 0.1rem 3rem 2rem 3rem; color: #393030;">
<h2>Credits</h2>
<p style="line-height: 1.5; padding-right: 0.5rem;">This website was created by Rory White using Svelte and d3/js. Data was sourced from the <a href="https://www.who.int/publications/i/item/WHO-MHP-HPS-EML-2023.04">WHO AWaRe Classification 2023.</a>
Antibiotic descriptions are from the <a href="https://go.drugbank.com">Drugbank</a> database (Attribution-NonCommercial 4.0 International) and Wikipedia. Text descriptions of the WHO AWaRe categories are from the <a href="https://aware.essentialmeds.org/groups">AWaRe website.</a> The visualization mechanics were adapted from Mike Bostock's Zoomable Sunburst.</p>

<div class="logo-flex" style="display: flex; align-items: center; height: fit-content; line-height: 1;">
<h2 style="margin-right: 1rem;">Credits</h2>
<a href="https://github.com/rorywhite200/antibiotic-aware-viz" target="_blank">
<svg width="25" height="25" viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
</a>
<a href="https://www.linkedin.com/in/rory-white-5a954819a/" target="_blank">
<svg height="25" viewBox="0 0 72 72" width="25" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M8,72 L64,72 C68.418278,72 72,68.418278 72,64 L72,8 C72,3.581722 68.418278,-8.11624501e-16 64,0 L8,0 C3.581722,8.11624501e-16 -5.41083001e-16,3.581722 0,8 L0,64 C5.41083001e-16,68.418278 3.581722,72 8,72 Z" fill="#007EBB"/><path d="M62,62 L51.315625,62 L51.315625,43.8021149 C51.315625,38.8127542 49.4197917,36.0245323 45.4707031,36.0245323 C41.1746094,36.0245323 38.9300781,38.9261103 38.9300781,43.8021149 L38.9300781,62 L28.6333333,62 L28.6333333,27.3333333 L38.9300781,27.3333333 L38.9300781,32.0029283 C38.9300781,32.0029283 42.0260417,26.2742151 49.3825521,26.2742151 C56.7356771,26.2742151 62,30.7644705 62,40.051212 L62,62 Z M16.349349,22.7940133 C12.8420573,22.7940133 10,19.9296567 10,16.3970067 C10,12.8643566 12.8420573,10 16.349349,10 C19.8566406,10 22.6970052,12.8643566 22.6970052,16.3970067 C22.6970052,19.9296567 19.8566406,22.7940133 16.349349,22.7940133 Z M11.0325521,62 L21.769401,62 L21.769401,27.3333333 L11.0325521,27.3333333 L11.0325521,62 Z" fill="#FFF"/></g></svg>
</a>
</div>
<p style="margin-top: 0; line-height: 1.5; padding-right: 0.5rem;">This website was created by Rory White using Svelte and d3/js. Data was sourced from the <a href="https://www.who.int/publications/i/item/WHO-MHP-HPS-EML-2023.04">WHO AWaRe Classification 2023.</a>
Antibiotic descriptions are from the <a href="https://go.drugbank.com">Drugbank</a> database (Attribution-NonCommercial 4.0 International) and Wikipedia. Text descriptions of the WHO AWaRe categories are from the <a href="https://aware.essentialmeds.org/groups">AWaRe website.</a> The visualization mechanics were adapted from Mike Bostock's Zoomable Sunburst.</p>
</div>


</div>

<style>
.credits svg {
cursor: pointer;
opacity: 0.8;
}
.logo-flex a {
margin-right: 1rem;
}
.diagram {
position: absolute;
bottom: 4rem;
Expand All @@ -98,7 +118,7 @@
}
.left-panel {
padding: 0 3rem;
background-color: #444141;
background-color: #3C414C;
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
margin-left: 2rem;
padding-top: 3rem;
Expand Down

0 comments on commit 25f2b55

Please sign in to comment.