Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inclusion of data hazards image creation app #101

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

all: html
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
html:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

clean:
rm -rf _build/html

fresh:
make clean
make html
47 changes: 32 additions & 15 deletions site/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,30 +1,47 @@

/* Timeline CSS adapted from Chris Holdgraf's blog: https://github.com/choldgraf/choldgraf.github.io/ */
div.timeline div.card {
border: 0px;
border: 0px;
}

div.timeline div.left {
border-right: 1px solid black;
border-right: 1px solid black;
}

div.timeline div.entry::after {
width: 1em;
height: 1em;
background: white;
border-radius: 50%;
content: "";
top: 1em;
display: block;
position: absolute;
border: 1px black solid;
z-index: 999;
width: 1em;
height: 1em;
background: white;
border-radius: 50%;
content: "";
top: 1em;
display: block;
position: absolute;
border: 1px black solid;
z-index: 999;
}

div.timeline div.entry.left::after {
right: -.5em;
right: -0.5em;
}

div.timeline div.entry.right::after {
left: -.5em;
left: -0.5em;
}

.app-container {
display: flex;
height: 900px;
width: 150%;
justify-content: left;
align-items: flex-start;
overflow: hidden !important;
}

.col-xl-7 {
max-width: 60% !important;
max-height: 100% !important;
}

.col-xl-2 {
max-width: max-content !important;
}
9 changes: 9 additions & 0 deletions site/contents/hazards-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Hazards App

Some text for hazards app

```{raw} html
<div class="app-container">
<object type="text/html" data="https://gareth-j.github.io/data-hazards-app/" width="100%" height="100%"></object>
</div>
```
1 change: 1 addition & 0 deletions site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@ contents/upcoming-events
contents/materials
contents/sign-up
contents/contact
contents/hazards-app
```