From b1377ef182b5b4b600672d4acb512c420d842c33 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Mon, 30 Jun 2014 20:25:05 +0200 Subject: showcase --- app.css | 46 +++++++++++++++++++++++++++++----------------- index.html | 14 +++++++------- 2 files changed, 36 insertions(+), 24 deletions(-) diff --git a/app.css b/app.css index a14e694..5ade0b8 100644 --- a/app.css +++ b/app.css @@ -1,30 +1,42 @@ body { - color: #333; - padding: 14px; - line-height: 22px; - text-align: center; - font-family: helvetica, arial, freesans, clean, sans-serif; - background-image:url('lined_paper.png'); + color: #333; + padding: 14px; + line-height: 22px; + width: 650px; + margin: 0 auto; + font-family: helvetica, arial, freesans, clean, sans-serif; } -span.lastcommit { - font-size: 22px !important; +body > * { + text-align: center; +} + +span.lastcommit-widget { + font-size: 22px !important; + display: flex; + justify-content: center; } a:hover { - color: #00438A; - text-decoration: underline; + color: #00438A; + text-decoration: underline; } + a { - color: #0069D6; - text-decoration: none; + color: #0069D6; + text-decoration: none; } - pre { - color: #404040; - font-family: Monaco, 'Andale Mono', 'Courier New', monospace; - font-size: 12px; - + color: #404040; + font-family: Monospace, 'Andale Mono', 'Courier New'; + font-size: 12px; + text-align: left; + border: 0 !important; +} +iframe { + display: block; + margin: 0 auto; + width: 80px; } diff --git a/index.html b/index.html index 076d216..088e6be 100644 --- a/index.html +++ b/index.html @@ -8,24 +8,24 @@

You are only as good as your last commit

-

An old friend once told me this, so here's mine.

And now you!

-
+    
 <span class="lastcommit-widget" data-user="your github username"></span>
-<script src="widget.js"></script>
+<script src="lastcommit.min.js"></script>
     

The code above will, when included on a webpage show the last commit made by the provided user.

It's not smart enough to filter out commits by others in a repository on the users account.

-

Oh...and it only works for GitHub accounts.

-

Fork it on GitHub.

+

Thank you

-

Johan

+

Victor

- + + -- cgit v1.2.3