Initial commit of jimeh.me v4.0

This commit is contained in:
2015-10-15 21:29:39 +01:00
commit 7fcf153023
17 changed files with 574 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
_site
.sass-cache
.jekyll-metadata

3
Gemfile Normal file
View File

@@ -0,0 +1,3 @@
source :rubygems
gem 'github-pages'

131
Gemfile.lock Normal file
View File

@@ -0,0 +1,131 @@
GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.9)
activesupport (4.2.3)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
blankslate (2.1.2.4)
celluloid (0.16.0)
timers (~> 4.0.0)
classifier-reborn (2.0.3)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.5.2)
fast-stemmer (1.0.2)
ffi (1.9.10)
gemoji (2.1.0)
github-pages (38)
RedCloth (= 4.2.9)
github-pages-health-check (~> 0.2)
jekyll (= 2.4.0)
jekyll-coffeescript (= 1.0.1)
jekyll-feed (= 0.3.0)
jekyll-mentions (= 0.2.1)
jekyll-redirect-from (= 0.8.0)
jekyll-sass-converter (= 1.2.0)
jekyll-sitemap (= 0.8.1)
jemoji (= 0.4.0)
kramdown (= 1.5.0)
liquid (= 2.6.2)
maruku (= 0.7.0)
mercenary (~> 0.3)
pygments.rb (= 0.6.3)
rdiscount (= 2.1.7)
redcarpet (= 3.3.1)
terminal-table (~> 1.4)
github-pages-health-check (0.3.1)
net-dns (~> 0.6)
public_suffix (~> 1.4)
hitimes (1.2.2)
html-pipeline (1.9.0)
activesupport (>= 2)
nokogiri (~> 1.4)
i18n (0.7.0)
jekyll (2.4.0)
classifier-reborn (~> 2.0)
colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 2.6.1)
mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-feed (0.3.0)
jekyll-gist (1.2.1)
jekyll-mentions (0.2.1)
html-pipeline (~> 1.9.0)
jekyll (~> 2.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.8.0)
jekyll (>= 2.0)
jekyll-sass-converter (1.2.0)
sass (~> 3.2)
jekyll-sitemap (0.8.1)
jekyll-watch (1.2.1)
listen (~> 2.7)
jemoji (0.4.0)
gemoji (~> 2.0)
html-pipeline (~> 1.9)
jekyll (~> 2.0)
json (1.8.3)
kramdown (1.5.0)
liquid (2.6.2)
listen (2.10.1)
celluloid (~> 0.16.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
maruku (0.7.0)
mercenary (0.3.5)
mini_portile (0.6.2)
minitest (5.7.0)
net-dns (0.8.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.11)
public_suffix (1.5.1)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.5)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
rdiscount (2.1.7)
redcarpet (3.3.1)
safe_yaml (1.0.4)
sass (3.4.16)
terminal-table (1.5.2)
thread_safe (0.3.5)
timers (4.0.1)
hitimes
toml (0.1.2)
parslet (~> 1.5.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
yajl-ruby (1.2.1)
PLATFORMS
ruby
DEPENDENCIES
github-pages
BUNDLED WITH
1.10.5

5
Makefile Normal file
View File

@@ -0,0 +1,5 @@
serve:
bundle exec jekyll serve
.SILENT:
.PHONY:

1
README.md Normal file
View File

@@ -0,0 +1 @@
# [jimeh.me](http://jimeh.me/)

20
_config.yml Normal file
View File

@@ -0,0 +1,20 @@
# Site settings
title: Jim Myhrberg (jimeh)
name: Jim Myhrberg
nickname: jimeh
email: pbagnpg\100wvzru\056zr
description: Crazy-Ass Software Engineering Mercenary
baseurl: "" # the subpath of your site, e.g. /blog/
hostname: jimeh.me # used to determine if google analytics should be triggered
url: http://jimeh.me # the base hostname & protocol for your site
permalink: /:title/
cv_url: http://assets.jimeh.me/jim-myhrberg-resume.pdf
twitter_username: jimeh
github_username: jimeh
linkedin_username: jimeh
facebook_username: jimeh
flickr_username: jimeh
lastfm_username: jimeh
# Build settings
markdown: kramdown

10
_includes/ga.html Normal file
View File

@@ -0,0 +1,10 @@
<script>
if (window.location.hostname == "{{ site.hostname }}") {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-354018-11', 'auto');
ga('send', 'pageview');
}
</script>

14
_includes/head.html Normal file
View File

@@ -0,0 +1,14 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300|Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
</head>

8
_layouts/default.html Normal file
View File

@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{{ content }}
{% include ga.html %}
</body>
</html>

176
_sass/_base.scss Normal file
View File

@@ -0,0 +1,176 @@
/**
* Reset some basic elements
*/
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
margin: 0;
padding: 0;
}
/**
* Basic styling
*/
html {
height: 100%;
}
body {
height: 100%;
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
font-weight: 400;
color: $text-color;
background-color: $background-color;
-webkit-text-size-adjust: 100%;
}
/**
* Set `margin-bottom` to maintain vertical rhythm
*/
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
%vertical-rhythm {
margin-bottom: $spacing-unit / 2;
}
/**
* Images
*/
img {
max-width: 100%;
vertical-align: middle;
}
/**
* Figures
*/
figure > img {
display: block;
}
figcaption {
font-size: $small-font-size;
}
/**
* Lists
*/
ul, ol {
margin-left: $spacing-unit;
}
li {
> ul,
> ol {
margin-bottom: 0;
}
}
/**
* Headings
*/
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
}
/**
* Links
*/
a {
color: $brand-color;
text-decoration: none;
&:visited {
color: $brand-color-dark;
}
&:hover {
color: $grey-color-dark;
text-decoration: underline;
}
}
/**
* Blockquotes
*/
blockquote {
color: $grey-color;
border-left: 4px solid $grey-color-light;
padding-left: $spacing-unit / 2;
font-size: 18px;
letter-spacing: -1px;
font-style: italic;
> :last-child {
margin-bottom: 0;
}
}
/**
* Code formatting
*/
pre,
code {
font-size: 15px;
border: 1px solid $grey-color-light;
border-radius: 3px;
background-color: #eef;
}
code {
padding: 1px 5px;
}
pre {
padding: 8px 12px;
overflow-x: scroll;
> code {
border: 0;
padding-right: 0;
padding-left: 0;
}
}
/**
* Clearfix
*/
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
/**
* Icons
*/
.icon {
> svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
path {
fill: $grey-color;
}
}
}

