Skip to content

Commit 3ac6fd9

Browse files
bradfrostbmuenzenmeyer
authored andcommitted
Merge branch 'master' of github.com:bradfrost/pl-website-eleventy
1 parent 4bdd649 commit 3ac6fd9

File tree

11 files changed

+188
-68
lines changed

11 files changed

+188
-68
lines changed

packages/docs/.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"printWidth": 90,
3+
"useTabs": true,
34
"tabWidth": 4,
45
"singleQuote": true,
56
"bracketSpacing": false

packages/docs/package-lock.json

Lines changed: 12 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{
32
"name": "patternlab-website",
43
"version": "0.1.0",
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<div class="c-hero">
2-
<h1 class="c-hero__title">{{heroTitle}}</h1>
2+
<div class="l-container">
3+
<h1 class="c-hero__title">{{heroTitle}}</h1>
34

4-
<div class="c-hero__footer">
5-
<pre><code>npm create pattern-lab</code></pre>
5+
<div class="c-hero__footer">
6+
7+
</div>
68
</div>
79
</div>

packages/docs/src/_includes/components/tree-nav.njk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
{{ item.label }}
1010
{% set className = "c-tree-nav__icon" %}
1111
{% include "components/icon-chevron-down.njk" %}
12-
13-
14-
1512
</button>
1613

1714
<ul class="c-tree-nav__subnav">

packages/docs/src/_includes/layouts/home.njk

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,55 @@
55
{% set heroTitle = title %}
66

77
{% block content %}
8-
8+
99
{% include "components/hero.njk" %}
10+
<div class="c-tile">
11+
<div class="l-container">
12+
<h2 class="c-tile__title">
13+
<a class="c-tile__link" href="/docs/installing-pattern-lab/">Get started</a>
14+
</h2>
15+
<div class="c-tile__description">This is a description</div>
16+
<pre><code>npm create pattern-lab</code></pre>
17+
</div>
18+
</div>
19+
<ul class="c-tile-list">
20+
<li class="c-tile-list__item"><div class="c-tile c-tile--gray-13">
21+
<div class="l-container">
22+
<h2 class="c-tile__title">
23+
<a class="c-tile__link" href="/docs/installing-pattern-lab">Read the docs</a>
24+
</h2>
25+
<div class="c-tile__description">This is a description</div>
26+
</div>
27+
</div>
28+
<li class="c-tile-list__item">
29+
<div class="c-tile c-tile--gray-27">
30+
<div class="l-container">
31+
<h2 class="c-tile__title">
32+
<a class="c-tile__link" href="/demos">Demos</a>
33+
</h2>
34+
<div class="c-tile__description">This is a description</div>
35+
</div>
36+
</div>
37+
</li>
38+
<li class="c-tile-list__item">
39+
<div class="c-tile c-tile--gray-50">
40+
<div class="l-container">
41+
<h2 class="c-tile__title">
42+
<a class="c-tile__link" href="/resources">Resources</a>
43+
</h2>
44+
<div class="c-tile__description">This is a description</div>
45+
46+
</div>
47+
</div>
48+
</li>
49+
</ul>
1050

1151
<div class="l-container">
52+
1253
<div class="c-text-passage">
1354
{{ content | safe }}
1455
</div>
1556
</div>
57+
</div>
1658

1759
{% endblock %}

packages/docs/src/index.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,18 @@ archiveButtonText: See all posts
66
socialImage: ''
77
---
88

9-
<video autoplay="" loop="" playsinline="" muted="">
10-
<source src="https://patternlab.io/assets/atomic-design.mp4" type="video/mp4">
11-
</video>
12-
139
**Pattern Lab is a frontend workshop environment that helps you build, view, test, and showcase your design system's UI components.**
1410

1511
At its core, Pattern Lab is a static site generator (powered by either Node or PHP) that stitches together UI components. But there's a whole lot more to it than that!
1612

17-
- **Nested Patterns** - Pattern Lab lets you include UI patterns inside each other like Russian nesting dolls. Make a change to a pattern, and see those changes reflected anywhere the pattern is included!
18-
- **Design With Dynamic Data** - Unlike static design tools, Pattern Lab lets you easily swap in different representative content into your components to ensure they can handle the dynamic nature of your content.
19-
- **Tool Agnostic** - Pattern Lab doesn't impose any tools or libraries on you, which means you can choose what's right for your project. Like Sass? Cool, go for it! Don't need it? That's fine too! jQuery? No jQuery? Totally up to you.
20-
- **Language Agnostic** - Atomic design is a helpful mental model, not rigid doctrine. You can rename pattern categories to whatever makes the most sense for your organization and team.
21-
- **Pattern Documentation** - Define and describe your UI patterns so your entire team can start speaking the same language to collaborate more effectively.
22-
- **Viewport Resizer Tools** - Pattern Lab has device-agnostic viewport resizing tools to ensure your design system is fully responsive and embraces the intrinsic fluidity of the web.
23-
- **Annotations** - Lose the gigantic static PDFs and annotate your living, breathing UI from within Pattern Lab. Clients and colleagues can review annotations right within the browser.
24-
- **Pattern Lineage** - Speed up your design, development, and QA time by quickly seeing which patterns make up any given component, as well as seeing where each component is employed.
25-
- **Pattern Starter Kits** - Spin up Pattern Lab loaded with frameworks like Bootstrap, Foundation, or Material Design. Or of course start from scratch and build your own custom design system.
26-
- **Versatile** - Pattern Lab can be used for simple rapid prototyping or for developing production-level frontend code. Some teams have even modified it to power their live sites!
27-
- **Extensible** - Choose your own templating engine to better match your production environment. Also you can or build a plugin to extend Pattern Lab's capabilities even further.
13+
- **Nested Patterns** - Pattern Lab lets you include UI patterns inside each other like Russian nesting dolls. Make a change to a pattern, and see those changes reflected anywhere the pattern is included!
14+
- **Design With Dynamic Data** - Unlike static design tools, Pattern Lab lets you easily swap in different representative content into your components to ensure they can handle the dynamic nature of your content.
15+
- **Tool Agnostic** - Pattern Lab doesn't impose any tools or libraries on you, which means you can choose what's right for your project. Like Sass? Cool, go for it! Don't need it? That's fine too! jQuery? No jQuery? Totally up to you.
16+
- **Language Agnostic** - Atomic design is a helpful mental model, not rigid doctrine. You can rename pattern categories to whatever makes the most sense for your organization and team.
17+
- **Pattern Documentation** - Define and describe your UI patterns so your entire team can start speaking the same language to collaborate more effectively.
18+
- **Viewport Resizer Tools** - Pattern Lab has device-agnostic viewport resizing tools to ensure your design system is fully responsive and embraces the intrinsic fluidity of the web.
19+
- **Annotations** - Lose the gigantic static PDFs and annotate your living, breathing UI from within Pattern Lab. Clients and colleagues can review annotations right within the browser.
20+
- **Pattern Lineage** - Speed up your design, development, and QA time by quickly seeing which patterns make up any given component, as well as seeing where each component is employed.
21+
- **Pattern Starter Kits** - Spin up Pattern Lab loaded with frameworks like Bootstrap, Foundation, or Material Design. Or of course start from scratch and build your own custom design system.
22+
- **Versatile** - Pattern Lab can be used for simple rapid prototyping or for developing production-level frontend code. Some teams have even modified it to power their live sites!
23+
- **Extensible** - Choose your own templating engine to better match your production environment. Also you can or build a plugin to extend Pattern Lab's capabilities even further.

packages/docs/src/scss/components/_hero.scss

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,37 @@
33
\*------------------------------------*/
44

55
.c-hero {
6-
padding: 2rem;
7-
background: url(https://patternlab.io/assets/icon-atom.svg);
8-
height: 70vh;
9-
position: relative;
10-
display: flex;
11-
flex-direction: column;
12-
align-items: center;
13-
justify-content: center;
6+
background: $color-gray-50;
7+
color: $color-white;
8+
min-height: 40vh;
9+
padding: 2rem 0;
10+
position: relative;
11+
display: flex;
12+
flex-direction: column;
13+
align-items: center;
14+
justify-content: center;
15+
16+
@media all and (min-width: $bp-large) {
17+
min-height: 60vh;
18+
}
1419
}
1520

1621
.c-hero__title {
17-
@include highlightEffect();
22+
display: inline;
1823
}
1924

2025
.c-hero__footer {
21-
position: absolute;
22-
bottom: -55px;
23-
left: 50%;
24-
width: 320px;
25-
margin-left: -160px;
26+
position: absolute;
27+
bottom: -55px;
28+
left: 50%;
29+
width: 320px;
30+
margin-left: -160px;
31+
}
32+
33+
.c-hero__icon {
34+
display: inline-block;
35+
height: 3rem;
36+
width: 3rem;
37+
margin-right: 2rem;
38+
animation: rotate 10s linear infinite;
2639
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*------------------------------------*\
2+
#TILE
3+
\*------------------------------------*/
4+
5+
.c-tile-list {
6+
margin-bottom: 2rem;
7+
8+
@media all and (min-width: $bp-xl) {
9+
display: grid;
10+
grid-template-columns: 1fr 1fr;
11+
}
12+
}
13+
14+
.c-tile-list__item:nth-child(1) {
15+
@media all and (min-width: $bp-xl) {
16+
grid-row: span 3;
17+
}
18+
}
19+
20+
.c-tile-list__item:nth-child(2) {
21+
@media all and (min-width: $bp-xl) {
22+
grid-column: 2/3;
23+
}
24+
}
25+
.c-tile-list__item:nth-child(3) {
26+
@media all and (min-width: $bp-xl) {
27+
grid-row: 2;
28+
grid-column: 2/3;
29+
}
30+
}

0 commit comments

Comments
 (0)