[#1] Added a new full page photo header.

This commit is contained in:
Justin Walrath 2022-05-30 14:23:28 -04:00
parent 4496406eac
commit 9a245f2d08
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 "@fontsource/open-sans";
import './App.scss'; import './App.scss';
import Portfolio from "./sections/Portfolio"; import Portfolio from "./sections/Portfolio";
import Header from "./sections/Header"; import PhotoHeader from "./sections/headers/PhotoHeader";
const App = () => { const App = () => {
return ( return (
<div> <div>
<Header /> <PhotoHeader />
<Portfolio /> <Portfolio />
</div> </div>
); );

View File

@ -29,6 +29,16 @@ const images = [{
id: 5, id: 5,
imagePath: 'images/5.jpg', imagePath: 'images/5.jpg',
thumbPath: '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'; import './Header.scss';
const Header = () => { 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;
}