Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove images and add ipfs links #30

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed bgImage.jpg
Binary file not shown.
Binary file removed bgNoSnow.jpg
Binary file not shown.
Binary file removed cardInsideLeft.png
Binary file not shown.
Binary file removed cardRightSide.png
Binary file not shown.
Binary file removed favicon.ico
Binary file not shown.
27 changes: 23 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<head>
<title>Flowty Wrapped 2023</title>
<link rel="icon" href="./favicon.ico" />
<link rel="icon" href="https://flowty.mypinata.cloud/ipfs/QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
Expand Down Expand Up @@ -113,7 +113,6 @@
}

.cart-page-outside {
background-image: url(./wrappedCard.png);
background-size: contain;
width: 100%;
height: 100%;
Expand All @@ -126,7 +125,6 @@
transform: rotateY(-180deg);
border-right: none !important;
background-position: 0px 80px;
background-image: url(./cardInsideLeft.png);
background-size: contain;
background-position: center;
width: 100%;
Expand All @@ -139,7 +137,6 @@
z-index: 1;
border-left: none !important;
background-position: -22px 80px;
background-image: url(./cardRightSide.png);
background-size: contain;
background-position: center;
width: 100%;
Expand Down Expand Up @@ -342,9 +339,31 @@
window.addEventListener("load", async () => {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
let ipfsURL = "https://flowty.mypinata.cloud/ipfs/";

username = urlParams.get("username");
raffleTickets = urlParams.get("raffleTickets");
customProvider = urlParams.get("customIpfsProvider");

if(customProvider) {
ipfsURL = customProvider;
}

let bgNoSnow = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/bgNoSnow.jpg";
const wrappedBg = document.querySelector(".wrapped-div");
wrappedBg.style.backgroundImage = `url(${bgNoSnow})`;

const cardInsideLeft = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/cardInsideLeft.png";
const cartPageInside = document.querySelector(".cart-page-inside");
cartPageInside.style.backgroundImage = `url(${cardInsideLeft})`;

const cardInsideRight = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/cardRightSide.png";
const cartPageBottom = document.querySelector(".cart-page-bottom");
cartPageBottom.style.backgroundImage = `url(${cardInsideRight})`;

const wrappedCard = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/wrappedCard.png";
const cartPageOutside = document.querySelector(".cart-page-outside");
cartPageOutside.style.backgroundImage = `url(${wrappedCard})`;

const usernameTag = document.getElementById("username-tag");
const usernameTag1 = document.getElementById("username-tag-1");
Expand Down
Binary file removed wrappedCard.png
Binary file not shown.
Loading