-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.js
More file actions
36 lines (32 loc) · 876 Bytes
/
Home.js
File metadata and controls
36 lines (32 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import styled from 'styled-components';
import { Parallax } from 'react-parallax';
import { Element } from 'react-scroll';
import backgroundImage from '../assets/images/background.jpg';
const SectionWrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
color: white;
`;
const HomeContent = styled.div`
background-color: rgba(0, 0, 0, 0.5);
padding: 2rem;
border-radius: 10px;
`;
const Home = () => (
<Element name="home">
<Parallax bgImage={backgroundImage} strength={300}>
<SectionWrapper>
<HomeContent>
<h1>Welcome to Brilliant Interiors</h1>
<p>Transforming spaces with elegance and style.</p>
</HomeContent>
</SectionWrapper>
</Parallax>
</Element>
);
export default Home;