Spaces:
Running
Running
a user centric ai backed crypto insurance app
Browse files- README.md +8 -5
- components/footer.js +144 -0
- components/navbar.js +93 -0
- index.html +114 -19
- script.js +72 -0
- style.css +59 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: CryptoShield AI ️
|
| 3 |
+
colorFrom: yellow
|
| 4 |
+
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
components/footer.js
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
background-color: #1e293b;
|
| 9 |
+
color: white;
|
| 10 |
+
padding: 3rem 2rem;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
.footer-container {
|
| 14 |
+
max-width: 1280px;
|
| 15 |
+
margin: 0 auto;
|
| 16 |
+
display: grid;
|
| 17 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 18 |
+
gap: 2rem;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.footer-logo {
|
| 22 |
+
display: flex;
|
| 23 |
+
align-items: center;
|
| 24 |
+
font-weight: 700;
|
| 25 |
+
font-size: 1.25rem;
|
| 26 |
+
margin-bottom: 1rem;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.footer-logo-icon {
|
| 30 |
+
margin-right: 0.5rem;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.footer-description {
|
| 34 |
+
color: #94a3b8;
|
| 35 |
+
margin-bottom: 1.5rem;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.social-links {
|
| 39 |
+
display: flex;
|
| 40 |
+
gap: 1rem;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.social-links a {
|
| 44 |
+
color: #94a3b8;
|
| 45 |
+
transition: color 0.2s;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.social-links a:hover {
|
| 49 |
+
color: white;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.footer-heading {
|
| 53 |
+
font-weight: 600;
|
| 54 |
+
margin-bottom: 1rem;
|
| 55 |
+
font-size: 1.125rem;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.footer-links {
|
| 59 |
+
display: flex;
|
| 60 |
+
flex-direction: column;
|
| 61 |
+
gap: 0.75rem;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.footer-links a {
|
| 65 |
+
color: #94a3b8;
|
| 66 |
+
text-decoration: none;
|
| 67 |
+
transition: color 0.2s;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.footer-links a:hover {
|
| 71 |
+
color: white;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.copyright {
|
| 75 |
+
margin-top: 3rem;
|
| 76 |
+
padding-top: 2rem;
|
| 77 |
+
border-top: 1px solid #334155;
|
| 78 |
+
text-align: center;
|
| 79 |
+
color: #94a3b8;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
@media (max-width: 768px) {
|
| 83 |
+
.footer-container {
|
| 84 |
+
grid-template-columns: 1fr;
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
</style>
|
| 88 |
+
|
| 89 |
+
<div class="footer-container">
|
| 90 |
+
<div>
|
| 91 |
+
<div class="footer-logo">
|
| 92 |
+
<i data-feather="shield" class="footer-logo-icon"></i>
|
| 93 |
+
CryptoShield AI
|
| 94 |
+
</div>
|
| 95 |
+
<p class="footer-description">
|
| 96 |
+
AI-powered protection for your cryptocurrency assets against hacks, scams, and volatility.
|
| 97 |
+
</p>
|
| 98 |
+
<div class="social-links">
|
| 99 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 100 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 101 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 102 |
+
<a href="#"><i data-feather="discord"></i></a>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<div>
|
| 107 |
+
<h3 class="footer-heading">Product</h3>
|
| 108 |
+
<div class="footer-links">
|
| 109 |
+
<a href="/features.html">Features</a>
|
| 110 |
+
<a href="/pricing.html">Pricing</a>
|
| 111 |
+
<a href="/how-it-works.html">How It Works</a>
|
| 112 |
+
<a href="/status.html">Status</a>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<div>
|
| 117 |
+
<h3 class="footer-heading">Company</h3>
|
| 118 |
+
<div class="footer-links">
|
| 119 |
+
<a href="/about.html">About</a>
|
| 120 |
+
<a href="/careers.html">Careers</a>
|
| 121 |
+
<a href="/blog.html">Blog</a>
|
| 122 |
+
<a href="/press.html">Press</a>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<div>
|
| 127 |
+
<h3 class="footer-heading">Resources</h3>
|
| 128 |
+
<div class="footer-links">
|
| 129 |
+
<a href="/help.html">Help Center</a>
|
| 130 |
+
<a href="/security.html">Security</a>
|
| 131 |
+
<a href="/privacy.html">Privacy</a>
|
| 132 |
+
<a href="/terms.html">Terms</a>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="copyright">
|
| 138 |
+
© ${new Date().getFullYear()} CryptoShield AI. All rights reserved.
|
| 139 |
+
</div>
|
| 140 |
+
`;
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
position: sticky;
|
| 10 |
+
top: 0;
|
| 11 |
+
z-index: 50;
|
| 12 |
+
background-color: white;
|
| 13 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
nav {
|
| 17 |
+
display: flex;
|
| 18 |
+
justify-content: space-between;
|
| 19 |
+
align-items: center;
|
| 20 |
+
padding: 1rem 2rem;
|
| 21 |
+
max-width: 1280px;
|
| 22 |
+
margin: 0 auto;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.logo {
|
| 26 |
+
display: flex;
|
| 27 |
+
align-items: center;
|
| 28 |
+
font-weight: 700;
|
| 29 |
+
font-size: 1.25rem;
|
| 30 |
+
color: #4f46e5;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.logo-icon {
|
| 34 |
+
margin-right: 0.5rem;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.nav-links {
|
| 38 |
+
display: flex;
|
| 39 |
+
gap: 2rem;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.nav-links a {
|
| 43 |
+
color: #4b5563;
|
| 44 |
+
font-weight: 500;
|
| 45 |
+
text-decoration: none;
|
| 46 |
+
transition: color 0.2s;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.nav-links a:hover {
|
| 50 |
+
color: #4f46e5;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.mobile-menu-btn {
|
| 54 |
+
display: none;
|
| 55 |
+
background: none;
|
| 56 |
+
border: none;
|
| 57 |
+
cursor: pointer;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
@media (max-width: 768px) {
|
| 61 |
+
.nav-links {
|
| 62 |
+
display: none;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.mobile-menu-btn {
|
| 66 |
+
display: block;
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
</style>
|
| 70 |
+
|
| 71 |
+
<nav>
|
| 72 |
+
<a href="/" class="logo">
|
| 73 |
+
<i data-feather="shield" class="logo-icon"></i>
|
| 74 |
+
CryptoShield AI
|
| 75 |
+
</a>
|
| 76 |
+
|
| 77 |
+
<div class="nav-links">
|
| 78 |
+
<a href="/dashboard.html">Dashboard</a>
|
| 79 |
+
<a href="/how-it-works.html">How It Works</a>
|
| 80 |
+
<a href="/pricing.html">Pricing</a>
|
| 81 |
+
<a href="/about.html">About</a>
|
| 82 |
+
<a href="/login.html" class="text-indigo-600">Login</a>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
<button class="mobile-menu-btn">
|
| 86 |
+
<i data-feather="menu"></i>
|
| 87 |
+
</button>
|
| 88 |
+
</nav>
|
| 89 |
+
`;
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,114 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>CryptoShield AI - AI-Powered Crypto Insurance</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="components/navbar.js"></script>
|
| 12 |
+
<script src="components/footer.js"></script>
|
| 13 |
+
</head>
|
| 14 |
+
<body class="bg-gray-50">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<main class="container mx-auto px-4 py-12">
|
| 18 |
+
<!-- Hero Section -->
|
| 19 |
+
<section class="text-center py-20">
|
| 20 |
+
<h1 class="text-5xl font-bold text-gray-900 mb-6">Protect Your Crypto Assets with AI</h1>
|
| 21 |
+
<p class="text-xl text-gray-600 max-w-2xl mx-auto mb-10">
|
| 22 |
+
CryptoShield AI uses advanced machine learning to detect threats and insure your digital assets against hacks, scams, and volatility.
|
| 23 |
+
</p>
|
| 24 |
+
<div class="flex justify-center gap-4">
|
| 25 |
+
<a href="/dashboard.html" class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-lg transition duration-200">
|
| 26 |
+
Get Protected
|
| 27 |
+
</a>
|
| 28 |
+
<a href="/how-it-works.html" class="bg-white hover:bg-gray-100 text-gray-800 font-bold py-3 px-8 rounded-lg border border-gray-300 transition duration-200">
|
| 29 |
+
Learn More
|
| 30 |
+
</a>
|
| 31 |
+
</div>
|
| 32 |
+
</section>
|
| 33 |
+
|
| 34 |
+
<!-- Features Grid -->
|
| 35 |
+
<section class="py-16">
|
| 36 |
+
<h2 class="text-3xl font-bold text-center mb-16">Why Choose CryptoShield AI</h2>
|
| 37 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 38 |
+
<!-- Feature 1 -->
|
| 39 |
+
<div class="bg-white p-8 rounded-xl shadow-sm hover:shadow-md transition duration-200">
|
| 40 |
+
<div class="w-14 h-14 bg-indigo-100 rounded-lg flex items-center justify-center mb-6">
|
| 41 |
+
<i data-feather="shield" class="text-indigo-600 w-6 h-6"></i>
|
| 42 |
+
</div>
|
| 43 |
+
<h3 class="text-xl font-bold mb-3">AI-Powered Protection</h3>
|
| 44 |
+
<p class="text-gray-600">Our proprietary AI monitors your wallet 24/7 for suspicious activity and potential threats.</p>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<!-- Feature 2 -->
|
| 48 |
+
<div class="bg-white p-8 rounded-xl shadow-sm hover:shadow-md transition duration-200">
|
| 49 |
+
<div class="w-14 h-14 bg-indigo-100 rounded-lg flex items-center justify-center mb-6">
|
| 50 |
+
<i data-feather="dollar-sign" class="text-indigo-600 w-6 h-6"></i>
|
| 51 |
+
</div>
|
| 52 |
+
<h3 class="text-xl font-bold mb-3">Instant Claims</h3>
|
| 53 |
+
<p class="text-gray-600">Get compensated within hours if your assets are compromised, with no lengthy paperwork.</p>
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
<!-- Feature 3 -->
|
| 57 |
+
<div class="bg-white p-8 rounded-xl shadow-sm hover:shadow-md transition duration-200">
|
| 58 |
+
<div class="w-14 h-14 bg-indigo-100 rounded-lg flex items-center justify-center mb-6">
|
| 59 |
+
<i data-feather="trending-up" class="text-indigo-600 w-6 h-6"></i>
|
| 60 |
+
</div>
|
| 61 |
+
<h3 class="text-xl font-bold mb-3">Volatility Coverage</h3>
|
| 62 |
+
<p class="text-gray-600">Protect against sudden market crashes with our innovative price stabilization coverage.</p>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</section>
|
| 66 |
+
|
| 67 |
+
<!-- Testimonials -->
|
| 68 |
+
<section class="py-16 bg-indigo-50 rounded-2xl px-8">
|
| 69 |
+
<h2 class="text-3xl font-bold text-center mb-16">Trusted by Crypto Investors</h2>
|
| 70 |
+
<div class="grid md:grid-cols-2 gap-8 max-w-5xl mx-auto">
|
| 71 |
+
<div class="bg-white p-8 rounded-xl shadow-sm">
|
| 72 |
+
<div class="flex items-center mb-4">
|
| 73 |
+
<img src="http://static.photos/people/200x200/1" alt="User" class="w-12 h-12 rounded-full mr-4">
|
| 74 |
+
<div>
|
| 75 |
+
<h4 class="font-bold">Alex M.</h4>
|
| 76 |
+
<p class="text-gray-500 text-sm">ETH Investor</p>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
<p class="text-gray-600">"When my wallet was compromised, CryptoShield AI detected it immediately and processed my claim within 2 hours. Lifesaver!"</p>
|
| 80 |
+
</div>
|
| 81 |
+
<div class="bg-white p-8 rounded-xl shadow-sm">
|
| 82 |
+
<div class="flex items-center mb-4">
|
| 83 |
+
<img src="http://static.photos/people/200x200/2" alt="User" class="w-12 h-12 rounded-full mr-4">
|
| 84 |
+
<div>
|
| 85 |
+
<h4 class="font-bold">Sarah K.</h4>
|
| 86 |
+
<p class="text-gray-500 text-sm">DeFi User</p>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
<p class="text-gray-600">"The AI alerted me to a suspicious smart contract before I interacted with it. Saved me from what would have been a $50k mistake."</p>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</section>
|
| 93 |
+
|
| 94 |
+
<!-- CTA -->
|
| 95 |
+
<section class="py-20 text-center">
|
| 96 |
+
<h2 class="text-3xl font-bold mb-6">Ready to Secure Your Crypto?</h2>
|
| 97 |
+
<p class="text-xl text-gray-600 max-w-2xl mx-auto mb-10">
|
| 98 |
+
Join thousands of investors who sleep better knowing their assets are protected.
|
| 99 |
+
</p>
|
| 100 |
+
<a href="/signup.html" class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-lg transition duration-200 inline-block">
|
| 101 |
+
Get Started - It's Free
|
| 102 |
+
</a>
|
| 103 |
+
</section>
|
| 104 |
+
</main>
|
| 105 |
+
|
| 106 |
+
<custom-footer></custom-footer>
|
| 107 |
+
|
| 108 |
+
<script>
|
| 109 |
+
feather.replace();
|
| 110 |
+
</script>
|
| 111 |
+
<script src="script.js"></script>
|
| 112 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 113 |
+
</body>
|
| 114 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Initialize tooltips
|
| 3 |
+
const tooltipTriggers = document.querySelectorAll('[data-tooltip]');
|
| 4 |
+
|
| 5 |
+
tooltipTriggers.forEach(trigger => {
|
| 6 |
+
const tooltip = document.createElement('div');
|
| 7 |
+
tooltip.className = 'hidden absolute z-50 w-max max-w-xs px-3 py-2 text-sm text-white bg-gray-800 rounded-md shadow-lg';
|
| 8 |
+
tooltip.textContent = trigger.getAttribute('data-tooltip');
|
| 9 |
+
|
| 10 |
+
trigger.parentNode.appendChild(tooltip);
|
| 11 |
+
trigger.parentNode.style.position = 'relative';
|
| 12 |
+
|
| 13 |
+
trigger.addEventListener('mouseenter', () => {
|
| 14 |
+
tooltip.classList.remove('hidden');
|
| 15 |
+
});
|
| 16 |
+
|
| 17 |
+
trigger.addEventListener('mouseleave', () => {
|
| 18 |
+
tooltip.classList.add('hidden');
|
| 19 |
+
});
|
| 20 |
+
});
|
| 21 |
+
|
| 22 |
+
// Smooth scrolling for anchor links
|
| 23 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 24 |
+
anchor.addEventListener('click', function (e) {
|
| 25 |
+
e.preventDefault();
|
| 26 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 27 |
+
behavior: 'smooth'
|
| 28 |
+
});
|
| 29 |
+
});
|
| 30 |
+
});
|
| 31 |
+
|
| 32 |
+
// Animate elements when they come into view
|
| 33 |
+
const animateOnScroll = () => {
|
| 34 |
+
const elements = document.querySelectorAll('.fade-in, .slide-up');
|
| 35 |
+
|
| 36 |
+
elements.forEach(element => {
|
| 37 |
+
const elementPosition = element.getBoundingClientRect().top;
|
| 38 |
+
const windowHeight = window.innerHeight;
|
| 39 |
+
|
| 40 |
+
if (elementPosition < windowHeight - 100) {
|
| 41 |
+
element.style.opacity = '1';
|
| 42 |
+
element.style.transform = 'translateY(0)';
|
| 43 |
+
}
|
| 44 |
+
});
|
| 45 |
+
};
|
| 46 |
+
|
| 47 |
+
window.addEventListener('scroll', animateOnScroll);
|
| 48 |
+
animateOnScroll(); // Run once on load
|
| 49 |
+
});
|
| 50 |
+
|
| 51 |
+
// API integration for crypto prices
|
| 52 |
+
async function fetchCryptoPrices() {
|
| 53 |
+
try {
|
| 54 |
+
const response = await fetch('https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd');
|
| 55 |
+
const data = await response.json();
|
| 56 |
+
|
| 57 |
+
if (data.bitcoin && data.ethereum) {
|
| 58 |
+
document.querySelectorAll('.btc-price').forEach(el => {
|
| 59 |
+
el.textContent = `$${data.bitcoin.usd.toLocaleString()}`;
|
| 60 |
+
});
|
| 61 |
+
|
| 62 |
+
document.querySelectorAll('.eth-price').forEach(el => {
|
| 63 |
+
el.textContent = `$${data.ethereum.usd.toLocaleString()}`;
|
| 64 |
+
});
|
| 65 |
+
}
|
| 66 |
+
} catch (error) {
|
| 67 |
+
console.error('Error fetching crypto prices:', error);
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
// Call the function when the page loads
|
| 72 |
+
window.addEventListener('load', fetchCryptoPrices);
|
style.css
CHANGED
|
@@ -1,28 +1,69 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
.
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Inter', sans-serif;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Custom scrollbar */
|
| 8 |
+
::-webkit-scrollbar {
|
| 9 |
+
width: 8px;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
::-webkit-scrollbar-track {
|
| 13 |
+
background: #f1f1f1;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
::-webkit-scrollbar-thumb {
|
| 17 |
+
background: #888;
|
| 18 |
+
border-radius: 4px;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
::-webkit-scrollbar-thumb:hover {
|
| 22 |
+
background: #555;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
/* Animation classes */
|
| 26 |
+
.fade-in {
|
| 27 |
+
animation: fadeIn 0.5s ease-in;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
@keyframes fadeIn {
|
| 31 |
+
from { opacity: 0; }
|
| 32 |
+
to { opacity: 1; }
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.slide-up {
|
| 36 |
+
animation: slideUp 0.5s ease-out;
|
| 37 |
}
|
| 38 |
|
| 39 |
+
@keyframes slideUp {
|
| 40 |
+
from {
|
| 41 |
+
opacity: 0;
|
| 42 |
+
transform: translateY(20px);
|
| 43 |
+
}
|
| 44 |
+
to {
|
| 45 |
+
opacity: 1;
|
| 46 |
+
transform: translateY(0);
|
| 47 |
+
}
|
| 48 |
}
|
| 49 |
|
| 50 |
+
/* Custom button styles */
|
| 51 |
+
.btn-primary {
|
| 52 |
+
transition: all 0.3s ease;
|
| 53 |
+
box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
|
|
|
|
| 54 |
}
|
| 55 |
|
| 56 |
+
.btn-primary:hover {
|
| 57 |
+
transform: translateY(-2px);
|
| 58 |
+
box-shadow: 0 6px 8px rgba(79, 70, 229, 0.15);
|
|
|
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
+
/* Card hover effect */
|
| 62 |
+
.card-hover {
|
| 63 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 64 |
}
|
| 65 |
+
|
| 66 |
+
.card-hover:hover {
|
| 67 |
+
transform: translateY(-5px);
|
| 68 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
| 69 |
+
}
|