Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eca29cb

Browse filesBrowse files
committed
Fix for about page presentation
1 parent 4e61073 commit eca29cb
Copy full SHA for eca29cb

File tree

Expand file treeCollapse file tree

4 files changed

+37
-23
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+37
-23
lines changed

‎09 Redux/src/components/about.tsx

Copy file name to clipboardExpand all lines: 09 Redux/src/components/about.tsx
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ import * as React from 'react';
22

33
export const About: React.StatelessComponent<{}> = () => {
44
return (
5-
<div className="row about-page">
6-
<h1 className="jumbotron">09 Redux</h1>
5+
<div className="row about-page col-12">
6+
<h1 className="jumbotron col-2">09 Redux</h1>
77

8-
<div className="col-xs-12">
8+
<div className="col-10" id="header-title">
99
<h1>
1010
<small>This sample takes as starting point sample "08 ParamNavigation".</small>
1111
</h1>
12-
<div className="col-xs-12">
12+
<div className="col-10">
1313
<h3>
1414
<small>We are adding Redux pattern</small>
1515
</h3>
1616
</div>
1717
</div>
1818

19-
<div className="col-xs-12 top-buffer">
19+
<div className="col-2 top-buffer">
2020
<h3>Highlights</h3>
2121
<hr />
2222
<h3>
2323
<small>The most interesting parts worth to take a look</small>
2424
</h3>
2525
</div>
2626

27-
<div className="col-xs-12 top-buffer">
27+
<div className="col-10">
2828
<ul>
2929
<li className="top-buffer">
3030
<h4><b>Actions:</b></h4>

‎09 Redux/src/components/header.tsx

Copy file name to clipboardExpand all lines: 09 Redux/src/components/header.tsx
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ import { Link } from 'react-router-dom';
44

55
export const Header: React.StatelessComponent<{}> = () => {
66
return (
7-
<div className="row">
8-
<nav className="navbar navbar-expand-lg navbar-light bg-light">
7+
<div className="row col-12">
8+
9+
<nav className="navbar navbar-expand-lg navbar-light bg-white" id="navbar">
10+
<img className="navbar-icon" src={require('../images/lemoncode.png')} alt="logo" />
911
<a className="navbar-brand" href="#">Lemoncode</a>
12+
1013
<button className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
1114
<span className="navbar-toggler-icon"></span>
1215
</button>
1316

1417
<div className="collapse navbar-collapse" id="navbarSupportedContent">
1518
<ul className="navbar-nav mr-auto">
1619
<li className="nav-item">
17-
{/* <a className="nav-link" href="#">Home <span className="sr-only">(current)</span></a> */}
1820
<Link className="nav-link" to="/about"> About</Link>
1921
</li>
2022
<li className="nav-item ">

‎09 Redux/src/css/site.css

Copy file name to clipboard
+26-14Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
1-
.top-buffer{
2-
margin-top: 20px;
1+
.top-buffer {
2+
margin-top: 20px;
33
}
44

5-
.about-page{
6-
position: relative;
7-
top: -20px;
5+
.navbar-icon {
6+
width: 5em;
7+
height: 5em;
88
}
99

10-
.about-page .jumbotron{
11-
margin: 0;
12-
background:rgba(9,69,95,0.8);
13-
color: white;
14-
border-radius: 0 !important;
10+
.about-page .jumbotron {
11+
margin: 0;
12+
background: rgba(9, 69, 95, 0.8);
13+
color: white;
14+
border-radius: 0 !important;
1515
}
1616

1717
/*React apply activeClassName to <a> element, but Bootstrap active class is over <li> element*/
18-
.navbar .nav .active, .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus{
19-
background: #e7e7e7 !important;
20-
color: #333 !important;
18+
19+
.navbar .nav .active,
20+
.navbar-default .navbar-nav>.active>a,
21+
.navbar-default .navbar-nav>.active>a:hover,
22+
.navbar-default .navbar-nav>.active>a:focus {
23+
background: white !important;
24+
color: #333 !important;
2125
}
2226

2327
.avatar {
24-
max-width: 80px
28+
max-width: 80px
29+
}
30+
31+
#navbar {
32+
padding-left: 0px !important;
2533
}
34+
35+
#header-title {
36+
background-color: rgb(238, 235, 235);
37+
}

‎09 Redux/src/images/lemoncode.png

Copy file name to clipboard
97.2 KB
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.