91
_sass/_layout.scss Normal file
View File

@@ -0,0 +1,91 @@
.site-header {
font-family: $heading-font-family;
font-weight: bold;
position: fixed;
top: 0px;
bottom: 0px;
width: 100%;
a:hover {
text-decoration: none;
}
.content {
height: 128px;
width: 595px;
position: absolute;
top: 50%;
left: 50%;
@include transform(translate(-50%, -50%));
}
}
.site-avatar {
width: 128px;
height: 128px;
margin-bottom: 4px;
border: 2px solid white;
position: absolute;
top: 0;
left: 0;
@include border-radius(400px);
@include box-shadow(0px, 0px, 7px, rgba(0, 0, 0, 0.3));
}
.header-content {
display: block;
color: $name-color;
font-size: 47px;
line-height: 40px;
margin-bottom: 5px;
position: absolute;
top: 30px;
left: 160px;
.site-name {
text-transform: uppercase;
}
.site-nickname {
color: $nickname-color;
text-transform: lowercase;
}
}
.site-description {
font-size: 14px;
margin-bottom: 8px;
color: $sub-title-color;
text-transform: uppercase;
position: absolute;
top: 28px;
left: 11px;
}
.site-links {
position: absolute;
top: 52px;
left: 7px;
font-size: 22px;
a {
color: $link-color;
position: relative;
padding: 0px 5px;
.link-text {
visibility: hidden;
font-size: $base-font-size;
position: absolute;
top: 20px;
left: 50%;
@include transform(translate(-50%, 0%));
}
&:hover {
color: $link-hover-color;
.link-text {
visibility: visible;
}
}
}
}

