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

update: dvpnnft ui #94

Merged
merged 1 commit into from
Aug 21, 2024
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"petra-plugin-wallet-adapter": "^0.3.0",
"qrcode.react": "^3.1.0",
"react": "18.2.0",
"react-device-detect": "^2.2.3",
"react-dom": "18.2.0",
"react-google-recaptcha": "^2.1.0",
"react-icons": "^4.7.1",
Expand Down
50 changes: 50 additions & 0 deletions pages/dvpnnft.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import Footer from "../components/Footer";
import {BrowserView, MobileView} from 'react-device-detect';

const BaliDVPNNFTPage = () => {
const [walletAddress, setWalletAddress] = useState('');
Expand All @@ -15,6 +16,7 @@ const BaliDVPNNFTPage = () => {

return (
<>
<MobileView>
<div className="flex flex-col justify-center items-center h-screen mt-10 bg-black p-4">
<div className="text-center text-white mb-10">
<h2 className="text-2xl ">Mint Your FREE Bali ÐVPN NFT</h2>
Expand All @@ -40,6 +42,54 @@ const BaliDVPNNFTPage = () => {
<img src="/bali-dvpn-nft.jpeg" alt="Erebrus DVPN" className="rounded-lg" />
</div>
</div>
</MobileView>
<BrowserView>
<div className='mx-20 mt-10'>
<h1 className="text-5xl text-white mb-3 text-left">
Mint Your FREE Bali DVPN NFT
</h1>
</div>
<div className="min-h-screen flex items-center justify-center mx-20">
<div className="flex w-full h-full">
<div className="flex-1">
<img
src="/bali-dvpn-nft.jpeg"
alt="Erebrus DVPN"
className="w-full h-full object-cover"
/>
</div>

<div className="flex-1 bg-[#4D9FCB] flex flex-col items-center pt-20 p-6">
<h2 className="text-6xl text-white mb-20 text-center">
Secure, Private, Exclusive
</h2>
<form>
<p className="text-black text-3xl mb-16">
Enter your wallet address and click GO
</p>
<div className=' text-center mb-10 '>
<input
type="text"
value={walletAddress}
onChange={(e) => setWalletAddress(e.target.value)}
placeholder="wallet address"
className="w-2/3 p-2 rounded text-2xl text-center mb-4"
/>
</div>
<div className='text-center '>
<button
type="submit"
className=" bg-[#1C126C] text-3xl text-white px-6 py-3 rounded-[40px] font-semibold hover:bg-indigo-600 transition duration-300"
>
GO
</button>
</div>
</form>
</div>
</div>
</div>

</BrowserView>
<Footer/>
</>
);
Expand Down