-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): create RmAbout and RmHeader
- Loading branch information
1 parent
4f984ce
commit 8172a91
Showing
8 changed files
with
193 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@mixin background-cover() { | ||
-webkit-background-size: cover; | ||
-moz-background-size: cover; | ||
-o-background-size: cover; | ||
background-size: cover; | ||
} | ||
|
||
@mixin serif-font() { | ||
font-family: 'Lora', 'Times New Roman', serif; | ||
} | ||
|
||
@mixin sans-serif-font() { | ||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||
} | ||
|
||
@mixin min-height() { | ||
min-height: -webkit-calc(100vh - 181px); | ||
min-height: -moz-calc(100vh - 181px); | ||
min-height: calc(100vh - 181px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
|
||
/** | ||
* | ||
* @param {String} heading | ||
* @param {String} subHeading | ||
* @param {String} imgUrl | ||
* @return {component} | ||
* @constructor | ||
*/ | ||
const RmHeader = ({ heading, subHeading, imgUrl = '' }) => ( | ||
|
||
<header className="rmHeader__masthead" style={{'background': imgUrl}}> | ||
<div className="rmHeader__overlay" /> | ||
<div className="container"> | ||
<div className="row"> | ||
<div className="col-lg-8 col-md-10 mx-auto"> | ||
<div className="rmHeader__page-heading"> | ||
<h1>{ heading }</h1> | ||
<span className="rmHeader__subheading">{subHeading}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
); | ||
|
||
export default RmHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Styling for the masthead | ||
.rmHeader__masthead { | ||
// TIP: Background images are set within the HTML using inline CSS! | ||
margin-bottom: 50px; | ||
background: no-repeat center center; | ||
background-color: $gray-600; | ||
background-attachment: scroll; | ||
position: relative; | ||
@include background-cover; | ||
|
||
.rmHeader__overlay { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
background-color: $gray-900; | ||
opacity: 0.5; | ||
} | ||
|
||
.rmHeader__page-heading, | ||
.rmHeader__post-heading, | ||
.rmHeader__site-heading { | ||
padding: 126px 0 150px; | ||
color: white; | ||
|
||
@media only screen and (min-width: 768px) { | ||
|
||
padding: 126px 0; | ||
|
||
} | ||
|
||
} | ||
|
||
.rmHeader__page-heading, | ||
.rmHeader__site-heading { | ||
text-align: center; | ||
|
||
h1 { | ||
font-size: 50px; | ||
margin-top: 0; | ||
} | ||
|
||
.rmHeader__subheading { | ||
font-size: 24px; | ||
font-weight: 300; | ||
line-height: 1.1; | ||
display: block; | ||
margin: 10px 0 0; | ||
@include sans-serif-font; | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
|
||
h1 { | ||
font-size: 80px; | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { Component } from 'react'; | ||
import { connect } from 'react-redux'; | ||
import RmHeader from '../../components/RmHeader/RmHeader'; | ||
import RmNav from '../../containers/RmNav/RmNav'; | ||
|
||
class RmAbout extends Component { | ||
|
||
render() { | ||
return ( | ||
<section className="rmAbout"> | ||
<RmNav /> | ||
<div className="rmAbout__wrapper"> | ||
<RmHeader | ||
heading="About" | ||
subHeading="React Movies"/> | ||
<div className="container pb-5"> | ||
<div className="row"> | ||
<div className="col-lg-8 col-md-10 mx-auto"> | ||
<p> | ||
This is just an app to save and share your favorite movies, because sometimes we need a recommendation | ||
when we doesn't has anything to see, so this is the perfect place. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
} | ||
|
||
export default RmAbout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.rmAbout { | ||
|
||
@include min-height; | ||
|
||
.rmAbout__wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters