8000 Add links to stickers and t-shirts · pry/pry.github.io@3f154ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f154ce

Browse files
committed
Add links to stickers and t-shirts
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
1 parent 4c3d340 commit 3f154ce

File tree

8 files changed

+106
-14
lines changed

8 files changed

+106
-14
lines changed

_includes/devswag.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<div id="devswag">
2+
<a href="http://www.devswag.com/collections/tshirt/products/copy-of-classic-jquery-t-shirt">
3+
<img id="pry_t_shirt" class="tshirt" src="/images/pry_t_shirt.png" width="142" height="185" />
4+
<img id="t_shirt_thumbnail" class="tshirt" src="/images/t_shirt_thumbnail.png" width="142" height="185" />
5+
</a>
6+
7+
<div id="product_links">
8+
<span class="uniform_bg">
9+
<span>
10+
Buy <a href="http://www.devswag.com/collections/tshirt/products/copy-of-classic-jquery-t-shirt">an official Pry t-shirt</a><br />
11+
or <a href="http://www.devswag.com/collections/homepage-bottom/products/pry-stickers-4">a nifty sticker</a>
12+
</span>
13+
</span>
14+
</div>
15+
</div>

_layouts/default.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<meta name="description" content="Pry is a powerful alternative to the standard IRB shell for Ruby." />
88
<link type="text/css" rel="stylesheet" href="/stylesheets/style.css?{{ site.time | date: "%Y%m%d%H%M%S" }}" />
99
<link type="text/css" rel="stylesheet" title="Sunburst" href="http://yandex.st/highlightjs/6.0/styles/sunburst.min.css" />
10+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
11+
<script>
12+
$(document).ready(function($) {
13+
var $devswag = $('#devswag'),
14+
$tshirt = $('#pry_t_shirt');
15+
16+
$devswag.mouseenter(function() { $tshirt.animate({ opacity: 1 }); });
17+
$devswag.mouseleave(function() { $tshirt.animate({ opacity: 0 }); });
18+
});
19+
</script>
1020

1121
<!--[if lt IE 9]>
1222
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>

_scss/_header.scss

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,48 @@ header
33
h1 { display: none }
44
@include container;
55

6+
#devswag
7+
{
8+
position: absolute;
9+
left: 1em;
10+
top: 0;
11+
width: 310px;
12+
z-index: 999;
13+
14+
a img, #product_links
15+
{
16+
float: left;
17+
}
18+
19+
#pry_t_shirt
20+
{
21+
opacity: 0;
22+
position: absolute;
23+
left: 0;
24+
}
25+
26+
#product_links
27+
{
28+
font-size: 85%;
29+
margin: {
30+
top: 22px;
31+
left: -22px;
32+
}
33+
34+
.uniform_bg
35+
{
36+
background: image-url('/images/white_transparent_dot.png') repeat;
37+
position:relative;
38+
outline: #fff solid 0.26em;
39+
-moz-outline-offset:-0.04em;
40+
41+
span {
42+
position:relative;
43+
}
44+
}
45+
}
46+
}
47+
648
#logo
749
{
850
margin-bottom: 2.5em;
@@ -24,7 +66,7 @@ header
2466
text-indent: -9999px;
2567
width: 152px;
2668
}
27-
69+
2870
a {
2971
margin: 6px;
3072
}

images/pry_t_shirt.png

43.7 KB
Loading

images/t_shirt_thumbnail.png

11.1 KB
Loading

images/white_transparent_dot.png

70 Bytes
Loading

index.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
layout: default
44
title: Pry - an IRB alternative and runtime developer console
55
---
6-
6+
77
<header>
8+
{% include devswag.html %}
9+
810
<div class="fork_me ribbon">
911
<a href="http://github.com/pry/pry" rel="external"><img style="position: absolute; top: 0; right: 0; border: 0;" src="/images/clone.png" alt="Fork me on GitHub"></a>
1012
</div>
11-
13+
1214
{% include logo.html %}
1315

1416
<div class="sponsors">
@@ -68,15 +70,15 @@ <h1>Introductory screencast</h1>
6870
<iframe src="http://player.vimeo.com/video/26391171?title=0&amp;byline=0&amp;portrait=0"
6971
width="633" height="475" frameborder="0"></iframe>
7072
</center>
71-
73+
7274
<p>
7375
<a href="screencasts.html">Watch other screencasts</a>
7476
</p>
7577
</article>
7678

