|
|
@ -7,12 +7,22 @@ import Chevron from './chevron.png';
|
|
|
|
|
|
|
|
|
|
|
|
const startToken = 1;
|
|
|
|
const startToken = 1;
|
|
|
|
const endToken = 5555;
|
|
|
|
const endToken = 5555;
|
|
|
|
const url = "https://files.lzahq.tech/schizoposters/images/";
|
|
|
|
const url = "https://files.lzahq.tech/schizoposters/";
|
|
|
|
|
|
|
|
|
|
|
|
function getRandomToken() {
|
|
|
|
function getRandomToken() {
|
|
|
|
return Math.floor(Math.random() * (endToken - startToken) + startToken)
|
|
|
|
return Math.floor(Math.random() * (endToken - startToken) + startToken)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Metadata(token) {
|
|
|
|
|
|
|
|
fetch(url + 'metadata/' + token + '.json')
|
|
|
|
|
|
|
|
.then((res) => res.json())
|
|
|
|
|
|
|
|
.then((data) => console.log(data))
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<>
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
function App() {
|
|
|
|
const [token, setToken] = useState(0);
|
|
|
|
const [token, setToken] = useState(0);
|
|
|
|
if (token === 0) {
|
|
|
|
if (token === 0) {
|
|
|
@ -24,9 +34,10 @@ function App() {
|
|
|
|
<div className="row">
|
|
|
|
<div className="row">
|
|
|
|
<span className="schizoImage">
|
|
|
|
<span className="schizoImage">
|
|
|
|
<h2>SCHIZOPOSTER #{token}</h2>
|
|
|
|
<h2>SCHIZOPOSTER #{token}</h2>
|
|
|
|
<a href={url + "schizoposter_" + token + ".png"} target="_blank" rel="noopener noreferrer">
|
|
|
|
<a href={url + "images/schizoposter_" + token + ".png"} target="_blank" rel="noopener noreferrer">
|
|
|
|
<img src={url + "schizoposter_" + token + ".resized.png"} alt={"SCHIZOPOSTER " + token} />
|
|
|
|
<img src={url + "images/schizoposter_" + token + ".resized.png"} alt={"SCHIZOPOSTER " + token} />
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<Metadata token={token} />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="row">
|
|
|
|
<div className="row">
|
|
|
|