Skip to content

Commit 190b529

Browse files
author
Walden Raines
committed
Merge pull request #114 from erundle/docsCSS
Improving homepage
2 parents 2b9855e + 728b9ae commit 190b529

File tree

4 files changed

+90
-23
lines changed

4 files changed

+90
-23
lines changed

Gruntfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ module.exports = function (grunt) {
6565
src: ['*.css', '!*.min.css'],
6666
dest: 'dist/styles',
6767
expand: true
68+
},
69+
img: {
70+
cwd: 'misc/',
71+
src: 'patternfly-orb.svg',
72+
dest: 'dist/docs/img',
73+
expand: true
6874
}
6975
},
7076
cssmin: {

grunt-ngdocs-index.tmpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,16 @@
238238

239239
<div id="loading" ng-show="loading">Loading...</div>
240240

241-
<span ng-show="breadcrumb[breadcrumb.length-1].name === 'API Documentation'">
242-
<br/>
243-
<h1><strong>Welcome to Angular-PatternFly!</strong><h1>
244-
<h2>Angular-PatternFly contains custom AngularJS directives which adhere to the PatternFly Refererence Implementation.</h2>
245-
<h2>PatternFly is a community project that promotes design commonality and improved user experience. Its offerings
246-
include visual and behavioral patterns based on research and UX best practices that solve common design problems.<h2>
247-
<h3>For more information, please see <a href="https://www.patternfly.org/">https://www.patternfly.org.</a></h3>
248-
<h3><a href="https://github.com/patternfly/angular-patternfly/issues/">Report an issue on Angular PatternFly on Github.</a></h3>
249-
<h3><a href="https://patternfly.atlassian.net/secure/RapidBoard.jspa?rapidView=4&projectKey=PTNFLY&view=planning.nodetail">View the Implementation Roadmap on Jira.</a></h3>
250-
</span>
241+
<div class="home" ng-show="breadcrumb[breadcrumb.length-1].name === 'API Documentation'">
242+
<h1>Welcome to Angular PatternFly!<h1>
243+
<img src="img/patternfly-orb.svg" alt="PatternFly logo" />
244+
<h3>Angular PatternFly contains custom AngularJS directives which utilize the PatternFly Refererence Implementation.<br/>PatternFly is a community of designers and developers collaborating to build a UI framework for enterprise web applications.</h3>
245+
<ul>
246+
<li><a href="https://www.patternfly.org/">More About PatternFly</a></li>
247+
<li><a href="https://github.com/patternfly/angular-patternfly/issues/">Report an issue on Github</a></li>
248+
<li><a href="https://patternfly.atlassian.net/secure/RapidBoard.jspa?rapidView=4&projectKey=PTNFLY&view=planning.nodetail">View the Implementation Roadmap</a></li>
249+
</ul>
250+
</div>
251251

252252
<div ng-hide="loading" ng-include src="currentPage.partialUrl" onload="afterPartialLoaded()" autoscroll class="content slide-reveal"></div>
253253
<% if (discussions) { %>

misc/ng-docs.css

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
1-
img.AngularJS-small {
2-
width: 95px;
3-
height: 25px;
1+
/* Home Page Styles */
2+
.home {
3+
text-align: center;
44
}
55

6-
/* this is here to avoid the display=block shuffling of ngShow */
7-
.breadcrumb li > * {
8-
float: none;
9-
margin: 0;
6+
.home h1 {
7+
font-size: 30px;
8+
font-weight: 300;
9+
padding-top: 20px;
10+
margin: 22px 0 0;
1011
}
1112

12-
.breadcrumb {
13-
padding-top: 6px;
14-
padding-bottom: 0;
15-
line-height: 18px
13+
.home img {
14+
width: 320px;
15+
border: 1px solid #3bb1dc;
16+
border-radius: 200px;
17+
}
18+
19+
.home h3 {
20+
margin-top: 40px;
21+
margin-bottom: 40px;
22+
line-height: 35px;
23+
}
24+
25+
.home ul {
26+
margin-top: 20px;
27+
list-style: none;
28+
}
29+
30+
.home ul li{
31+
display: inline-block;
32+
padding: 0 10px;
33+
}
34+
35+
.home ul li + li{
36+
border-left: 1px solid #bbb;
1637
}
1738

1839
.navbar img {
@@ -48,11 +69,22 @@ img.AngularJS-small {
4869
height: 1em;
4970
}
5071

51-
5272
.icon-cog {
5373
line-height: 13px;
5474
}
5575

76+
/* this is here to avoid the display=block shuffling of ngShow */
77+
.breadcrumb li > * {
78+
float: none;
79+
margin: 0;
80+
}
81+
82+
.breadcrumb {
83+
padding-top: 6px;
84+
padding-bottom: 0;
85+
line-height: 18px
86+
}
87+
5688
/* =============================== */
5789

5890
.form-search {
@@ -142,7 +174,6 @@ img.AngularJS-small {
142174
padding-top: 6px;
143175
}
144176

145-
146177
.docs-search {
147178
margin: 10px 0;
148179
padding: 4px 0 4px 20px;
@@ -333,3 +364,5 @@ ul.events > li > h3 {
333364
.type-hint-function {
334365
background-color: #003399;
335366
}
367+
368+

misc/patternfly-orb.svg

Lines changed: 28 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)