Browse Source

Restyle header and incorporate ugallery plugin

- resize gallery images to 550x200px
  - remove padding above logo image
  - add 2px right padding to gallery images
alt_logo
jimi 14 years ago
parent
commit
c4f05840dd
  1. 1
      app/controllers/pages_controller.rb
  2. 7
      app/views/layouts/application.html.haml
  3. 15
      app/views/pages/home.html.haml
  4. BIN
      public/images/left.gif
  5. BIN
      public/images/office.png
  6. BIN
      public/images/play.png
  7. BIN
      public/images/right.gif
  8. BIN
      public/images/sprinter.1.png
  9. BIN
      public/images/sprinter.2.png
  10. BIN
      public/images/sprinter.3.png
  11. BIN
      public/images/sprinter.png
  12. BIN
      public/images/stop.png
  13. BIN
      public/images/vans.png
  14. 1
      public/javascripts/jquery.ugallery-min.js
  15. 10
      public/stylesheets/layout.css
  16. 22
      public/stylesheets/ugallery.css

1
app/controllers/pages_controller.rb

@ -3,5 +3,6 @@ class PagesController < ApplicationController
render :layout => 'soon'
end
def home
@stylesheets = %w{reset grids layout ugallery}
end
end

7
app/views/layouts/application.html.haml

@ -13,7 +13,12 @@
#container
#header
%img.left#badge(src='images/logo.png' alt='Air-one Logo')
%img.right#gallery(src='images/sprinter.png' alt='Gallery')
#gallery.ugallery
%a(href="images/sprinter.1.png")
%a(href="images/vans.png")
%a(href="images/sprinter.2.png")
%a(href="images/office.png")
%a(href="images/sprinter.3.png")
#menu
%ul#nav
%li

15
app/views/pages/home.html.haml

@ -1,5 +1,18 @@
- content_for :head do
%script(src='javascripts/jquery.color.min.js')
%script(src='javascripts/jquery.ugallery-min.js')
%script
:plain
$(document).ready(function() {
$("#gallery").ugallery({
play_btn : "images/play.png",
stop_btn : "images/stop.png",
forward_btn : "images/right.gif",
backward_btn : "images/left.gif",
controls_vpos : 100,
fade_duration : 300,
autostart : true
});
});
#main
:customtextile

BIN
public/images/left.gif

After

Width: 35  |  Height: 45  |  Size: 413 B

BIN
public/images/office.png

After

Width: 550  |  Height: 200  |  Size: 210 KiB

BIN
public/images/play.png

After

Width: 55  |  Height: 55  |  Size: 1.1 KiB

BIN
public/images/right.gif

After

Width: 35  |  Height: 45  |  Size: 407 B

BIN
public/images/sprinter.1.png

After

Width: 550  |  Height: 200  |  Size: 230 KiB

BIN
public/images/sprinter.2.png

After

Width: 550  |  Height: 200  |  Size: 227 KiB

BIN
public/images/sprinter.3.png

After

Width: 550  |  Height: 200  |  Size: 225 KiB

BIN
public/images/sprinter.png

Before

Width: 550  |  Height: 206  |  Size: 223 KiB

BIN
public/images/stop.png

After

Width: 55  |  Height: 55  |  Size: 1021 B

BIN
public/images/vans.png

After

Width: 550  |  Height: 200  |  Size: 224 KiB

1
public/javascripts/jquery.ugallery-min.js
File diff suppressed because it is too large
View File

10
public/stylesheets/layout.css

@ -36,9 +36,6 @@ blockquote p {
#header img {
display: block;
}
#header > #badge {
margin-top: 0.231em;
}
#header ul li {
list-style: none;
}
@ -98,6 +95,13 @@ blockquote p {
display: none;
}
#gallery {
width: 42.308em;
height: 15.385em;
float: right;
padding-right: 0.154em;
}
.caps {
font-size: 123%;
font-variant: small-caps;

22
public/stylesheets/ugallery.css

@ -0,0 +1,22 @@
div.ugallery {
position: relative;
}
div.ugallery img.aniview {
z-index: 1;
}
div.ugallery div.collection {
display: none;
}
div.ugallery div.thumbs div.thumb_panel {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
div.ugallery div.thumbs div.thumb_panel img {
position: absolute;
cursor: pointer;
z-index: 2;
}