forked from metaplex-foundation/metaplex-program-library
-
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 metaplex-foundation#7 from Monadical-SAS/jose-dev
Work in progress - Jose's branch - Keep out - Beware of dogs ⛔
- Loading branch information
Showing
17 changed files
with
283 additions
and
278 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
REACT_APP_STORE_OWNER_ADDRESS_ADDRESS="38ZBERLq5Mshh8sUyAC4WbEzUUbG2JdZ2wmXE119kb6t" | ||
REACT_APP_STORE_OWNER_ADDRESS_ADDRESS=Dug3AQkaaxKhXNMuZ5SBdGSNf1grQx97pS3n4VzztF4N |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,30 +0,0 @@ | ||
@import "_colors"; | ||
|
||
#current-banner { | ||
width: 100%; | ||
height: 520px; | ||
background-color: @black-100; | ||
background-position: top right; | ||
background-size: auto 100%; | ||
background-repeat: no-repeat; | ||
//border: 1px solid white; | ||
position: relative; | ||
border-radius: 12px; | ||
|
||
#gradient-banner { | ||
position: absolute; | ||
height: 100%; | ||
width: 462px; | ||
right: 462px; | ||
top: 0; | ||
background: linear-gradient(270deg, rgba(18, 18, 18, 0) 0%, #121212 100%); | ||
|
||
} | ||
#banner-inner { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
} | ||
} | ||
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,12 +1,36 @@ | ||
import React from 'react'; | ||
import { useEffect } from 'react'; | ||
|
||
import useWindowDimensions from '../../utils/layout'; | ||
|
||
import './index.less'; | ||
|
||
export const Banner = (props: any) => { | ||
export const Banner = (props: { | ||
src: string, | ||
children?: React.ReactNode, | ||
}) => { | ||
const { width } = useWindowDimensions(); | ||
|
||
useEffect(() => { | ||
const mainBg = document.getElementById("main-bg"); | ||
if (mainBg) mainBg.style.backgroundImage = `url(${props.src})`; | ||
}, [props.src]) | ||
return ( | ||
<div id={'current-banner'} style={{ backgroundImage: `url(${props.src})` }}> | ||
<span id={'gradient-banner'}></span> | ||
<div id="banner-inner">{props.children}</div> | ||
<div style={{ | ||
width: "100%", | ||
height: Math.min(width, 1440) * 520 / 1344, // banner size | ||
borderRadius: 10, | ||
position: "relative", | ||
}}> | ||
<img src={props.src} width="100%" style={{ | ||
position: "absolute", | ||
}}/> | ||
<div style={{ | ||
position: "relative", | ||
height: "inherit", | ||
}}> | ||
{props.children} | ||
</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
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.