انشى لي تطبيق الهيكل خرافي html css java
Browse files- README.md +8 -5
- components/footer.js +77 -0
- components/navbar.js +58 -0
- docs.html +73 -0
- features.html +72 -0
- index.html +18 -18
- script.js +43 -0
- style.css +95 -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: CodeGenius Wizardry Wand 🪄
|
| 3 |
+
colorFrom: blue
|
| 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,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background: #2d3748;
|
| 8 |
+
color: white;
|
| 9 |
+
padding: 2rem;
|
| 10 |
+
text-align: center;
|
| 11 |
+
margin-top: 3rem;
|
| 12 |
+
}
|
| 13 |
+
.footer-content {
|
| 14 |
+
max-width: 1200px;
|
| 15 |
+
margin: 0 auto;
|
| 16 |
+
display: grid;
|
| 17 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 18 |
+
gap: 2rem;
|
| 19 |
+
}
|
| 20 |
+
.footer-section h3 {
|
| 21 |
+
font-size: 1.2rem;
|
| 22 |
+
margin-bottom: 1rem;
|
| 23 |
+
color: #a0aec0;
|
| 24 |
+
}
|
| 25 |
+
.footer-section ul {
|
| 26 |
+
list-style: none;
|
| 27 |
+
padding: 0;
|
| 28 |
+
}
|
| 29 |
+
.footer-section li {
|
| 30 |
+
margin: 0.5rem 0;
|
| 31 |
+
}
|
| 32 |
+
.footer-section a {
|
| 33 |
+
color: #cbd5e0;
|
| 34 |
+
text-decoration: none;
|
| 35 |
+
transition: color 0.3s;
|
| 36 |
+
}
|
| 37 |
+
.footer-section a:hover {
|
| 38 |
+
color: white;
|
| 39 |
+
}
|
| 40 |
+
.copyright {
|
| 41 |
+
margin-top: 2rem;
|
| 42 |
+
padding-top: 1rem;
|
| 43 |
+
border-top: 1px solid #4a5568;
|
| 44 |
+
color: #a0aec0;
|
| 45 |
+
}
|
| 46 |
+
</style>
|
| 47 |
+
<footer>
|
| 48 |
+
<div class="footer-content">
|
| 49 |
+
<div class="footer-section">
|
| 50 |
+
<h3>CodeGenius</h3>
|
| 51 |
+
<p>Magical web development at your fingertips</p>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="footer-section">
|
| 54 |
+
<h3>Quick Links</h3>
|
| 55 |
+
<ul>
|
| 56 |
+
<li><a href="/">Home</a></li>
|
| 57 |
+
<li><a href="/features.html">Features</a></li>
|
| 58 |
+
<li><a href="/docs.html">Documentation</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="footer-section">
|
| 62 |
+
<h3>Contact</h3>
|
| 63 |
+
<ul>
|
| 64 |
+
<li><a href="mailto:hello@codegenius.dev">Email Us</a></li>
|
| 65 |
+
<li><a href="https://twitter.com/codegenius">Twitter</a></li>
|
| 66 |
+
<li><a href="https://github.com/codegenius">GitHub</a></li>
|
| 67 |
+
</ul>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="copyright">
|
| 71 |
+
© ${new Date().getFullYear()} CodeGenius Wizardry. All rights reserved.
|
| 72 |
+
</div>
|
| 73 |
+
</footer>
|
| 74 |
+
`;
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
nav {
|
| 7 |
+
background: linear-gradient(135deg, #6e8efb, #a777e3);
|
| 8 |
+
padding: 1rem 2rem;
|
| 9 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 10 |
+
position: fixed;
|
| 11 |
+
top: 0;
|
| 12 |
+
left: 0;
|
| 13 |
+
right: 0;
|
| 14 |
+
z-index: 1000;
|
| 15 |
+
}
|
| 16 |
+
.nav-container {
|
| 17 |
+
max-width: 1200px;
|
| 18 |
+
margin: 0 auto;
|
| 19 |
+
display: flex;
|
| 20 |
+
justify-content: space-between;
|
| 21 |
+
align-items: center;
|
| 22 |
+
}
|
| 23 |
+
.logo {
|
| 24 |
+
font-size: 1.5rem;
|
| 25 |
+
font-weight: bold;
|
| 26 |
+
color: white;
|
| 27 |
+
text-decoration: none;
|
| 28 |
+
}
|
| 29 |
+
.nav-links {
|
| 30 |
+
display: flex;
|
| 31 |
+
gap: 2rem;
|
| 32 |
+
}
|
| 33 |
+
.nav-links a {
|
| 34 |
+
color: white;
|
| 35 |
+
text-decoration: none;
|
| 36 |
+
font-weight: 500;
|
| 37 |
+
transition: all 0.3s ease;
|
| 38 |
+
}
|
| 39 |
+
.nav-links a:hover {
|
| 40 |
+
color: #f0f0f0;
|
| 41 |
+
transform: translateY(-2px);
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
<nav>
|
| 45 |
+
<div class="nav-container">
|
| 46 |
+
<a href="/" class="logo">CodeGenius</a>
|
| 47 |
+
<div class="nav-links">
|
| 48 |
+
<a href="/">Home</a>
|
| 49 |
+
<a href="/features.html">Features</a>
|
| 50 |
+
<a href="/docs.html">Docs</a>
|
| 51 |
+
<a href="/contact.html">Contact</a>
|
| 52 |
+
</div>
|
| 53 |
+
</div>
|
| 54 |
+
</nav>
|
| 55 |
+
`;
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
customElements.define('custom-navbar', CustomNavbar);
|
docs.html
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Documentation - CodeGenius</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<custom-navbar></custom-navbar>
|
| 13 |
+
|
| 14 |
+
<main>
|
| 15 |
+
<section class="hero">
|
| 16 |
+
<h1 class="animate">Spellbook Documentation</h1>
|
| 17 |
+
<p class="animate">Learn how to wield our magical components with power and precision</p>
|
| 18 |
+
</section>
|
| 19 |
+
|
| 20 |
+
<section class="docs-container">
|
| 21 |
+
<div class="docs-sidebar">
|
| 22 |
+
<h3>Components</h3>
|
| 23 |
+
<ul>
|
| 24 |
+
<li><a href="#navbar">Navbar</a></li>
|
| 25 |
+
<li><a href="#footer">Footer</a></li>
|
| 26 |
+
<li><a href="#cards">Cards</a></li>
|
| 27 |
+
<li><a href="#buttons">Buttons</a></li>
|
| 28 |
+
</ul>
|
| 29 |
+
|
| 30 |
+
<h3>Utilities</h3>
|
| 31 |
+
<ul>
|
| 32 |
+
<li><a href="#theming">Theming</a></li>
|
| 33 |
+
<li><a href="#animations">Animations</a></li>
|
| 34 |
+
<li><a href="#responsive">Responsive Design</a></li>
|
| 35 |
+
</ul>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<div class="docs-content">
|
| 39 |
+
<article id="navbar" class="doc-section">
|
| 40 |
+
<h2>Navbar Component</h2>
|
| 41 |
+
<p>The magical navigation bar that stays fixed at the top of your page.</p>
|
| 42 |
+
<pre><code><custom-navbar></custom-navbar></code></pre>
|
| 43 |
+
<p>Simply include the component tag in your HTML and the script in your page.</p>
|
| 44 |
+
</article>
|
| 45 |
+
|
| 46 |
+
<article id="footer" class="doc-section">
|
| 47 |
+
<h2>Footer Component</h2>
|
| 48 |
+
<p>A responsive footer with multiple sections for your content.</p>
|
| 49 |
+
<pre><code><custom-footer></custom-footer></code></pre>
|
| 50 |
+
</article>
|
| 51 |
+
|
| 52 |
+
<article id="cards" class="doc-section">
|
| 53 |
+
<h2>Card Components</h2>
|
| 54 |
+
<p>Feature cards with hover effects and icon support.</p>
|
| 55 |
+
<pre><code><div class="feature-card">
|
| 56 |
+
<div class="feature-icon">
|
| 57 |
+
<i class="fas fa-magic"></i>
|
| 58 |
+
</div>
|
| 59 |
+
<h3>Card Title</h3>
|
| 60 |
+
<p>Card description content</p>
|
| 61 |
+
</div></code></pre>
|
| 62 |
+
</article>
|
| 63 |
+
</div>
|
| 64 |
+
</section>
|
| 65 |
+
</main>
|
| 66 |
+
|
| 67 |
+
<custom-footer></custom-footer>
|
| 68 |
+
|
| 69 |
+
<script src="components/navbar.js"></script>
|
| 70 |
+
<script src="components/footer.js"></script>
|
| 71 |
+
<script src="script.js"></script>
|
| 72 |
+
</body>
|
| 73 |
+
</html>
|
features.html
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Features - CodeGenius</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
</head>
|
| 11 |
+
<body>
|
| 12 |
+
<custom-navbar></custom-navbar>
|
| 13 |
+
|
| 14 |
+
<main>
|
| 15 |
+
<section class="hero">
|
| 16 |
+
<h1 class="animate">Magical Features</h1>
|
| 17 |
+
<p class="animate">Discover the powerful tools in our wizard's toolkit</p>
|
| 18 |
+
</section>
|
| 19 |
+
|
| 20 |
+
<section class="features">
|
| 21 |
+
<div class="feature-card animate">
|
| 22 |
+
<div class="feature-icon">
|
| 23 |
+
<i class="fas fa-shield-alt"></i>
|
| 24 |
+
</div>
|
| 25 |
+
<h3>Shadow DOM Protection</h3>
|
| 26 |
+
<p>Component styles are safely encapsulated like a protective spell.</p>
|
| 27 |
+
</div>
|
| 28 |
+
<div class="feature-card animate">
|
| 29 |
+
<div class="feature-icon">
|
| 30 |
+
<i class="fas fa-sync-alt"></i>
|
| 31 |
+
</div>
|
| 32 |
+
<h3>Reusable Spells</h3>
|
| 33 |
+
<p>Components can be reused across projects with minimal configuration.</p>
|
| 34 |
+
</div>
|
| 35 |
+
<div class="feature-card animate">
|
| 36 |
+
<div class="feature-icon">
|
| 37 |
+
<i class="fas fa-palette"></i>
|
| 38 |
+
</div>
|
| 39 |
+
<h3>Themable Magic</h3>
|
| 40 |
+
<p>Customize colors and styles with CSS variables for your unique brand.</p>
|
| 41 |
+
</div>
|
| 42 |
+
<div class="feature-card animate">
|
| 43 |
+
<div class="feature-icon">
|
| 44 |
+
<i class="fas fa-rocket"></i>
|
| 45 |
+
</div>
|
| 46 |
+
<h3>Performance Charms</h3>
|
| 47 |
+
<p>Lightweight and optimized for fast loading and smooth interactions.</p>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="feature-card animate">
|
| 50 |
+
<div class="feature-icon">
|
| 51 |
+
<i class="fas fa-mobile-alt"></i>
|
| 52 |
+
</div>
|
| 53 |
+
<h3>Responsive Enchantment</h3>
|
| 54 |
+
<p>Automatically adapts to any screen size from wands to crystal balls.</p>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="feature-card animate">
|
| 57 |
+
<div class="feature-icon">
|
| 58 |
+
<i class="fas fa-code"></i>
|
| 59 |
+
</div>
|
| 60 |
+
<h3>Clean Incantations</h3>
|
| 61 |
+
<p>Well-documented code that's easy to understand and modify.</p>
|
| 62 |
+
</div>
|
| 63 |
+
</section>
|
| 64 |
+
</main>
|
| 65 |
+
|
| 66 |
+
<custom-footer></custom-footer>
|
| 67 |
+
|
| 68 |
+
<script src="components/navbar.js"></script>
|
| 69 |
+
<script src="components/footer.js"></script>
|
| 70 |
+
<script src="script.js"></script>
|
| 71 |
+
</body>
|
| 72 |
+
</html>
|
index.html
CHANGED
|
@@ -1,19 +1,19 @@
|
|
| 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>
|
| 3 |
+
<head>
|
| 4 |
+
<title>My app</title>
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<meta cha.tailwindcss.com"></script>
|
| 7 |
+
</head>
|
| 8 |
+
<body class="flex justify-center items-center font-sans text-center px-6">
|
| 9 |
+
<div class="w-full">
|
| 10 |
+
<span class="text-xs rounded-full mb-2 inline-bl-1 border border-amber-500/15 bg-amber-500/15 text-amber-500">🔥 New version dropped!</span>
|
| 11 |
+
<h1 class="text-4xl lg:text-6xl font-bold font-sans">
|
| 12 |
+
<span class="text-2xl lg:text-4xl text-gray-400 block font-medium">I'm ready to work,</span>
|
| 13 |
+
Ask me anything.
|
| 14 |
+
</h1>
|
| 15 |
+
</div>
|
| 16 |
+
<img src="https://huggingface.co/deepsite/arrow.svg" class="absolute bottom-8 left-0 w-[100px] transform rotate-[30deg]" />
|
| 17 |
+
<script></script>
|
| 18 |
+
</bod
|
| 19 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
script.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Smooth scrolling for anchor links
|
| 2 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 3 |
+
anchor.addEventListener('click', function (e) {
|
| 4 |
+
e.preventDefault();
|
| 5 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 6 |
+
behavior: 'smooth'
|
| 7 |
+
});
|
| 8 |
+
});
|
| 9 |
+
});
|
| 10 |
+
|
| 11 |
+
// Theme toggle functionality
|
| 12 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 13 |
+
if (themeToggle) {
|
| 14 |
+
themeToggle.addEventListener('click', () => {
|
| 15 |
+
document.body.classList.toggle('dark-theme');
|
| 16 |
+
localStorage.setItem('theme', document.body.classList.contains('dark-theme') ? 'dark' : 'light');
|
| 17 |
+
});
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
// Initialize theme from localStorage
|
| 21 |
+
if (localStorage.getItem('theme') === 'dark') {
|
| 22 |
+
document.body.classList.add('dark-theme');
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
// Dynamic year for footer
|
| 26 |
+
document.querySelectorAll('.current-year').forEach(el => {
|
| 27 |
+
el.textContent = new Date().getFullYear();
|
| 28 |
+
});
|
| 29 |
+
|
| 30 |
+
// Animation on scroll
|
| 31 |
+
const animateOnScroll = () => {
|
| 32 |
+
const elements = document.querySelectorAll('.animate');
|
| 33 |
+
elements.forEach(el => {
|
| 34 |
+
const elementPosition = el.getBoundingClientRect().top;
|
| 35 |
+
const screenPosition = window.innerHeight / 1.3;
|
| 36 |
+
if (elementPosition < screenPosition) {
|
| 37 |
+
el.classList.add('animated');
|
| 38 |
+
}
|
| 39 |
+
});
|
| 40 |
+
};
|
| 41 |
+
|
| 42 |
+
window.addEventListener('scroll', animateOnScroll);
|
| 43 |
+
window.addEventListener('load', animateOnScroll);
|
style.css
CHANGED
|
@@ -1,28 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
margin-bottom: 10px;
|
| 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 |
+
:root {
|
| 2 |
+
--primary: #6e8efb;
|
| 3 |
+
--secondary: #a777e3;
|
| 4 |
+
--dark: #2d3748;
|
| 5 |
+
--light: #f7fafc;
|
| 6 |
+
--accent: #f6ad55;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
body {
|
| 10 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
color: var(--dark);
|
| 13 |
+
background-color: var(--light);
|
| 14 |
+
margin: 0;
|
| 15 |
+
padding: 0;
|
| 16 |
+
min-height: 100vh;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
main {
|
| 20 |
+
padding: 6rem 2rem 2rem;
|
| 21 |
+
max-width: 1200px;
|
| 22 |
+
margin: 0 auto;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.hero {
|
| 26 |
+
text-align: center;
|
| 27 |
+
padding: 4rem 0;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.hero h1 {
|
| 31 |
+
font-size: 3.5rem;
|
| 32 |
+
font-weight: 800;
|
| 33 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 34 |
+
-webkit-background-clip: text;
|
| 35 |
+
background-clip: text;
|
| 36 |
+
color: transparent;
|
| 37 |
+
margin-bottom: 1rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.hero p {
|
| 41 |
+
font-size: 1.25rem;
|
| 42 |
+
color: #4a5568;
|
| 43 |
+
max-width: 700px;
|
| 44 |
+
margin: 0 auto 2rem;
|
| 45 |
}
|
| 46 |
|
| 47 |
+
.btn {
|
| 48 |
+
display: inline-block;
|
| 49 |
+
padding: 0.75rem 1.5rem;
|
| 50 |
+
border-radius: 0.375rem;
|
| 51 |
+
font-weight: 600;
|
| 52 |
+
text-decoration: none;
|
| 53 |
+
transition: all 0.3s ease;
|
| 54 |
}
|
| 55 |
|
| 56 |
+
.btn-primary {
|
| 57 |
+
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
| 58 |
+
color: white;
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
+
.btn-primary:hover {
|
| 62 |
+
transform: translateY(-2px);
|
| 63 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
+
.features {
|
| 67 |
+
display: grid;
|
| 68 |
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 69 |
+
gap: 2rem;
|
| 70 |
+
margin: 4rem 0;
|
| 71 |
}
|
| 72 |
+
|
| 73 |
+
.feature-card {
|
| 74 |
+
background: white;
|
| 75 |
+
border-radius: 0.5rem;
|
| 76 |
+
padding: 2rem;
|
| 77 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
| 78 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
.feature-card:hover {
|
| 82 |
+
transform: translateY(-5px);
|
| 83 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.feature-icon {
|
| 87 |
+
font-size: 2.5rem;
|
| 88 |
+
margin-bottom: 1rem;
|
| 89 |
+
color: var(--primary);
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.feature-card h3 {
|
| 93 |
+
font-size: 1.25rem;
|
| 94 |
+
margin-bottom: 0.75rem;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
@media (max-width: 768px) {
|
| 98 |
+
.hero h1 {
|
| 99 |
+
font-size: 2.5rem;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.hero p {
|
| 103 |
+
font-size: 1.1rem;
|
| 104 |
+
}
|
| 105 |
+
}
|