Skip to content

Commit 0af397f

Browse files
author
David Bishai
committed
added GitHub link to footer
1 parent 1503b93 commit 0af397f

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

css/style.css

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,9 @@ div.light-theme-background {
177177
body.light-theme-background {
178178
background-color: #f8f8f8;
179179
}
180-
/*
181-
span.github-logo {
182-
display: inline-block;
183-
vertical-align: middle;
184-
height: 32px;
185-
width: 32px;
186-
background-image: url("../images/GitHub-Mark-Light-32px.png");
187-
}*/
180+
div.footer {
181+
position: fixed;
182+
left: 0;
183+
bottom: 0;
184+
padding: 5px;
185+
}

images/GitHub-Mark-Light-32px.png

1.53 KB
Loading

js/components/Footer.react.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var React = require('react');
2+
3+
4+
var Footer = React.createClass({
5+
6+
render: function() {
7+
return (
8+
<div className="footer">
9+
<a href="https://github.com/dbishai/orthodox-presenter">
10+
<img src="../../images/GitHub-Mark-Light-32px.png"/></a>
11+
</div>
12+
);
13+
},
14+
15+
16+
});
17+
18+
module.exports = Footer;

js/components/NavMenu.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var NavMenuItem = require('./NavMenuItem.react');
55
var NavItem = require('./NavItem.react');
66
var SectionItem = require('./SectionItem.react');
77
var MainSection = require('./MainSection.react');
8+
var Footer = require('./Footer.react');
89

910
var getState = function () {
1011
return {
@@ -77,6 +78,7 @@ var NavMenu = React.createClass({
7778
{navItems}
7879
{sectionItems}
7980
</ul>
81+
<Footer/>
8082
</div>
8183
<MainSection
8284
attributes={this.state.attributes}

js/stores/NavMenuStore.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ var NavMenu = {
3838
"title": "Feedback",
3939
"url": "mailto:[email protected]",
4040
"span_class": "glyphicon glyphicon-envelope"
41-
}/*,
42-
"github": {
43-
"id": "github",
44-
"title": "GitHub",
45-
"url": "https://github.com/dbishai/orthodox-presenter",
46-
"span_class": "github-logo"
47-
}*/
41+
}
4842
};
4943

5044

0 commit comments

Comments
 (0)