clear all, make a cool shader with 3d graphics
Browse files- index.html +31 -22
index.html
CHANGED
|
@@ -8,30 +8,40 @@
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
-
<script src="https://cdn.jsdelivr.net/npm/
|
| 12 |
-
<
|
|
|
|
| 13 |
.bg-dash {
|
| 14 |
-
background: linear-gradient(135deg, #
|
| 15 |
}
|
| 16 |
.wallet-card {
|
| 17 |
-
backdrop-filter: blur(
|
| 18 |
-
background: rgba(
|
| 19 |
-
border: 1px solid rgba(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
.download-btn:hover {
|
| 22 |
-
transform: translateY(-
|
| 23 |
-
box-shadow: 0
|
|
|
|
| 24 |
}
|
| 25 |
input:focus {
|
| 26 |
-
box-shadow: 0 0 0
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
-
|
| 29 |
</head>
|
| 30 |
<body class="min-h-screen bg-dash text-white">
|
| 31 |
-
<div id="vanta-bg"></div>
|
| 32 |
-
|
| 33 |
-
<div class="container mx-auto px-4 py-12 relative z-10">
|
| 34 |
-
|
| 35 |
<div class="flex justify-center mb-6">
|
| 36 |
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 37 |
<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="#008CE7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -100,8 +110,8 @@
|
|
| 100 |
</div>
|
| 101 |
|
| 102 |
<script>
|
| 103 |
-
// Initialize Vanta.js background
|
| 104 |
-
VANTA.
|
| 105 |
el: "#vanta-bg",
|
| 106 |
mouseControls: true,
|
| 107 |
touchControls: true,
|
|
@@ -111,13 +121,12 @@
|
|
| 111 |
scale: 1.00,
|
| 112 |
scaleMobile: 1.00,
|
| 113 |
color: 0x008ce7,
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
});
|
| 119 |
-
|
| 120 |
-
// Generate random wallet data
|
| 121 |
function generateWalletData() {
|
| 122 |
const username = document.getElementById('username').value;
|
| 123 |
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
|
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>
|
| 12 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 13 |
+
<style>
|
| 14 |
.bg-dash {
|
| 15 |
+
background: linear-gradient(135deg, #001233 0%, #00041a 100%);
|
| 16 |
}
|
| 17 |
.wallet-card {
|
| 18 |
+
backdrop-filter: blur(16px);
|
| 19 |
+
background: rgba(0, 10, 50, 0.4);
|
| 20 |
+
border: 1px solid rgba(0, 140, 231, 0.3);
|
| 21 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
| 22 |
+
transition: all 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
.wallet-card:hover {
|
| 25 |
+
border-color: rgba(0, 140, 231, 0.6);
|
| 26 |
+
box-shadow: 0 8px 32px rgba(0, 140, 231, 0.2);
|
| 27 |
}
|
| 28 |
.download-btn:hover {
|
| 29 |
+
transform: translateY(-4px);
|
| 30 |
+
box-shadow: 0 12px 24px rgba(0, 140, 231, 0.4);
|
| 31 |
+
filter: brightness(1.1);
|
| 32 |
}
|
| 33 |
input:focus {
|
| 34 |
+
box-shadow: 0 0 0 4px rgba(0, 140, 231, 0.4);
|
| 35 |
+
transform: scale(1.02);
|
| 36 |
+
transition: all 0.2s ease;
|
| 37 |
}
|
| 38 |
+
</style>
|
| 39 |
</head>
|
| 40 |
<body class="min-h-screen bg-dash text-white">
|
| 41 |
+
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
|
| 42 |
+
<div class="absolute inset-0 z-0 bg-gradient-to-b from-transparent to-black opacity-30"></div>
|
| 43 |
+
<div class="container mx-auto px-4 py-12 relative z-10 transform-gpu">
|
| 44 |
+
<div class="max-w-md mx-auto text-center mb-12">
|
| 45 |
<div class="flex justify-center mb-6">
|
| 46 |
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 47 |
<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="#008CE7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
|
|
| 110 |
</div>
|
| 111 |
|
| 112 |
<script>
|
| 113 |
+
// Initialize Vanta.js 3D globe background
|
| 114 |
+
VANTA.GLOBE({
|
| 115 |
el: "#vanta-bg",
|
| 116 |
mouseControls: true,
|
| 117 |
touchControls: true,
|
|
|
|
| 121 |
scale: 1.00,
|
| 122 |
scaleMobile: 1.00,
|
| 123 |
color: 0x008ce7,
|
| 124 |
+
backgroundColor: 0x0a0a2a,
|
| 125 |
+
size: 1.00,
|
| 126 |
+
rings: 12,
|
| 127 |
+
points: 12.00
|
| 128 |
});
|
| 129 |
+
// Generate random wallet data
|
|
|
|
| 130 |
function generateWalletData() {
|
| 131 |
const username = document.getElementById('username').value;
|
| 132 |
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|