-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
146 additions
and
18 deletions.
There are no files selected for viewing
Binary file not shown.
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,114 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { Link } from "react-router-dom"; | ||
import heroBcg from "../assets/hero-bcg.jpg"; | ||
import Fade from "react-reveal/Fade"; | ||
import test from "../assets/video/test.mp4"; | ||
const Hero1 = () => { | ||
return ( | ||
<Wrapper className="section-center"> | ||
<video autoPlay loop muted playsInline id="myVideo"> | ||
<source src={test} type="video/mp4" /> | ||
</video> | ||
<Fade left> | ||
<article className="content"> | ||
<h1> | ||
Thanh Thanh Phương | ||
</h1> | ||
<p> | ||
một trong số nhà phân phối số 1 Khu vực miền Nam chuyên | ||
phân phối và cung cấp vlxd & trang trí nội, ngoại thất, thiết bị vệ | ||
sinh cho các công trình xây dựng lớn và những công trình dân dụng. | ||
|
||
|
||
Thanh Thanh Phương chuyên phân phối và cung cấp các loại gạch ốp | ||
tường cùng sơn tường không những mang lại không gian sạch sẽ mà còn | ||
toát lên sự sang trọng, hiện đại trong từng góc cạnh. | ||
</p> | ||
</article> | ||
</Fade> | ||
</Wrapper> | ||
); | ||
}; | ||
|
||
const Wrapper = styled.section` | ||
min-height: 60vh; | ||
display: grid; | ||
align-items:center; | ||
place-items: center; | ||
.img-container { | ||
display: none; | ||
} | ||
#myVideo { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: calc(100vh - 5rem); | ||
max-width: val(--max-width: 1800px;); | ||
z-index: -100; | ||
} | ||
footer { | ||
margin-top: 1rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
footer p { | ||
margin-bottom: 0; | ||
font-weight: 400; | ||
text-align: center; | ||
color: var(--clr-primary-5); | ||
letter-spacing: var(--spacing); | ||
font-size: 2rem; | ||
} | ||
.content { | ||
text-align: center; | ||
} | ||
p { | ||
line-height: 2; | ||
max-width: 45em; | ||
margin-bottom: 2rem; | ||
color: var(--clr-grey-1); | ||
font-size: 1rem; | ||
} | ||
@media (min-width: 992px) { | ||
height: calc(100vh - 5rem); | ||
grid-template-columns: 1fr; | ||
h1 { | ||
margin-bottom: 2rem; | ||
} | ||
p { | ||
font-size: 1.25rem; | ||
} | ||
mark { | ||
background-color: var(--clr-grey-9); | ||
} | ||
.hero-btn { | ||
padding: 0.75rem 1.5rem; | ||
font-size: 1rem; | ||
} | ||
.img-container { | ||
display: block; | ||
position: relative; | ||
} | ||
.main-img { | ||
width: 100%; | ||
position: relative; | ||
display: block; | ||
object-fit: cover; | ||
transition: var(--transition); | ||
overflow: hidden; | ||
} | ||
.main-img:hover { | ||
transform: scale(1.05); | ||
} | ||
} | ||
`; | ||
|
||
export default Hero1; |
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
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
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