-
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.
Merge pull request #7 from oliv3340:feat-add-herosection
feat: add hersection and video
- Loading branch information
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
import { useTranslations } from "next-intl"; | ||
import React from "react"; | ||
|
||
export default function HeroSection() { | ||
const t = useTranslations("Hero") | ||
return ( | ||
<> | ||
<div className="min-w-screen h-620 md:h-820 text-white"> | ||
<div className="w-full absolute -z-40"> | ||
<video | ||
autoPlay={true} playsInline={true} muted={true} | ||
className="object-cover brightness-75 h-620 md:h-820" | ||
src="videos/video.mp4" width="100%" height="100%" | ||
/> | ||
</div> | ||
<div className="flex flex-col justify-center items-center h-full align-middle z-40"> | ||
<div className="text-5xl md:text-7xl font-title pb-10 md:pb-20 justify-evenly text-center">Olivier Graciannette</div> | ||
<div className="text-xl md:text-4xl uppercase text-center max-w-60 md:max-w-full">{t('text')}</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
|
@@ -29,6 +29,8 @@ const config: Config = { | |
}, | ||
height: { | ||
"hrHeight": "1px", | ||
"620": "620px", | ||
"820": "820px", | ||
}, | ||
}, | ||
}, | ||
|