Permalink
Browse files

initial pass at libgit2 page

  • Loading branch information...
blackant committed Jul 9, 2012
1 parent 28ce239 commit 85125948a6d046a699cc1eb904da648638fc0487
@@ -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;
+ }
+ }
+}
@@ -0,0 +1,6 @@
+class Libgit2Controller < ApplicationController
+ layout "libgit2"
+
+ def index
+ end
+end
@@ -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'
@@ -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
@@ -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"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 8512594

Please sign in to comment.