Skip to content

Commit 2cd0036

Browse files
committed
feat(examples): set up infrastructure for page + some examples done
1 parent 3fb1fb5 commit 2cd0036

8 files changed

Lines changed: 202 additions & 1 deletion

File tree

pages/examples.qmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
22
title: "Examples"
3+
listing:
4+
- id: examples
5+
contents: examples.yml
6+
template: gallery.ejs
37
---
48

5-
TODO.
9+
::: {#examples}
10+
:::
11+

pages/examples.yml

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
- category: Homepage for big project or team
2+
description: |
3+
not specific part of project... more overarching... whole team... whole project with many moving parts...
4+
tiles:
5+
- title: STARS
6+
subtitle: Website for the STARS project, summarising all research and publications.
7+
href: https://pythonhealthdatascience.github.io/stars/
8+
code: https://github.com/pythonhealthdatascience/stars
9+
thumbnail: examples/stars.png
10+
- title: HSMA
11+
subtitle: Homepage for the Health Service Modelling Associates (HSMA) Programme.
12+
href: https://hsma.co.uk/
13+
code: https://github.com/hsma-programme/hsma_site
14+
thumbnail: examples/hsma.png
15+
- title:
16+
subtitle:
17+
href: https://affcom.ku.edu/
18+
code:
19+
thumbnail:
20+
- title:
21+
subtitle:
22+
href: https://www.crumplab.com/
23+
code:
24+
thumbnail:
25+
- title:
26+
subtitle:
27+
href: https://dhbern.github.io/
28+
code:
29+
thumbnail:
30+
- title:
31+
subtitle:
32+
href: https://www.hertiecodingclub.com/
33+
code:
34+
thumbnail:
35+
- title: Masiello Research Group
36+
subtitle:
37+
href: https://faculty.washington.edu/masiello/
38+
code:
39+
thumbnail: examples/masiello.png
40+
- title: NHS-R Community
41+
subtitle:
42+
href: https://nhsrcommunity.com/
43+
code:
44+
thumbnail:
45+
46+
- category: Specific project
47+
description: |
48+
like a singular specific research thingy
49+
tiles:
50+
- title: STARS WP1 summary
51+
subtitle:
52+
href: https://pythonhealthdatascience.github.io/stars_wp1_summary/
53+
code:
54+
thumbnail:
55+
- title:
56+
subtitle:
57+
href: https://pythonhealthdatascience.github.io/stars-eom-rcc/
58+
code:
59+
thumbnail:
60+
- title:
61+
subtitle:
62+
href: https://mtwente.github.io/nordatlantisk-ft/
63+
code:
64+
thumbnail:
65+
66+
- category: Training / Modules / Courses / Etc.
67+
description: |
68+
TODO.
69+
tiles:
70+
- title: DES RAP Book
71+
subtitle: Self-paced training resource on creating discrete-event simulation models in Python and R as part of a reproducible analytical pipeline.
72+
href: https://pythonhealthdatascience.github.io/des_rap_book/
73+
code: https://github.com/pythonhealthdatascience/des_rap_book
74+
thumbnail: examples/des_rap_book.png
75+
- title: HSMA - the little book of DES
76+
subtitle: Self-paced training resource on creating discrete-event simulation models in Python using SimPy.
77+
href: https://des.hsma.co.uk/
78+
code: https://github.com/hsma-programme/hsma6_des_book
79+
thumbnail: examples/little_book_of_des.png
80+
- title:
81+
subtitle:
82+
href: https://taso-he.github.io/technicalguide/
83+
code: https://github.com/taso-he/technicalguide
84+
thumbnail:
85+
- title:
86+
subtitle:
87+
href: https://ui-research.github.io/reproducibility-at-urban/
88+
code: https://github.com/UI-Research/reproducibility-at-urban
89+
thumbnail:
90+
91+
- category: Researcher profiles
92+
description: |
93+
Personal websites and blogs for researchers.
94+
tiles:
95+
- title:
96+
subtitle:
97+
href: https://www.andrewheiss.com/
98+
code:
99+
thumbnail:
100+
- title:
101+
subtitle:
102+
href: https://ddimmery.com/
103+
code:
104+
thumbnail:
105+
- title:
106+
subtitle:
107+
href: https://beamilz.com/
108+
code:
109+
thumbnail:
110+
- title:
111+
subtitle:
112+
href: https://www.mm218.dev/
113+
code:
114+
thumbnail:
115+
- title:
116+
subtitle:
117+
href: https://chrisvoncsefalvay.com/
118+
code:
119+
thumbnail:
120+
- title:
121+
subtitle:
122+
href: https://forbo7.github.io/
123+
code:
124+
thumbnail:
125+
126+
- category: Conferences
127+
description: |
128+
TODO.
129+
tiles:
130+
- title:
131+
subtitle:
132+
href: https://sta210-s22.github.io/website/
133+
code:
134+
thumbnail:
135+
136+
- category: Non-Quarto Examples
137+
description: |
138+
TODO.
139+
tiles:
140+
- title: SAMueL
141+
subtitle:
142+
href:
143+
code:
144+
thumbnail:
145+
- title: Tom
146+
subtitle:
147+
href:
148+
code:
149+
thumbnail:

pages/examples/des_rap_book.png

859 KB
Loading

pages/examples/hsma.png

1.69 MB
Loading
786 KB
Loading

pages/examples/masiello.png

1 MB
Loading

pages/examples/stars.png

937 KB
Loading

pages/gallery.ejs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!-- This EJS file is adapted quarto-dev/quarto-web.
2+
With thanks to the quarto-web contributors for sharing it under an open license.
3+
URL: https://github.com/quarto-dev/quarto-web/blob/main/docs/gallery/gallery.ejs
4+
-->
5+
6+
```{=html}
7+
8+
<% for (const item of items) { %>
9+
10+
<h2><%- item.category %></h2>
11+
12+
<p><%- item.description %></p>
13+
14+
<div class="list grid" style="column-gap: 10px;">
15+
16+
<% for (const tile of item.tiles) { %>
17+
<div class="card border-2 rounded-3 g-col-12 g-col-sm-6 g-col-md-4 mb-2" <%= metadataAttrs(tile) %>>
18+
<div class="card-header py-1 px-2 border-bottom border-1 bg-light">
19+
<small class="card-text inline-block">
20+
<a href="<%- tile.href %>" class="listing-title"><%= tile.title %></a>
21+
<% if (tile.code) { %>
22+
<a href="<%- tile.code %>" title="View source code"
23+
class="source-code card-text float-end inline-block">
24+
<i class="bi bi-github"></i>
25+
</a>
26+
<% } %>
27+
</small>
28+
</div>
29+
<a href="<%- tile.href %>">
30+
<img src="<%- tile.thumbnail %>" alt="<%- tile.description %>" class="card-img-top"/>
31+
</a>
32+
33+
<small>
34+
<div class="card-body py-2">
35+
<span class="text-muted listing-subtitle d-block"><%= tile.subtitle %></span>
36+
</div>
37+
</small>
38+
39+
</div>
40+
<% } %>
41+
42+
</div>
43+
44+
<% } %>
45+
46+
```

0 commit comments

Comments
 (0)