Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial pass at libgit2 page

  • Loading branch information...
commit 85125948a6d046a699cc1eb904da648638fc0487 1 parent 28ce239
@blackant blackant authored
Showing with 368 additions and 0 deletions.
  1. +221 −0 app/assets/stylesheets/libgit2.css.scss
  2. +6 −0 app/controllers/libgit2_controller.rb
  3. +17 −0 app/views/layouts/libgit2.html.haml
  4. +118 −0 app/views/libgit2/index.html.haml
  5. +6 −0 config/routes.rb
  6. BIN  public/images/libgit2/icon-book.png
  7. BIN  public/images/libgit2/icon-c89.png
  8. BIN  public/images/libgit2/icon-cross-platform.png
  9. BIN  public/images/libgit2/icon-native-windows-support.png
  10. BIN  public/images/libgit2/icon-permissive-licensing.png
  11. BIN  public/images/libgit2/icon-production.png
  12. BIN  public/images/libgit2/icon-zero-dependencies.png
  13. BIN  public/images/libgit2/logo-apple.png
  14. BIN  public/images/libgit2/logo-chicken-scheme.png
  15. BIN  public/images/libgit2/logo-delphi.png
  16. BIN  public/images/libgit2/logo-erlang.png
  17. BIN  public/images/libgit2/logo-gnome.png
  18. BIN  public/images/libgit2/logo-go.png
  19. BIN  public/images/libgit2/logo-lua.png
  20. BIN  public/images/libgit2/logo-net-mono.png
  21. BIN  public/images/libgit2/logo-nodejs.png
  22. BIN  public/images/libgit2/logo-parrot-vm.png
  23. BIN  public/images/libgit2/logo-php.png
  24. BIN  public/images/libgit2/logo-python.png
  25. BIN  public/images/libgit2/logo-qt.png
  26. BIN  public/images/libgit2/logo-ruby.png
  27. BIN  public/images/libgit2/logo.png
  28. BIN  public/images/libgit2/net-mono.png
