Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 631c703

Browse files
committed
updated default pattern data and the home page to reflect a new structure from php - and get ready for psuedo patterns
1 parent abf83e6 commit 631c703

File tree

3 files changed

+51
-18
lines changed

3 files changed

+51
-18
lines changed

source/_data/data.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"title" : "Pattern Lab",
3+
"htmlClass": "pl",
4+
"bodyClass": "body",
25
"img": {
36
"landscape-4x3": {
47
"src": "../../images/fpo_4x3.png",
@@ -15,6 +18,10 @@
1518
"avatar" : {
1619
"src" : "../../images/fpo_avatar.png",
1720
"alt" : "Person Name"
21+
},
22+
"rectangle": {
23+
"src": "http://placeimg.com/400/300/tech",
24+
"alt": "Rectangle"
1825
}
1926
},
2027
"headline" : {
@@ -27,7 +34,7 @@
2734
"long" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
2835
},
2936
"description" : "So, setting about it as methodically as men might smoke out a wasps' nest, the Martians spread this strange stifling vapour over the Londonward country. The horns of the crescent slowly moved apart, until at last they formed a line from Hanwell to Coombe and Malden. All night through their destructive tubes advanced.",
30-
"url" : "http://www.fillerati.com",
37+
"url" : "#",
3138
"name" : {
3239
"first": "Lacy",
3340
"firsti": "L",
@@ -68,5 +75,19 @@
6875
"author" : {
6976
"first-name": "Author",
7077
"last-name": "Name"
71-
}
78+
},
79+
"hero": true,
80+
"emergency" : false,
81+
"touts" : [
82+
{ },
83+
{ },
84+
{ }
85+
],
86+
"latest-posts" : [
87+
{ },
88+
{ },
89+
{ },
90+
{ },
91+
{ }
92+
]
7293
}
Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
<div class="page" id="page">
22
{{> organisms-header }}
33
<div role="main">
4-
{{> molecules-block-hero }}
4+
{{# emergency }}
5+
{{> molecules-alert:error }}
6+
{{/ emergency }}
7+
{{# hero }}
8+
{{> molecules-block-hero }}
9+
{{/ hero}}
10+
511
<div class="g g-3up">
6-
<div class="gi">
7-
{{> molecules-inset-block }}
8-
</div>
9-
<div class="gi">
10-
{{> molecules-inset-block }}
11-
</div>
12-
<div class="gi">
13-
{{> molecules-inset-block }}
14-
</div>
12+
{{# touts}}
13+
<div class="gi">
14+
{{> molecules-block-inset }}
15+
</div>
16+
{{/ touts}}
1517
</div><!--end 3up-->
1618

1719
<hr />
1820

1921
<div class="l-two-col">
2022
<div class="l-main">
21-
{{> organisms-latest-posts }}
22-
</div>
23+
<section class="section latest-posts">
24+
<h2 class="section-title">Latest Posts</h2>
25+
<ul class="post-list">
26+
{{# latest-posts }}
27+
<li>{{> molecules-media-block }}</li>
28+
{{/ latest-posts }}
29+
</ul>
30+
<a href="#" class="text-btn">View more posts</a>
31+
</section>
32+
</div><!--end .l-main-->
2333

2434
<div class="l-sidebar">
2535
{{> organisms-recent-tweets }}
26-
</div>
27-
</div>
28-
36+
</div><!--end .l-sidebar-->
37+
</div><!--end .l-two-col-->
2938
</div><!--End role=main-->
3039
{{> organisms-footer }}
3140
</div>

source/_patterns/04-pages/00-homepage.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"title" : "Home Page",
3+
"bodyClass": "home",
4+
"emergency" : false,
25
"hero" : [
36
{
47
"img": {
@@ -8,7 +11,7 @@
811
}
912
},
1013
"headline" : {
11-
"medium" : "Top 10 mountin ranges for hiking"
14+
"medium" : "Top 10 mountain ranges for hiking"
1215
}
1316
}
1417
],

0 commit comments

Comments
 (0)