haraberget commited on
Commit
cc29ad9
·
verified ·
1 Parent(s): 0b54a96

clear all, make a cool shader with 3d graphics

Browse files
Files changed (1) hide show
  1. 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/vanta@latest/dist/vanta.waves.min.js"></script>
12
- <style>
 
13
  .bg-dash {
14
- background: linear-gradient(135deg, #008CE7 0%, #0E007C 100%);
15
  }
16
  .wallet-card {
17
- backdrop-filter: blur(10px);
18
- background: rgba(255, 255, 255, 0.1);
19
- border: 1px solid rgba(255, 255, 255, 0.2);
 
 
 
 
 
 
20
  }
21
  .download-btn:hover {
22
- transform: translateY(-2px);
23
- box-shadow: 0 10px 20px rgba(0, 140, 231, 0.3);
 
24
  }
25
  input:focus {
26
- box-shadow: 0 0 0 3px rgba(0, 140, 231, 0.3);
 
 
27
  }
28
- </style>
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
- <div class="max-w-md mx-auto text-center mb-12">
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.WAVES({
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
- shininess: 35.00,
115
- waveHeight: 15.00,
116
- waveSpeed: 0.85,
117
- zoom: 0.75
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';