Skip to content

Commit 189f4f9

Browse files
committed
Download page
1 parent 9a80575 commit 189f4f9

File tree

9 files changed

+77
-6
lines changed

9 files changed

+77
-6
lines changed

.jekyll-metadata

-130 Bytes
Binary file not shown.

_data/patterns

Submodule patterns updated 1 file

_layouts/landing-download.html

+31-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
---
2-
layout: landing
2+
layout: generic
33
---
44

5-
{{ content }}
5+
<div class="swim-lane type-intro">
6+
<div class="pat-container">
7+
<div
8+
class="pat-rich long-read">
9+
<h1>{{ page.title }}</h1>
10+
{% unless page.summary == nil %}
11+
<p class="summary">
12+
{{ page.summary }}
13+
</p>
14+
{% endunless %}
15+
</div>
16+
<div
17+
class="download-block">
18+
<p
19+
class="button-bar download-bar">
20+
<a
21+
class="pat-button cta"
22+
href="https://github.com/Patternslib/Patterns/archive/2.1.2.zip">Download v2.1.2 (latest)</a>
23+
</p>
24+
<p
25+
class="download-byline pat-rich">
26+
Look for <a href="/alternate-releases">alternate releases</a>.
27+
</p>
28+
</div>
29+
<div
30+
class="pat-rich long-read">
31+
{{ content }}
32+
</div>
33+
</div>
34+
</div>

_sass/_settings.scss

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ $osc-width: 500px;
4343
@import "components/body";
4444
@import "components/button";
4545
@import "components/canvas-toolbar";
46+
@import "components/download-block";
4647
@import "components/global-nav";
4748
@import "components/link-list";
4849
@import "components/main";

_sass/components/_download-block.scss

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@charset "UTF-8";
2+
3+
.download-block {
4+
5+
p {
6+
margin-bottom: 40px;
7+
text-align: center;
8+
9+
a {
10+
color: white;
11+
}
12+
}
13+
14+
.button-bar {
15+
16+
.pat-button {
17+
font-size: 50px;
18+
line-height: 50px;
19+
padding: 10px 40px;
20+
background-color: rgba(black, 0.3);
21+
22+
&:hover {
23+
background-color: rgba(black, 0.4);
24+
}
25+
}
26+
}
27+
}

_sass/components/_osc.scss

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
opacity: 0;
2929
height: 0;
3030
}
31+
32+
@media screen and (max-height: 710px) {
33+
display: none;
34+
}
3135
}
3236

3337
p {

content/_download/index.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
---
22
layout: landing-download
33
title: Download
4-
summary:
4+
summary: Start using the Patterns library in your own project in minutes time.
55
---
66

7+
1. Download the latest Patterns library above.
8+
2. Place the downloaded folder in your project.
9+
3. Put the follwing line in the head of your main HTML page.
10+
11+
<pre class="pat-syntax-highlight">
12+
&lt;script src="your-patterns-folder/patterns.js" type="text/javascript"&gt;&lt;/script&gt;
13+
</pre>
14+
15+
Happy creating!
16+

0 commit comments

Comments
 (0)