View
221 app/assets/stylesheets/libgit2.css.scss
@@ -0,0 +1,221 @@
+@import "compass";
+@include global-reset;
+
+@import "variables.css.scss";
+@import "layout.css.scss";
+@import "typography.css.scss";
+
+body {
+ font-size: $base-font-size;
+ line-height: $base-line-height;
+ font-family: $base-font-family;
+ color: $font-color;
+ background: #f0efe7 url(/images/bg/body.jpg);
+}
+
+// windows chrome makes a mess of Adelle web font
+.windows.chrome body *,
+.windows.ie8 body * {
+ font-family: $base-font-family-fallback ! important;
+}
+
+#wrapper {
+ @include clearfix;
+ margin: 0 auto;
+ width: 940px;
+}
+
+header {
+ margin-top: 20px;
+ position: relative;
+
+ a.button {
+ display: block;
+ margin-top: 10px;
+ border-top: solid 1px #085e64;
+ border-left: solid 1px #1f6367;
+ border-right: solid 1px #1f6367;
+ border-bottom: solid 1px #134143;
+ color: #fff;
+ font-size: 16px;
+ width: 238px;
+ padding: 16px 0 6px 55px;
+ position: absolute;
+ right: 0;
+ top: 0;
+ @include border-radius(2px);
+ @include background-image(linear-gradient(#1c868c, #186368));
+ @include box-shadow(0 1px 2px #999);
+ @include transition-property(background-image);
+ @include transition-duration(.30s);
+ &:hover {
+ @include background-image(linear-gradient(darken(#1c868c, 2%), darken(#186368, 2%)));
+ }
+ img {
+ position: absolute;
+ top: 8px;
+ left: 20px;
+ }
+ h3 {
+ color: #fff;
+ font-size: 18px;
+ line-height: 1;
+ margin-bottom: 6px;
+ @include text-shadow(0 -1px 0 #1b001a);
+ }
+ }
+}
+
+#main {
+ float: left;
+ width: 600px;
+ background-color: transparent;
+ border: none;
+ @include border-radius(0);
+ padding: 0;
+}
+
+#sidebar {
+ border-left: dotted 1px #bdbdb6;
+ float: right;
+ padding-left: 20px;
+ width: 300px;
+}
+
+p {
+ font-size: 18px;
+ color: lighten(#4e443c, 10%);
+ margin-bottom: 30px;
+}
+
+#intro p {
+ line-height: 1.4;
+}
+
+#features {
+ @include clearfix;
+ margin-bottom: 20px;
+ ul {
+ @extend .unstyled;
+ padding-top: 16px;
+ li {
+ display: block;
+ width: 190px;
+ float: left;
+ margin-bottom: 20px;
+ &#nav-about, &#nav-downloads {
+ margin-right: 30px;
+ }
+ &#nav-about, &#nav-documentation {
+ margin-bottom: 40px;
+ }
+ height: 86px;
+ display: block;
+ color: $font-color;
+ padding-left: 90px;
+ background-position: 0 0;
+ background-repeat: no-repeat;
+ @include transition-property(color);
+ @include transition-duration(.30s);
+ img {
+ height: 74px;
+ width: 74px;
+ margin-left: -90px;
+ margin-right: -90px;
+ float: left;
+ opacity: 0.9;
+ @include transition-property(opacity);
+ @include transition-duration(.30s);
+ }
+ h3 {
+ font-size: 18px;
+ font-weight: bold;
+ color: $orange;
+ line-height: 1.1;
+ margin-bottom: 4px;
+ }
+ p {
+ font-size: 13px;
+ line-height: $base-line-height * 0.8;
+ }
+ &:nth-child(even) {
+ margin-left: 24px;
+ }
+ }
+ }
+}
+
+ul#primary-languages {
+ @include clearfix;
+ @extend .unstyled;
+ margin-bottom: 30px;
+ li {
+ display: block;
+ float: left;
+ text-align: center;
+ img {
+ display: block;
+ margin: 0 auto 10px auto;
+ }
+ h5 {
+ font-weight: bold;
+ font-size: 15px;
+ line-height: 1.2;
+ }
+ h6 {
+ text-transform: none;
+ font-size: 13px;
+ line-height: 1;
+ }
+ &#rugged img {
+ margin-top: 11px;
+ }
+ &#libgit2sharp img {
+ margin-top: 12px;
+ }
+ }
+ li + li {
+ padding-left: 29px;
+ }
+}
+
+ul.additional-languages {
+ @include clearfix;
+ @extend .unstyled;
+ float: left;
+ width: 150px;
+ &:first-child(1) {
+ width: 125px;
+ padding-right: 20px;
+ }
+ li {
+ @include clearfix;
+ display: block;
+ padding-left: 40px;
+ padding-bottom: 18px;
+ img {
+ width: 30px;
+ height: 30px;
+ display: block;
+ margin-left: -40px;
+ margin-right: -40px;
+ float: left;
+ }
+ h5 {
+ font-weight: bold;
+ font-size: 15px;
+ line-height: 1.2;
+ }
+ h6 {
+ text-transform: none;
+ font-size: 12px;
+ line-height: 1;
+ }
+ &#rugged img {
+ margin-top: 11px;
+ }
+ &#libgit2sharp img {
+ margin-top: 12px;
+ }
+ }
+}
View
6 app/controllers/libgit2_controller.rb
@@ -0,0 +1,6 @@
+class Libgit2Controller < ApplicationController
+ layout "libgit2"
+
+ def index
+ end
+end
View
17 app/views/layouts/libgit2.html.haml
@@ -0,0 +1,17 @@
+!!! 5
+%html{:lang => "en"}
+ %head
+ %title libgit2
+ %meta{:charset => "utf-8"}
+ %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
+ = stylesheet_link_tag "libgit2.css"
+ /[if (gte IE 6)&(lte IE 8)]
+ %script{:src => "/javascripts/selectivizr-min.js", :type => "text/javascript"}
+ = javascript_include_tag "http://use.typekit.com/jsq2fql.js"
+ :javascript
+ try{Typekit.load();}catch(e){}
+
+ %body
+ %div#wrapper
+ =yield
+ = partial 'shared/footer'
View
118 app/views/libgit2/index.html.haml
@@ -0,0 +1,118 @@
+%header
+ <a href="/"><img src="/images/libgit2/logo.png" width="269" height="66" alt="libgit2" /></a>
+
+ <a href="http://libgit2.github.com/api.html" class="button">
+ <img src="/images/libgit2/icon-book.png" width="21" height="30" />
+ <h3>libgit2 Usage Guide</h3>
+ </a>
+
+%div#main
+ %section#intro
+ %p
+ libgit2 is a <strong>portable</strong>, <strong>pure C implementation</strong> of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language which supports C bindings.
+
+ %section#features
+ %ul
+ %li#cross-platform
+ <img src="/images/libgit2/icon-cross-platform.png" />
+ <h3>100% Cross-Platform</h3>
+ <p>A very short sentence or two. A very short sentence or two.</p>
+ %li#zero-dependencies
+ <img src="/images/libgit2/icon-zero-dependencies.png" />
+ <h3>Zero Dependencies</h3>
+ <p>A very short sentence or two. A very short sentence or two.</p>
+ %li#production
+ <img src="/images/libgit2/icon-production.png" />
+ <h3>Used in Production</h3>
+ <p>Trusted by <strong>GitHub</strong>, <strong>Foo</strong>, and <strong>Bar</strong>.
+ %li#c89
+ <img src="/images/libgit2/icon-c89.png" />
+ <h3>C89</h3>
+ <p>A very short sentence or two. A very short sentence or two.</p>
+ %li#native-windows-support
+ <img src="/images/libgit2/icon-native-windows-support.png" />
+ <h3>Native Windows Support</h3>
+ <p>A very short sentence or two. A very short sentence or two.</p>
+ %li#permissive-licensiing
+ <img src="/images/libgit2/icon-permissive-licensing.png" />
+ <h3>Permissive Licensing</h3>
+ <p>A very short sentence or two. A very short sentence or two.</p>
+
+%aside#sidebar
+ %h5 Language Bindings
+
+ %ul#primary-languages
+ %li#rugged
+ <img src="/images/libgit2/logo-ruby.png" width="40" height="40" />
+ %h6 Ruby
+ %h5
+ <a href="https://github.com/libgit2/rugged">Rugged</a>
+ %li#libgit2sharp
+ <img src="/images/libgit2/logo-net-mono.png" width="94" height="39" />
+ %h6 .Net &amp; Mono
+ %h5
+ <a href="https://github.com/libgit2/libgit2sharp">LibGit2Sharp</a>
+ %li#objective-c
+ <img src="/images/libgit2/logo-apple.png" width="46" height="51" />
+ %h6 Objective-C
+ %h5
+ <a href="https://github.com/libgit2/objective-git">objective-git</a>
+
+ %ul.additional-languages
+ %li
+ <img src="/images/libgit2/logo-python.png" />
+ %h6 Python
+ %h5
+ <a href="https://github.com/libgit2/pygit2">pygit2</a>
+ %li
+ <img src="/images/libgit2/logo-php.png" />
+ %h6 PHP
+ %h5
+ <a href="https://github.com/libgit2/php-git">php-git</a>
+ %li
+ <img src="/images/libgit2/logo-nodejs.png" />
+ %h6 Node.js
+ %h5
+ <a href="https://github.com/libgit2/node-gitteh">node-gitteh</a>
+ %li
+ <img src="/images/libgit2/logo-go.png" />
+ %h6 Go
+ %h5
+ <a href="https://github.com/str1ngs/go-git">go-git</a>
+ %li
+ <img src="/images/libgit2/logo-erlang.png" />
+ %h6 Erlang
+ %h5
+ <a href="https://github.com/schacon/geef">Geef</a>
+ %li
+ <img src="/images/libgit2/logo-gnome.png" />
+ %h6 GObject
+ %h5
+ <a href="http://git.gnome.org/browse/libgit2-glib">libgit2-glib</a>
+
+ %ul.additional-languages
+ %li
+ <img src="/images/libgit2/logo-lua.png" />
+ %h6 Lua
+ %h5
+ <a href="https://github.com/libgit2/luagit2">luagit2</a>
+ %li
+ <img src="/images/libgit2/logo-delphi.png" />
+ %h6 Delphi
+ %h5
+ <a href="https://github.com/libgit2/GitForDelphi">GitForDelphi</a>
+ %li
+ <img src="/images/libgit2/logo-qt.png" />
+ %h6 C++ Qt
+ %h5
+ <a href="https://projects.kde.org/projects/playground/libs/libqgit2/">libqgit2</a>
+ %li
+ <img src="/images/libgit2/logo-parrot-vm.png" />
+ %h6 Parrot VM
+ %h5
+ <a href="https://github.com/letolabs/parrot-libgit2">parrot-libgit2</a>
+ %li
+ <img src="/images/libgit2/logo-chicken-scheme.png" />
+ %h6 Chicken Scheme
+ %h5
+ <a href="https://wiki.call-cc.org/egg/git">chicken-git</a>
View
6 config/routes.rb
@@ -13,6 +13,10 @@
match '*path' => 'site#redirect_combook'
end
+ constraints(:host => 'libgit2.github.com') do
+ root :to => 'libgit2#index'
+ end
+
get "site/index"
match "/doc" => "doc#index"
@@ -72,6 +76,8 @@
match "/documentation/videos" => "doc#videos"
match "/documentation/external-links" => "doc#ext"
+ match "/libgit2" => "libgit2#index"
+
match "/course/svn" => "site#svn"
match "/sfc" => "site#sfc"
View
BIN  public/images/libgit2/icon-book.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/icon-c89.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/icon-cross-platform.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/icon-native-windows-support.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/icon-permissive-licensing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/icon-production.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/icon-zero-dependencies.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-apple.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-chicken-scheme.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-delphi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-erlang.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-gnome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-go.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-lua.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-net-mono.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-nodejs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-parrot-vm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-php.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-python.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-qt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo-ruby.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/libgit2/net-mono.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.