Skip to content

Commit 7c3c6fa

Browse files
committed
Demo overview
1 parent 9a31bc1 commit 7c3c6fa

File tree

83 files changed

+780
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+780
-41
lines changed

_layouts/landing-demos.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,21 @@
22
layout: landing
33
---
44

5-
{{ content }}
5+
<div class="swim-lane type-patterns">
6+
<div class="pat-container">
7+
{% for item in site.demos %}
8+
{% if item.layout == 'demo' %}
9+
<a href="{{ item.url }}"
10+
title="{{ item.description }}"
11+
class="pattern-tile cat-{{ item.category }}">
12+
<figure>
13+
<img src="/assets/placeholders/placeholder-1x1.png"
14+
style="background-image: url(/media/icons/{{ item.title | slugify }}.svg)"
15+
alt="" />
16+
<figcaption>{{ item.title }}</figcaption>
17+
</figure>
18+
</a>
19+
{% endif %}
20+
{% endfor %}
21+
</div>
22+
</div>

_layouts/landing-documentation.html

+23-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,26 @@
22
layout: landing
33
---
44

5-
{{ content }}
6-
5+
{% if page.groups %}
6+
<div class="pat-container">
7+
<div class="wells">
8+
{% for group in page.groups %}
9+
<div class="pat-well pat-rich">
10+
<h2>{{ group.name }}</h2>
11+
<p>
12+
{{ group.summary }}
13+
</p>
14+
<ul class="link-list">
15+
{% for item in site.documentation %}
16+
{% if item.parent == group.name %}
17+
<li>
18+
<a href="{{ item.url }}">{{ item.title }}</a>
19+
</li>
20+
{% endif %}
21+
{% endfor %}
22+
</ul>
23+
</div>
24+
{% endfor %}
25+
</div>
26+
</div>
27+
{% endif %}

_layouts/landing.html

+1-35
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,4 @@ <h1>{{ page.title }}</h1>
1717
</div>
1818
</div>
1919

20-
{% assign article_content = page.content | strip_newlines %}
21-
22-
{% unless page.content == empty or article_content == '' %}
23-
<div class="swim-lane type-body-text">
24-
<div class="pat-container">
25-
<article class="pat-rich">
26-
{{ content }}
27-
</article>
28-
</div>
29-
</div>
30-
{% endunless %}
31-
32-
{% if page.groups %}
33-
<div class="pat-container">
34-
<div class="wells">
35-
{% for group in page.groups %}
36-
<div class="pat-well pat-rich">
37-
<h2>{{ group.name }}</h2>
38-
<p>
39-
{{ group.summary }}
40-
</p>
41-
<ul class="link-list">
42-
{% for item in site.documentation %}
43-
{% if item.parent == group.name %}
44-
<li>
45-
<a href="{{ item.url }}">{{ item.title }}</a>
46-
</li>
47-
{% endif %}
48-
{% endfor %}
49-
</ul>
50-
</div>
51-
{% endfor %}
52-
</div>
53-
</div>
54-
{% endif %}
20+
{{ content }}

_sass/_settings.scss

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $osc-width: 500px;
5050
@import "components/main-content";
5151
@import "components/long-read";
5252
@import "components/osc";
53+
@import "components/pattern-tile";
5354
@import "components/rich";
5455
@import "components/site-header";
5556
@import "components/swim-lane";

_sass/assets/_colours.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ $colour-download: darkgoldenrod;
1212

1313
$colour-link: blue;
1414

15-
$colour-osc: #215021;
15+
$colour-osc: #215021;
16+
17+
// Categories
18+
$cat-behavioural: #717dd7;
19+
$cat-fancy-stuff: #bf9230;
20+
$cat-form: #9e80a1;
21+
$cat-layout: #80a4a7;
22+
$cat-navigation: #b6c16e;

_sass/components/_main-content.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#main-content {
22
padding: 155px 0;
33
transition: transform $header-animation-speed;
4+
@include clear;
45

56
@include screen-size(small) {
67
padding: 100px 0;

_sass/components/_pattern-tile.scss

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.pattern-tile {
2+
float: left;
3+
width: 20%;
4+
margin-bottom: 30px;
5+
text-decoration: none;
6+
font-size: 25px;
7+
padding: 0 20px;
8+
box-sizing: border-box;
9+
10+
&.cat-behavioural img {
11+
background-color: $cat-behavioural;
12+
}
13+
14+
&.cat-form img {
15+
background-color: $cat-form;
16+
}
17+
18+
&.cat-layout img {
19+
background-color: $cat-layout;
20+
}
21+
22+
&.cat-navigation img {
23+
background-color: $cat-navigation;
24+
}
25+
26+
&.cat-fancy-stuff img {
27+
background-color: $cat-fancy-stuff;
28+
}
29+
30+
&:hover {
31+
img {
32+
transform: scale(1.02);
33+
}
34+
}
35+
36+
img {
37+
width: 100%;
38+
display: block;
39+
background-color: silver;
40+
background-size: cover;
41+
border-radius: 50%;
42+
margin: 0 0 15px;
43+
transition: 0.1s all;
44+
}
45+
46+
figcaption {
47+
height: 40px;
48+
overflow: hidden;
49+
text-align: center;
50+
color: black;
51+
margin: 0 -20px;
52+
}
53+
}

content/_demos/inject.md

+1-1

content/_demos/syntax-highlight.md

+1-1

media/affordance-apps.png

-275 KB
Binary file not shown.

media/affordance-calendar-app.png

-221 KB
Binary file not shown.

media/affordance-classifieds-app.png

-1.33 MB
Binary file not shown.

media/affordance-dashboard.png

-1.13 MB
Binary file not shown.

media/affordance-library-document.png

-305 KB
Binary file not shown.

media/affordance-library.png

-360 KB
Binary file not shown.

media/affordance-news.png

-3.38 MB
Binary file not shown.

media/affordance-workspaces.png

-475 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

media/dashboard-bhc.png

-917 KB
Binary file not shown.

media/dashboard-buolus.png

-900 KB
Binary file not shown.

media/dashboard-ccc.png

-947 KB
Binary file not shown.

media/dashboard-dbc.png

-848 KB
Binary file not shown.

media/dashboard-ikath.png

-844 KB
Binary file not shown.

media/dashboard-imio.png

-844 KB
Binary file not shown.

media/dashboard-inhouse.png

-893 KB
Binary file not shown.

media/dashboard-kkv.png

-854 KB
Binary file not shown.

media/dashboard-mesh.png

-852 KB
Binary file not shown.

media/dashboard-stardesk.png

-1.02 MB
Binary file not shown.

media/dashboard-vediso.png

-930 KB
Binary file not shown.

media/data-centre.jpg

-536 KB
Binary file not shown.

media/icons/auto-scale.svg

+12

media/icons/auto-submit.svg

+10

media/icons/auto-suggest.svg

+16

media/icons/autofocus.svg

+12

media/icons/bumper.svg

+10

media/icons/calendar.svg

+38

media/icons/carousel.svg

+8

media/icons/checked-flag.svg

+10

media/icons/checklist.svg

+28

media/icons/clone.svg

+24

media/icons/collapsible.svg

+9

0 commit comments

Comments
 (0)