[#1] Added a new full page photo header.
This commit is contained in:
parent
4496406eac
commit
9a245f2d08
BIN
public/images/7.jpg
Normal file
BIN
public/images/7.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 MiB |
@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -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'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import SiteLogo from "../elements/SiteLogo";
|
import SiteLogo from "../../elements/SiteLogo";
|
||||||
import './Header.scss';
|
import './Header.scss';
|
||||||
|
|
||||||
const Header = () => {
|
const Header = () => {
|
||||||
12
src/sections/headers/PhotoHeader.jsx
Normal file
12
src/sections/headers/PhotoHeader.jsx
Normal 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;
|
||||||
6
src/sections/headers/PhotoHeader.scss
Normal file
6
src/sections/headers/PhotoHeader.scss
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.photo-header-container {
|
||||||
|
background-image: url('../../../public/images/7.jpg');
|
||||||
|
background-position: center center;
|
||||||
|
background-size: cover;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user