70
_sass/_setup.scss Normal file
View File

@@ -0,0 +1,70 @@
@charset "utf-8";
// Our variables
$base-font-family: 'Open Sans', Helvetica, Arial, sans-serif;
$base-font-size: 14px;
$heading-font-family: 'Open Sans Condensed', Helvetica, Arial, sans-serif;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;
$spacing-unit: 30px;
$text-color: #1a1a1a;
$name-color: lighten($text-color, 15.5%);
$nickname-color: lighten($text-color, 75%);
$sub-title-color: lighten($text-color, 55%);
$link-color: lighten($text-color, 65%);
$link-hover-color: lighten($text-color, 55%);
$background-color: #fdfdfd;
$brand-color: #1193f6;
$brand-color-dark: darken($brand-color, 10%);
$grey-color: #828282;
$grey-color-light: lighten($grey-color, 40%);
$grey-color-dark: darken($grey-color, 25%);
$on-palm: 768px;
$on-laptop: 800px;
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
@mixin transform($transforms) {
-moz-transform: $transforms;
-o-transform: $transforms;
-ms-transform: $transforms;
-webkit-transform: $transforms;
transform: $transforms;
}
@mixin transition($transforms) {
-moz-transition: $transforms;
-o-transition: $transforms;
-ms-transition: $transforms;
-webkit-transition: $transforms;
transition: $transforms;
}
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}
}

BIN
apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

10
css/main.scss Executable file
View File

@@ -0,0 +1,10 @@
---
# Only the main Sass file needs front matter (the dashes are enough)
---
// Import partials from `sass_dir` (defaults to `_sass`)
@import
"setup",
"base",
"layout"
;

BIN
favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
img/jimeh-4.0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

32
index.html Normal file
View File

@@ -0,0 +1,32 @@
---
layout: default
---
<header class="site-header">
<div class="content">
<img class="site-avatar" src="{{ "/img/jimeh-4.0.jpg" | prepend: site.baseurl }}">
<span class="header-content">
<span class="site-name">{{ site.name }}</span>
<span class="site-nickname">({{ site.nickname }})</span>
<p class="site-description">{{ site.description }}</p>
<div class="site-links">
<script type="text/javascript">
document.write("<n uers=\"znvygb:{{ site.email }}\"><v pynff=\"sn sn-rairybcr\"><\057v><fcna pynff=\"yvax-grkg\">pbagnpg\100wvzru\056zr<\057fcna><\057n>".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));
</script><a href="https://twitter.com/{{ site.twitter_username }}">
<i class="fa fa-twitter"></i><span class="link-text">twitter</span>
</a><a href="https://github.com/{{ site.github_username }}">
<i class="fa fa-github"></i><span class="link-text">github</span>
</a><a href="http://www.linkedin.com/in/{{ site.linkedin_username }}">
<i class="fa fa-linkedin"></i><span class="link-text">linkedin</span>
</a><a href="https://facebook.com/{{ site.facebook_username }}">
<i class="fa fa-facebook-square"></i><span class="link-text">facebook</span>
</a><a href="https://last.fm/user/{{ site.lastfm_username }}">
<i class="fa fa-lastfm"></i><span class="link-text">last.fm</span>
</a><a href="https://flickr.com/photos/{{ site.flickr_username }}/">
<i class="fa fa-flickr"></i><span class="link-text">flickr</span>
</a><a href="{{ site.cv_url }}">
<i class="fa fa-file-text-o"></i><span class="link-text">cv</span>
</a>
</div>
</span>
</div>
</header>