Spaces:
Running
Running
Start a React project
Browse files
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: React Launchpad
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: React Launchpad 🚀
|
| 3 |
+
colorFrom: green
|
| 4 |
+
colorTo: green
|
| 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).
|
index.html
CHANGED
|
@@ -1,19 +1,155 @@
|
|
| 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>React Launchpad</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 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 |
+
</head>
|
| 12 |
+
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 13 |
+
<!-- Header -->
|
| 14 |
+
<header class="bg-white shadow-sm py-4">
|
| 15 |
+
<div class="container mx-auto px-4 flex justify-between items-center">
|
| 16 |
+
<div class="flex items-center space-x-2">
|
| 17 |
+
<i data-feather="box" class="text-blue-500"></i>
|
| 18 |
+
<h1 class="text-xl font-bold text-gray-800">React Launchpad</h1>
|
| 19 |
+
</div>
|
| 20 |
+
<nav class="hidden md:flex space-x-6">
|
| 21 |
+
<a href="#" class="text-gray-600 hover:text-blue-500 transition">Home</a>
|
| 22 |
+
<a href="#" class="text-gray-600 hover:text-blue-500 transition">Features</a>
|
| 23 |
+
<a href="#" class="text-gray-600 hover:text-blue-500 transition">Documentation</a>
|
| 24 |
+
<a href="#" class="text-gray-600 hover:text-blue-500 transition">Community</a>
|
| 25 |
+
</nav>
|
| 26 |
+
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg transition flex items-center">
|
| 27 |
+
<i data-feather="download" class="mr-2"></i>
|
| 28 |
+
Get Started
|
| 29 |
+
</button>
|
| 30 |
+
</div>
|
| 31 |
+
</header>
|
| 32 |
+
|
| 33 |
+
<!-- Hero Section -->
|
| 34 |
+
<section class="py-16 md:py-24 flex-grow">
|
| 35 |
+
<div class="container mx-auto px-4 text-center">
|
| 36 |
+
<h1 class="text-4xl md:text-6xl font-bold text-gray-800 mb-6">
|
| 37 |
+
Build Modern Web Apps <span class="text-blue-500">Faster</span>
|
| 38 |
+
</h1>
|
| 39 |
+
<p class="text-xl text-gray-600 max-w-2xl mx-auto mb-10">
|
| 40 |
+
React Launchpad provides everything you need to start building scalable React applications with best practices.
|
| 41 |
+
</p>
|
| 42 |
+
<div class="flex flex-col sm:flex-row justify-center gap-4">
|
| 43 |
+
<button class="bg-blue-500 hover:bg-blue-600 text-white px-8 py-3 rounded-lg text-lg transition flex items-center justify-center">
|
| 44 |
+
<i data-feather="play-circle" class="mr-2"></i>
|
| 45 |
+
Quick Start
|
| 46 |
+
</button>
|
| 47 |
+
<button class="border border-gray-300 hover:border-gray-400 text-gray-700 px-8 py-3 rounded-lg text-lg transition flex items-center justify-center">
|
| 48 |
+
<i data-feather="book" class="mr-2"></i>
|
| 49 |
+
Documentation
|
| 50 |
+
</button>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
</section>
|
| 54 |
+
|
| 55 |
+
<!-- Features Section -->
|
| 56 |
+
<section class="py-16 bg-gray-100">
|
| 57 |
+
<div class="container mx-auto px-4">
|
| 58 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Why Choose React Launchpad?</h2>
|
| 59 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 60 |
+
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition">
|
| 61 |
+
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
|
| 62 |
+
<i data-feather="zap" class="text-blue-500"></i>
|
| 63 |
+
</div>
|
| 64 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-2">Lightning Fast</h3>
|
| 65 |
+
<p class="text-gray-600">Optimized build process and pre-configured settings for maximum performance.</p>
|
| 66 |
+
</div>
|
| 67 |
+
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition">
|
| 68 |
+
<div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-4">
|
| 69 |
+
<i data-feather="tool" class="text-green-500"></i>
|
| 70 |
+
</div>
|
| 71 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-2">Developer Tools</h3>
|
| 72 |
+
<p class="text-gray-600">Pre-installed development tools and extensions for enhanced productivity.</p>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition">
|
| 75 |
+
<div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
|
| 76 |
+
<i data-feather="layers" class="text-purple-500"></i>
|
| 77 |
+
</div>
|
| 78 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-2">Modular Architecture</h3>
|
| 79 |
+
<p class="text-gray-600">Clean, scalable structure that grows with your application needs.</p>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
</section>
|
| 84 |
+
|
| 85 |
+
<!-- Stats Section -->
|
| 86 |
+
<section class="py-16">
|
| 87 |
+
<div class="container mx-auto px-4">
|
| 88 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-8 text-center">
|
| 89 |
+
<div>
|
| 90 |
+
<div class="text-3xl font-bold text-blue-500 mb-2">10K+</div>
|
| 91 |
+
<div class="text-gray-600">Downloads</div>
|
| 92 |
+
</div>
|
| 93 |
+
<div>
|
| 94 |
+
<div class="text-3xl font-bold text-green-500 mb-2">98%</div>
|
| 95 |
+
<div class="text-gray-600">Satisfaction</div>
|
| 96 |
+
</div>
|
| 97 |
+
<div>
|
| 98 |
+
<div class="text-3xl font-bold text-purple-500 mb-2">50+</div>
|
| 99 |
+
<div class="text-gray-600">Components</div>
|
| 100 |
+
</div>
|
| 101 |
+
<div>
|
| 102 |
+
<div class="text-3xl font-bold text-yellow-500 mb-2">24/7</div>
|
| 103 |
+
<div class="text-gray-600">Support</div>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
</section>
|
| 108 |
+
|
| 109 |
+
<!-- Footer -->
|
| 110 |
+
<footer class="bg-gray-800 text-white py-12 mt-auto">
|
| 111 |
+
<div class="container mx-auto px-4">
|
| 112 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 113 |
+
<div>
|
| 114 |
+
<h3 class="text-xl font-bold mb-4">React Launchpad</h3>
|
| 115 |
+
<p class="text-gray-400">The fastest way to build modern React applications with best practices.</p>
|
| 116 |
+
</div>
|
| 117 |
+
<div>
|
| 118 |
+
<h4 class="font-semibold mb-4">Resources</h4>
|
| 119 |
+
<ul class="space-y-2 text-gray-400">
|
| 120 |
+
<li><a href="#" class="hover:text-white transition">Documentation</a></li>
|
| 121 |
+
<li><a href="#" class="hover:text-white transition">Tutorials</a></li>
|
| 122 |
+
<li><a href="#" class="hover:text-white transition">Blog</a></li>
|
| 123 |
+
<li><a href="#" class="hover:text-white transition">Community</a></li>
|
| 124 |
+
</ul>
|
| 125 |
+
</div>
|
| 126 |
+
<div>
|
| 127 |
+
<h4 class="font-semibold mb-4">Product</h4>
|
| 128 |
+
<ul class="space-y-2 text-gray-400">
|
| 129 |
+
<li><a href="#" class="hover:text-white transition">Features</a></li>
|
| 130 |
+
<li><a href="#" class="hover:text-white transition">Templates</a></li>
|
| 131 |
+
<li><a href="#" class="hover:text-white transition">Pricing</a></li>
|
| 132 |
+
<li><a href="#" class="hover:text-white transition">Releases</a></li>
|
| 133 |
+
</ul>
|
| 134 |
+
</div>
|
| 135 |
+
<div>
|
| 136 |
+
<h4 class="font-semibold mb-4">Connect</h4>
|
| 137 |
+
<ul class="space-y-2 text-gray-400">
|
| 138 |
+
<li><a href="#" class="hover:text-white transition">GitHub</a></li>
|
| 139 |
+
<li><a href="#" class="hover:text-white transition">Twitter</a></li>
|
| 140 |
+
<li><a href="#" class="hover:text-white transition">Discord</a></li>
|
| 141 |
+
<li><a href="#" class="hover:text-white transition">Contact</a></li>
|
| 142 |
+
</ul>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
|
| 146 |
+
<p>© 2023 React Launchpad. All rights reserved.</p>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</footer>
|
| 150 |
+
|
| 151 |
+
<script src="script.js"></script>
|
| 152 |
+
<script>feather.replace();</script>
|
| 153 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 154 |
+
</body>
|
| 155 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Initialize Feather icons
|
| 2 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
+
feather.replace();
|
| 4 |
+
|
| 5 |
+
// Add animation to elements when they come into view
|
| 6 |
+
const observerOptions = {
|
| 7 |
+
root: null,
|
| 8 |
+
rootMargin: '0px',
|
| 9 |
+
threshold: 0.1
|
| 10 |
+
};
|
| 11 |
+
|
| 12 |
+
const observer = new IntersectionObserver((entries) => {
|
| 13 |
+
entries.forEach(entry => {
|
| 14 |
+
if (entry.isIntersecting) {
|
| 15 |
+
entry.target.classList.add('animate-fade-in');
|
| 16 |
+
observer.unobserve(entry.target);
|
| 17 |
+
}
|
| 18 |
+
});
|
| 19 |
+
}, observerOptions);
|
| 20 |
+
|
| 21 |
+
// Observe feature cards
|
| 22 |
+
document.querySelectorAll('.feature-card').forEach(card => {
|
| 23 |
+
card.classList.add('opacity-0', 'translate-y-4');
|
| 24 |
+
observer.observe(card);
|
| 25 |
+
});
|
| 26 |
+
|
| 27 |
+
// Smooth scrolling for anchor links
|
| 28 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 29 |
+
anchor.addEventListener('click', function(e) {
|
| 30 |
+
e.preventDefault();
|
| 31 |
+
const target = document.querySelector(this.getAttribute('href'));
|
| 32 |
+
if (target) {
|
| 33 |
+
target.scrollIntoView({
|
| 34 |
+
behavior: 'smooth',
|
| 35 |
+
block: 'start'
|
| 36 |
+
});
|
| 37 |
+
}
|
| 38 |
+
});
|
| 39 |
+
});
|
| 40 |
+
});
|
| 41 |
+
|
| 42 |
+
// Theme toggle functionality
|
| 43 |
+
function toggleTheme() {
|
| 44 |
+
const html = document.documentElement;
|
| 45 |
+
const currentTheme = html.classList.contains('dark') ? 'dark' : 'light';
|
| 46 |
+
|
| 47 |
+
if (currentTheme === 'light') {
|
| 48 |
+
html.classList.add('dark');
|
| 49 |
+
localStorage.setItem('theme', 'dark');
|
| 50 |
+
} else {
|
| 51 |
+
html.classList.remove('dark');
|
| 52 |
+
localStorage.setItem('theme', 'light');
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
// Set initial theme based on system preference or saved preference
|
| 57 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 58 |
+
const savedTheme = localStorage.getItem('theme');
|
| 59 |
+
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
| 60 |
+
|
| 61 |
+
if (savedTheme === 'dark' || (!savedTheme && systemPrefersDark)) {
|
| 62 |
+
document.documentElement.classList.add('dark');
|
| 63 |
+
}
|
| 64 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,61 @@
|
|
| 1 |
-
|
| 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 |
-
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@tailwind base;
|
| 2 |
+
@tailwind components;
|
| 3 |
+
@tailwind utilities;
|
| 4 |
+
|
| 5 |
+
/* Custom animations */
|
| 6 |
+
@keyframes fadeIn {
|
| 7 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 8 |
+
to { opacity: 1; transform: translateY(0); }
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
.animate-fade-in {
|
| 12 |
+
animation: fadeIn 0.5s ease-out;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
/* Custom button styles */
|
| 16 |
+
.btn-primary {
|
| 17 |
+
@apply bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-lg transition duration-300;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.btn-secondary {
|
| 21 |
+
@apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-4 rounded-lg transition duration-300;
|
| 22 |
}
|
| 23 |
|
| 24 |
+
/* Card hover effect */
|
| 25 |
+
.card-hover {
|
| 26 |
+
@apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
/* Gradient backgrounds */
|
| 30 |
+
.gradient-bg {
|
| 31 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
|
| 34 |
+
/* Responsive typography */
|
| 35 |
+
.responsive-heading {
|
| 36 |
+
font-size: clamp(1.5rem, 4vw, 3rem);
|
| 37 |
+
line-height: 1.2;
|
|
|
|
|
|
|
| 38 |
}
|
| 39 |
|
| 40 |
+
/* Custom scrollbar */
|
| 41 |
+
::-webkit-scrollbar {
|
| 42 |
+
width: 8px;
|
| 43 |
}
|
| 44 |
+
|
| 45 |
+
::-webkit-scrollbar-track {
|
| 46 |
+
background: #f1f1f1;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
::-webkit-scrollbar-thumb {
|
| 50 |
+
background: #c5c5c5;
|
| 51 |
+
border-radius: 4px;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
::-webkit-scrollbar-thumb:hover {
|
| 55 |
+
background: #a8a8a8;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
/* Focus styles */
|
| 59 |
+
.focus-ring {
|
| 60 |
+
@apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50;
|
| 61 |
+
}
|