Merge pull request '[#1] Added a new full page photo header.' (#14) from 1-photo-header into master

Reviewed-on: #14
This commit is contained in:
maximx1 2022-05-30 14:25:14 -04:00
commit 568f1efa2f
7 changed files with 31 additions and 3 deletions

BIN
public/images/7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

View File

@ -1,12 +1,12 @@
import "@fontsource/open-sans";
import './App.scss';
import Portfolio from "./sections/Portfolio";
import Header from "./sections/Header";
import PhotoHeader from "./sections/headers/PhotoHeader";
const App = () => {
return (
<div>
<Header />
<PhotoHeader />
<Portfolio />
</div>
);

View File

@ -29,6 +29,16 @@ const images = [{
id: 5,
imagePath: 'images/5.jpg',
thumbPath: 'images/5.jpg'
},
// {
// id: 6,
// imagePath: 'images/6.jpg',
// thumbPath: 'images/6.jpg'
// },
{
id: 7,
imagePath: 'images/7.jpg',
thumbPath: 'images/7.jpg'
}
];

View File

@ -1,4 +1,4 @@
import SiteLogo from "../elements/SiteLogo";
import SiteLogo from "../../elements/SiteLogo";
import './Header.scss';
const Header = () => {

View File

@ -0,0 +1,12 @@
import Header from "./Header";
import './PhotoHeader.scss';
const PhotoHeader = () => {
return(
<div className='photo-header-container'>
<Header />
</div>
);
};
export default PhotoHeader;

View File

@ -0,0 +1,6 @@
.photo-header-container {
background-image: url('../../../public/images/7.jpg');
background-position: center center;
background-size: cover;
height: 100vh;
}