summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.gitignore1
-rw-r--r--src/header-text.svg28
-rw-r--r--src/index.md14
m---------src/logos0
-rw-r--r--src/safety/.gitignore1
-rw-r--r--src/safety/index.md23
-rwxr-xr-xsrc/safety/reports47
-rw-r--r--src/style.scss86
-rw-r--r--src/trophies.jpgbin0 -> 34759 bytes
9 files changed, 200 insertions, 0 deletions
diff --git a/src/.gitignore b/src/.gitignore
new file mode 100644
index 0000000..c037bd6
--- /dev/null
+++ b/src/.gitignore
@@ -0,0 +1 @@
+/releases/ \ No newline at end of file
diff --git a/src/header-text.svg b/src/header-text.svg
new file mode 100644
index 0000000..47b21a0
--- /dev/null
+++ b/src/header-text.svg
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
+ width="245.16283"
+ height="89.061935"
+ viewBox="0 0 245.16283 89.061935">
+ <text
+ style="font-size:97.46086884px;font-family:'Eras Bold ITC';fill:#000000;stroke:none"
+ id="text4272"
+ x="-3.6167119"
+ y="66.195343">
+ <tspan
+ id="tspan10"
+ y="66.195343"
+ x="-3.6167119 59.830311 123.27733 186.72438"
+ style="fill:#000000">4272</tspan>
+ </text>
+ <text
+ style="font-size:16.36325073px;font-family:'Orator Std';fill:#000000;stroke:none"
+ id="textMBR"
+ x="5.1302819"
+ y="88.849213">
+ <tspan
+ id="tspan13"
+ y="88.849213"
+ x="5.1302819 14.94823 24.766176 34.584126 44.402088 54.22002 64.037979 73.855942 83.673874 93.491837 103.30977 113.12773 122.94566 132.76363 142.58159 152.39952 162.21748 172.03545 181.85338 191.67131 201.48927 211.30724 221.12517 230.94313"
+ style="fill:#000000">MAVERICK BOILER ROBOTICS</tspan>
+ </text>
+</svg>
diff --git a/src/index.md b/src/index.md
new file mode 100644
index 0000000..8e9d523
--- /dev/null
+++ b/src/index.md
@@ -0,0 +1,14 @@
+---
+title: "FRC Team 4272: Maverick Boiler Robitics"
+---
+
+Lior make old site go bye-bye. Luke put off making new site all
+summer.
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
+eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
+minim veniam, quis nostrud exercitation ullamco laboris nisi ut
+aliquip ex ea commodo consequat. Duis aute irure dolor in
+reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
+pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
+culpa qui officia deserunt mollit anim id est laborum.
diff --git a/src/logos b/src/logos
new file mode 160000
+Subproject e33bf28ae4ebc0a74e28b37c9535324e391deb1
diff --git a/src/safety/.gitignore b/src/safety/.gitignore
new file mode 100644
index 0000000..63ea916
--- /dev/null
+++ b/src/safety/.gitignore
@@ -0,0 +1 @@
+/*/
diff --git a/src/safety/index.md b/src/safety/index.md
new file mode 100644
index 0000000..15dd619
--- /dev/null
+++ b/src/safety/index.md
@@ -0,0 +1,23 @@
+FRC Team 4272 SafetyApp
+=======================
+
+The app currently supports Android, and running as a Web application.
+iOS support is written, but Apple's App-Store approval takes time.
+
+- [Download for Android](../releases/SafetyApp-latest.apk) — Requires
+ enabling installing apps from unknown sources; since I'm not sucking
+ up to Google to get it in the Play store. To do this, go to Settings
+ → Applications, then check "Unknown Sources"
+- [Web application](./web/) — Should work pretty much anywhere. Taking
+ photos when reporting an injury may or may not work, depending on
+ your browser (verified to work in Firefox on Desktop and Android).
+
+The layout of the Android application will be extra-ugly on old versions
+of Android, but if you have a version of android from the last 3 years,
+you should be in good shape. If you do happen to be locked to an old
+version of Android, you may want to try installing a recent version of
+Firefox Mobile, and using the web app.
+
+Also, the [source code](https://git.team4272.com/2016/safetyapp.git)
+because [Free Software](https://www.gnu.org/philosophy/free-sw) legal
+and ethical reasons.
diff --git a/src/safety/reports b/src/safety/reports
new file mode 100755
index 0000000..e9dd9fa
--- /dev/null
+++ b/src/safety/reports
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+render_redirect() {
+ declare -i i=$1
+ cat <<EOF
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Redirect</title>
+</head>
+<body>
+ <script>
+ window.history.go(-$i);
+ </script>
+</body>
+</html>
+EOF
+}
+
+post() {
+ local dir="$(dirname -- "$0")"
+ file="$(mktemp -- "$dir/reports.d/$(date +%Y-%m-%dT%H:%M:%S)-XXXXXXXXXX")"
+ cat > "$file"
+ printf -- '%s\r\n' \
+ 'Status: 201 Created' \
+ 'Content-Type: text/html; charset=utf-8' \
+ "Location: ${SCRIPT_NAME}/redirect" \
+ ''
+ render_redirect 2
+}
+
+main() {
+ pwd
+ if [[ "$REQUEST_METHOD" == POST ]]; then
+ post
+ elif [[ "$REQUEST_METHOD" == GET ]] && [[ "$PATH_INFO" = */redirect ]]; then
+ render_redirect 2
+ else
+ printf -- '%s\r\n' \
+ 'Status: 403 Forbidden' \
+ ''
+ render_redirect 1
+ fi
+}
+
+main "$@"
diff --git a/src/style.scss b/src/style.scss
new file mode 100644
index 0000000..bfe7fc0
--- /dev/null
+++ b/src/style.scss
@@ -0,0 +1,86 @@
+$maroon: #8a181a;
+$gold: #e5b217;
+
+$main-radius: 1.5em;
+
+body {
+ background-color: #111111;
+}
+
+body > * {
+ box-sizing: border-box;
+ max-width: 8in;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+ padding: $main-radius;
+ overflow: hidden;
+}
+
+body > header {
+ text-align: center;
+ vertical-align: middle;
+ background: $maroon;
+ border-radius: $main-radius $main-radius 0 0 ;
+ padding: 0;
+ padding-top: $main-radius;
+ & > h1 img {
+ height: 89px;
+ }
+ & > nav {
+ /* single-level drop downs */
+ line-height: 1;
+ ul {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+ }
+ li {
+ float: left;
+ }
+ a {
+ display: block;
+ }
+ li ul {
+ position: absolute;
+ display: none;
+ left: auto;
+ }
+ :hover > ul,
+ :focus + ul {
+ display: block;
+ }
+
+ /* pretty */
+ & {
+ height: 3em;
+ background-color: #333333;
+ }
+ li ul, li li {
+ width: 10em;
+ }
+ a {
+ display: block;
+ padding: 1em;
+ color: white;
+ background-color: #333333;
+ text-decoration: none;
+
+ &:hover,
+ &:focus {
+ background-color: $gold;
+ }
+ }
+ }
+}
+
+body > article {
+ background: white;
+}
+
+body > footer {
+ background: #333333;
+ color: #ffffff;
+ vertical-align: top;
+ border-radius: 0 0 $main-radius $main-radius;
+}
diff --git a/src/trophies.jpg b/src/trophies.jpg
new file mode 100644
index 0000000..00001da
--- /dev/null
+++ b/src/trophies.jpg
Binary files differ