diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | bin/pagerender | 2 | ||||
-rw-r--r-- | lib/footer.md | 49 | ||||
-rw-r--r-- | lib/template.erb | 13 | ||||
-rw-r--r-- | src/style.scss | 14 |
5 files changed, 66 insertions, 14 deletions
@@ -28,7 +28,7 @@ all: $(html.out) all: out/style.css all: out/header-path.svg -pagerender.deps = bin/pagerender lib/pandoc.rb lib/template.erb +pagerender.deps = bin/pagerender lib/pandoc.rb lib/template.erb lib/footer.md out/%: src/%.m4 mkdir -p -- $(@D) diff --git a/bin/pagerender b/bin/pagerender index a4ce6a1..b7d3730 100755 --- a/bin/pagerender +++ b/bin/pagerender @@ -39,6 +39,8 @@ else abort end +@footer = Pandoc::load('markdown', File.read('lib/footer.md')).to('html5') + erb = ERB.new(File.read(template)); erb.filename = template erb.run() diff --git a/lib/footer.md b/lib/footer.md new file mode 100644 index 0000000..dc739ed --- /dev/null +++ b/lib/footer.md @@ -0,0 +1,49 @@ +<div> + +### [Sponsors](/sponsors.html) + +Platinum tier + +- [Caterpillar](http://www.cat.com/en_US.html) +- [Purdue FIRST Programs](http://www.purduefirst.org/) + +Gold Tier + +- [Schilli](http://schilli.com/) +- [Southwire](http://www.southwire.com/) +- E4 Performance +- [Indiana Space Grant Consortium (INSGC)](https://engineering.purdue.edu/INSGC) + +</div> + +<div> + +### [Sponsors (cont.)](/sponsors.html) + +Silver tier + +- [Wabash National](http://www.wabashnational.com/) +- [TBIRD](http://tbirddesign.com/) +- [Cotton Threads Shirt Company](https://www.etsy.com/shop/CottonThreadsShirtCO) +- [Lafayette Quality Products Inc.](http://www.lqp-mfg.com/) +- [The Kelly Group](http://www.thekelly-group.com/) +- [Small Parts, Inc.](http://www.smallpartsinc.com/) +- [Ivy Tech](https://www.ivytech.edu/) +- [Matrix Technologies Incorporated](http://matrixti.com/) + +Bronze tier + +- [see all sponsors...](/sponsors.html) + +</div> + +<div> + +### About + +- FRC team 4272 is based out of + [McCutcheon High School](http://mhs.tsc.k12.in.us/) in Lafayette, + IN. +- [Website Source Code](https://git.team4272.com/www.git) + +</div> diff --git a/lib/template.erb b/lib/template.erb index 61d605d..9ae8d5d 100644 --- a/lib/template.erb +++ b/lib/template.erb @@ -42,18 +42,7 @@ <%= @body %> </article> <footer> - <div> - <h3>Sponsors</h3> - <ul> - <li><a href="http://mhs.tsc.k12.in.us/">McCutcheon High School</a></li> - <li><a href="http://www.purduefirst.org/">Purdue FIRST Program</a></li> - <li><a href="http://cfglaf.org/">Community Foundation of greater Lafayette</a></li> - </ul> - </div> - <div> - <h3>About</h3> - <a href="https://git.team4272.com/www.git">Website Source Code</a> - </div> + <%= @footer %> </footer> </body> </html> diff --git a/src/style.scss b/src/style.scss index 9861fb0..0d9bff2 100644 --- a/src/style.scss +++ b/src/style.scss @@ -94,13 +94,25 @@ body > footer { div { float: left; margin: 0 0.5em; + max-width: 33%; } h3 { font-size: 1.1em; border-bottom: solid 1px #555555; } + p { + margin-bottom: 0; + } ul { - list-style: none; padding: 0; + margin: 0; + list-style: none; + li { + padding-left: 1em; + &::before { + margin-left: -1em; + content: "- "; + } + } } } |