Skip to content

Commit 189dd07

Browse files
committed
Added Tidelift enterprise link
1 parent dd5aef4 commit 189dd07

File tree

3 files changed

+39
-11
lines changed

3 files changed

+39
-11
lines changed
2.24 KB
Loading

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@
2727

2828
<div id="header_wrap" class="outer">
2929
<div class="inner">
30-
<a id="forkme_banner" href=
31-
"https://github.com/python-pillow/Pillow" name=
32-
"forkme_banner">View on GitHub</a>
30+
<div class="banners">
31+
<a id="forkme_banner" href=
32+
"https://github.com/python-pillow/Pillow" name=
33+
"forkme_banner">View on GitHub</a>
34+
<a id="enterprise_banner" href="https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pillow&utm_medium=referral">Pillow for enterprise</a>
35+
</div>
3336

3437
<h1 id="project_title"><img alt="Pillow logo" style=
3538
"border: 0px" src="/images/pillow-logo.png"></h1>

stylesheets/stylesheet.css

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,32 @@ Full-Width Styles
283283
margin: 0 auto;
284284
}
285285

286-
#forkme_banner {
287-
display: block;
286+
.banners {
288287
position: absolute;
289-
top:0;
288+
top: 0;
290289
right: 10px;
291290
z-index: 10;
292-
padding: 10px 50px 10px 10px;
293-
color: #fff;
294-
background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%;
291+
}
292+
.banners a {
293+
display: inline-block;
295294
font-weight: 700;
295+
padding: 10px 50px 10px 10px;
296296
box-shadow: 0 0 10px rgba(0,0,0,.5);
297297
border-bottom-left-radius: 2px;
298298
border-bottom-right-radius: 2px;
299+
background-repeat: no-repeat;
300+
background-position: 95% 50%;
301+
}
302+
#forkme_banner {
303+
color: #fff;
304+
background-image: url('../images/blacktocat.png');
305+
background-color: #0090ff;
306+
}
307+
#enterprise_banner {
308+
color: #000;
309+
background-image: url('../images/Tidelift-shorthand-mark_black.png');
310+
background-color: #fff;
311+
background-size: 30px;
299312
}
300313

301314
#header_wrap {
@@ -407,7 +420,7 @@ Small Device Styles
407420
}
408421

409422
#project_title {
410-
font-size: 32px;
423+
font-size: 32px;
411424
}
412425

413426
h1 {
@@ -440,4 +453,16 @@ Small Device Styles
440453
font-size: 11px;
441454
}
442455

443-
}
456+
#header_wrap .inner {
457+
padding-top: 95px;
458+
}
459+
.banners {
460+
display: flex;
461+
align-items: flex-end;
462+
flex-direction: column;
463+
}
464+
#enterprise_banner {
465+
margin-top: 5px;
466+
border-radius: 2px;
467+
}
468+
}

0 commit comments

Comments
 (0)