Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #848 from unimelb/chore-banner-images
Browse files Browse the repository at this point in the history
Provide banner images by major version
  • Loading branch information
axelboc authored Apr 4, 2017
2 parents 3fb83f8 + f5c0983 commit 5febf27
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class App < Roda # rubocop:disable Metrics/ClassLength
plugin :render, engine: 'slim'

opts[:version] = ENV['VERSION']
opts[:major_version] = /^v[0-9]+/.match(ENV['VERSION'])[0]
opts[:cdnurl] = ENV['CDNURL']

opts[:components_path] = File.join(
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion public/assets/lib/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@
background-attachment: fixed;
-webkit-background-clip: text;
background-clip: text;
background-image: url(/assets/versions/v6.0.jpg);

color: rgba(0,0,0,0);
font-size: 120px;
Expand Down
5 changes: 3 additions & 2 deletions views/homepage.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.floating

div role="main"
.contrast-helper.fixed-bg style="background-image:url(/assets/versions/#{opts[:version]}.jpg)"
.contrast-helper.fixed-bg style="background-image:url(/assets/banners/#{opts[:major_version]}.jpg)"
header.banner
.mid-align
h1.white Web.unimelb
Expand All @@ -17,7 +17,8 @@ div role="main"

hr.spacer
section
h1.complimentary==opts[:version]
h1.complimentary style="background-image:url(/assets/banners/#{opts[:major_version]}.jpg)"
= opts[:version]
p.center
a.button-hero href="/getting-started" Set up a new site with #{opts[:version]}

Expand Down

0 comments on commit 5febf27

Please sign in to comment.