This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
31787f7
commit c5e4fdb
Showing
13 changed files
with
162 additions
and
89 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
import React from 'react'; | ||
import React, { useContext } from 'react'; | ||
import './HeroSection.scss'; | ||
import { useHistory } from 'react-router-dom'; | ||
import FloatingNFTsAnimation from './animations/FloatingNFTsAnimation'; | ||
import EndlessWaveAnimation from './animations/EndlessWaveAnimation'; | ||
import AppContext from '../../../ContextAPI'; | ||
|
||
const HeroSection = React.forwardRef((props, ref) => ( | ||
<div className="lobby--lobsters--hero--section"> | ||
<div className="wave--img"> | ||
<EndlessWaveAnimation /> | ||
</div> | ||
<div className="hero--img"> | ||
<FloatingNFTsAnimation /> | ||
</div> | ||
<div className="lobby--lobsters--hero--section--container"> | ||
<div className="left--section"> | ||
<h1>Lobby Lobsters</h1> | ||
<p>They wear suits, so we don't have to.</p> | ||
<button type="button" onClick={() => ref.current.scrollIntoView()}> | ||
Mint Lobby Lobster | ||
</button> | ||
const HeroSection = React.forwardRef((props, ref) => { | ||
const history = useHistory(); | ||
const { navigateToMyNFTsPage, lobstersFilter } = useContext(AppContext); | ||
|
||
return ( | ||
<div className="lobby--lobsters--hero--section"> | ||
<div className="wave--img"> | ||
<EndlessWaveAnimation /> | ||
</div> | ||
<div className="hero--img"> | ||
<FloatingNFTsAnimation /> | ||
</div> | ||
<div className="lobby--lobsters--hero--section--container"> | ||
<div className="left--section"> | ||
<h1>Lobby Lobsters</h1> | ||
<p>They wear suits, so we don't have to.</p> | ||
<button | ||
type="button" | ||
onClick={() => { | ||
navigateToMyNFTsPage(lobstersFilter); | ||
}} | ||
> | ||
My Lobby Lobsters | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
)); | ||
); | ||
}); | ||
|
||
export default HeroSection; |
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
Oops, something went wrong.