Skip to content

Commit 631e48c

Browse files
added footer frame
1 parent 9295ce8 commit 631e48c

File tree

6 files changed

+54
-5
lines changed

6 files changed

+54
-5
lines changed

widgets/portfolio/src/components/Home/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class HomePage extends React.Component<HomePageProps, {}> {
99
render() {
1010
return (
1111
<div className="col-md-12 text-center mt-5 mb-5" id="home-page">
12-
<h1 className="title white">{this.props.title}</h1>
12+
<h1 className="title white d-inline-flex">{this.props.title}<span className="d-none d-sm-block ml-2 mr-2"> |</span> Portfolio</h1>
1313
<div className="hero-container" id="">
1414
<picture className="hero-img mb-5">
1515
<source media="..." srcSet={this.props.imgSrc} />
@@ -33,7 +33,7 @@ export class HomePage extends React.Component<HomePageProps, {}> {
3333
<div className="lightish-red"></div>
3434
<div className="pink"></div>
3535
</div>
36-
<p>The standard Lorem Ipsum passage, used since the 1500s
36+
{/* <p>The standard Lorem Ipsum passage, used since the 1500s
3737
"Lorem ipsum dolor sit amet, consectetur adipiscing 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."</p>
3838
3939
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC
@@ -46,7 +46,7 @@ export class HomePage extends React.Component<HomePageProps, {}> {
4646
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
4747
4848
<p>1914 translation by H. Rackham
49-
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
49+
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p> */}
5050
</div>
5151
</div>
5252
)

widgets/portfolio/src/components/Layout/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as React from 'react';
33
import { LayoutProps } from './interface';
44
import { Header } from '../Header';
55
import { Navigator } from '../Navigation';
6+
import { Footer } from '../Navigation/footer';
67

78
export class Layout extends React.Component<LayoutProps, {}> {
89
constructor(props: any) {
@@ -25,6 +26,7 @@ export class Layout extends React.Component<LayoutProps, {}> {
2526
</div>
2627
</div>
2728
</div>
29+
<Footer />
2830
</>
2931
)
3032
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import * as React from 'react';
2+
import { FooterProps } from './interface';
3+
4+
export class Footer extends React.Component<FooterProps> {
5+
render() {
6+
return (
7+
<footer>
8+
<div className="container">
9+
<div className="row">
10+
<div className="col-md-12 py-5">
11+
<div className="mb-5 flex-center">
12+
<a className="fb-ic">
13+
<i className="fab fa-facebook-f fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
14+
</a>
15+
<a className="tw-ic">
16+
<i className="fab fa-twitter fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
17+
</a>
18+
<a className="gplus-ic">
19+
<i className="fab fa-google-plus-g fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
20+
</a>
21+
<a className="li-ic">
22+
<i className="fab fa-linkedin-in fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
23+
</a>
24+
<a className="ins-ic">
25+
<i className="fab fa-instagram fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
26+
</a>
27+
<a className="pin-ic">
28+
<i className="fab fa-pinterest fa-lg white-text fa-2x"> </i>
29+
</a>
30+
</div>
31+
</div>
32+
</div>
33+
</div>
34+
<div className="footer-copyright text-center py-3">© 2020 Copyright
35+
<a href="http://knight-coder.com"> Knight Coder LLC.</a>
36+
</div>
37+
</footer>
38+
)
39+
}
40+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
export interface NavigationProps {
22
links: Array<string>
3+
}
4+
5+
export interface FooterProps {
6+
links?: Array<string>
37
}

widgets/portfolio/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ReactDom.render(
1313
<Layout>
1414
<Switch>
1515
<Route exact path="/" >
16-
<HomePage title='Knight Coder LLC | Portfolio' imgSrc="../src/images/brian1.jpg" />
16+
<HomePage title='Knight Coder LLC' imgSrc="../src/images/brian1.jpg" />
1717
</Route>
1818
<Route path="/features" >
1919
{/* <h1 >featured page</h1> */}

widgets/portfolio/src/master.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@ h1 { color: white;}
6363
margin-top: -6.5px;
6464
transform: translate3d(0px, -5.5px, 0px);
6565
z-index: 99
66-
}
66+
}
67+
68+
footer {background: black;}
69+
.footer-copyright {color:white;}

0 commit comments

Comments
 (0)