7779
<article>
7880
<h1>Features</h1>
79-
81+
8082
<p>
8183
Pry is written from scratch to provide a number of advanced features,
8284
some of these include:
@@ -116,7 +118,7 @@ <h1>Features</h1>
116118
<h1>More examples</h1>
117119

118120
<h2>Runtime invocation</h2>
119-
121+
120122
<p>
121123
Pry can be invoked in the middle of a running program. It opens a Pry
122124
session at the point it's called and makes all program state at that
@@ -138,7 +140,7 @@ <h2>Runtime invocation</h2>
138140
{% highlight ruby %}{% include code/session.rb %}{% endhighlight %}
139141

140142
<h2>Command Shell Integration</h2>
141-
143+
142144
<p>
143145
A line of input that begins with a '.' will be forwarded to the command
144146
shell. This enables us to navigate the file system, spawn editors, and
@@ -162,29 +164,29 @@ <h2>Command Shell Integration</h2>
162164

163165
<article>
164166
<h1>Please support Pry!</h1>
165-
167+
166168
<p class="donate">
167169
If you liked Pry and found it useful, <em>please consider
168170
making a donation</em> to support its continued development!
169171
</p>
170-
172+
171173
<p>
172174
Pry was a huge amount of work and every dollar received is encouraging!
173175
</p>
174176
</article>
175177

176178
<article>
177179
<h1>Credits</h1>
178-
180+
179181
<p>
180182
The Pry core team are <a href="https://github.com/banister">John Mair</a>
181183
(project founder; aka banisterfiend; <a href="https://twitter.com/banisterfiend">twitter</a>; <a href="http://banisterfiend.wordpress.com">blog</a>),
182184
<a href="https://github.com/conradirwin">Conrad Irwin</a> and <a href="https://github.com/rwfitzge">Ryan Fitzgerald</a>.
183-
185+
184186
The project is also aided by a healthy number
185187
of <a href="https://github.com/pry/pry/contributors">contributors</a>.
186188
</p>
187-
189+
188190
<p>
189191
To participate in Pry's development (and get your name on
190192
the list!) see the wiki article on <a href="https://github.com/pry/pry/wiki/Contributing">how to contribute</a>.

stylesheets/style.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,29 @@ header {
9292
*zoom: 1; }
9393
header h1 {
9494
display: none; }
95+
header #devswag {
96+
position: absolute;
97+
left: 1em;
98+
top: 0;
99+
width: 310px;
100+
z-index: 999; }
101+
header #devswag a img, header #devswag #product_links {
102+
float: left; }
103+
header #devswag #pry_t_shirt {
104+
opacity: 0;
105+
position: absolute;
106+
left: 0; }
107+
header #devswag #product_links {
108+
font-size: 85%;
109+
margin-top: 22px;
110+
margin-left: -22px; }
111+
header #devswag #product_links .uniform_bg {
112+
background: url('/images/white_transparent_dot.png?1354097809') repeat;
113+
position: relative;
114+
outline: #fff solid 0.26em;
115+
-moz-outline-offset: -0.04em; }
116+
header #devswag #product_links .uniform_bg span {
117+
position: relative; }
95118
header #logo {
96119
margin-bottom: 2.5em;
97120
position: relative;
@@ -114,7 +137,7 @@ header {
114137
-o-box-shadow: #d6e2e1 2px 2px 0 inset, #d6e2e1 -2px -2px 0 inset;
115138
box-shadow: #d6e2e1 2px 2px 0 inset, #d6e2e1 -2px -2px 0 inset; }
116139
header .sponsors h2 {
117-
background: url('/images/sponsored_by_header.png?1351674384') no-repeat;
140+
background: url('/images/sponsored_by_header.png?1354060440') no-repeat;
118141
height: 28px;
119142
margin: -6px 1em 0;
120143
text-indent: -9999px;
@@ -284,7 +307,7 @@ footer {
284307
text-shadow: none; }
285308

286309
body {
287-
background: url('/images/background.jpg?1351674384') repeat;
310+
background: url('/images/background.jpg?1354060440') repeat;
288311
color: black; }
289312

290313
div.wrap {

0 commit comments

Comments
 (0)
0