Skip to content

Commit

Permalink
rm upi button due to issues, add btn to download qr
Browse files Browse the repository at this point in the history
  • Loading branch information
sabzdotpy committed Jan 2, 2025
1 parent 64abd61 commit 63ac44d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
30 changes: 30 additions & 0 deletions src/styles/EventRegister.scss
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,27 @@ strong {
}
}

.downloadQRBtn {
border: 1px solid black;
padding: .5rem 1.5rem;
border-radius: .5rem;
scale: .8;
margin: .5rem auto;
cursor: pointer;
transition: all .3s ease;

display: flex;
justify-content: center;
align-items: center;
gap: .5rem;

&:hover {
border-color: green;
background-color: green;
color: white;
}
}

a.upiPayButton {
font-family: "Outfit";
background-color: rgba(white, .8);
Expand Down Expand Up @@ -810,6 +831,15 @@ strong {
}

}

.upiPayInfo {
font-size: .8rem;
margin-top: .5rem;
display: flex;
justify-content: center;
align-items: center;
gap: .25rem;
}
}
}
}
Expand Down
22 changes: 19 additions & 3 deletions src/views/EventRegister.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { AiOutlineLoading, AiOutlineCheck } from "react-icons/ai";
import { BiSolidPhoneCall, BiLinkExternal } from "react-icons/bi";
import { CiCircleInfo, CiWarning } from "react-icons/ci";
import { PiSparkleThin } from "react-icons/pi";
import { FiLoader } from "react-icons/fi";
import { FiLoader, FiInfo, FiDownload } from "react-icons/fi";

import { TfiMoney } from "react-icons/tfi";
import upiQR from "./HardcodedEventPages/Prajnotsavah/digital_dreams_qrcode.jpeg"
Expand Down Expand Up @@ -805,9 +805,25 @@ export default function EventRegister() {
</div>
<div className = "row">
<label for="num">Payment *</label>
<p style={{marginLeft: "35%"}}>Registration fee: <b>Rs. 200/-</b></p>
<img src={upiQR} alt="Upi scanner" style={{ width: '40%' , marginLeft: "30%"}} />
<p style={{marginLeft: "35%"}}>Registration fee 200/-</p>
<a className="upiPayButton" href={`upi://pay?pa=${digitalDreamsUpiId}&pn=GFGKARE&cu=INR&am=200`}>PAY WITH ANY <img src={upiImage} alt="" /> APP</a>
<span
className="downloadQRBtn"
onClick={() => {
var link = document.createElement('a');
link.href = upiQR;
link.download = 'GFGKARE_ALGO25_QR.jpeg';
document.body.appendChild(link);
link.click();
}}
>
<FiDownload />
Download QR
</span>
{/* <a className="upiPayButton" href={`upi://pay?pa=${digitalDreamsUpiId}&am=1`}>PAY WITH ANY <img src={upiImage} alt="" /> APP</a> */}
<div className="upiPayInfo">
<FiInfo /> Scan the QR or click the button to download it, then scan with your UPI app.
</div>
</div>
<div className="row">
<label htmlFor="">Upload your transaction Screenshot *</label>
Expand Down

0 comments on commit 63ac44d

Please sign in to comment.