I want you to build me a free website to go along with this app and then I want us to deploy it so that it's downloadable right now and able to use fully functional
Browse files- components/footer.js +79 -22
- components/navbar.js +5 -5
- free.html +114 -0
- index.html +32 -36
- script.js +11 -2
- style.css +10 -121
components/footer.js
CHANGED
|
@@ -4,47 +4,104 @@ class CustomFooter extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
-
background:
|
| 8 |
-
color:
|
| 9 |
-
padding: 2rem;
|
| 10 |
text-align: center;
|
| 11 |
-
|
| 12 |
}
|
| 13 |
.footer-content {
|
| 14 |
max-width: 1200px;
|
| 15 |
margin: 0 auto;
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
display: flex;
|
| 19 |
-
justify-content: center;
|
| 20 |
gap: 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
margin-bottom: 1rem;
|
| 22 |
-
|
| 23 |
}
|
| 24 |
-
.footer-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
text-decoration: none;
|
|
|
|
| 27 |
}
|
| 28 |
-
.footer-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
.copyright {
|
| 32 |
-
margin-top:
|
|
|
|
|
|
|
| 33 |
font-size: 0.875rem;
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
</style>
|
| 37 |
<footer>
|
| 38 |
<div class="footer-content">
|
| 39 |
-
<div class="footer-
|
| 40 |
-
<
|
| 41 |
-
<
|
| 42 |
-
<a href="/terms">Terms</a>
|
| 43 |
-
<a href="/contact">Contact</a>
|
| 44 |
</div>
|
| 45 |
-
<div class="
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
</div>
|
| 49 |
</footer>
|
| 50 |
`;
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
+
background: white;
|
| 8 |
+
color: #4b5563;
|
| 9 |
+
padding: 2rem 1rem;
|
| 10 |
text-align: center;
|
| 11 |
+
border-top: 1px solid #e5e7eb;
|
| 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 |
+
text-align: left;
|
| 20 |
+
}
|
| 21 |
+
.footer-section h3 {
|
| 22 |
+
font-weight: 600;
|
| 23 |
margin-bottom: 1rem;
|
| 24 |
+
color: #1f2937;
|
| 25 |
}
|
| 26 |
+
.footer-section ul {
|
| 27 |
+
list-style: none;
|
| 28 |
+
padding: 0;
|
| 29 |
+
margin: 0;
|
| 30 |
+
}
|
| 31 |
+
.footer-section li {
|
| 32 |
+
margin-bottom: 0.5rem;
|
| 33 |
+
}
|
| 34 |
+
.footer-section a {
|
| 35 |
+
color: #4b5563;
|
| 36 |
text-decoration: none;
|
| 37 |
+
transition: color 0.2s;
|
| 38 |
}
|
| 39 |
+
.footer-section a:hover {
|
| 40 |
+
color: #000;
|
| 41 |
+
}
|
| 42 |
+
.social-links {
|
| 43 |
+
display: flex;
|
| 44 |
+
gap: 1rem;
|
| 45 |
+
justify-content: center;
|
| 46 |
+
margin-top: 2rem;
|
| 47 |
+
}
|
| 48 |
+
.social-links a {
|
| 49 |
+
color: #6b7280;
|
| 50 |
+
transition: color 0.2s;
|
| 51 |
+
}
|
| 52 |
+
.social-links a:hover {
|
| 53 |
+
color: #000;
|
| 54 |
}
|
| 55 |
.copyright {
|
| 56 |
+
margin-top: 2rem;
|
| 57 |
+
padding-top: 1rem;
|
| 58 |
+
border-top: 1px solid #e5e7eb;
|
| 59 |
font-size: 0.875rem;
|
| 60 |
+
}
|
| 61 |
+
@media (max-width: 768px) {
|
| 62 |
+
.footer-content {
|
| 63 |
+
grid-template-columns: 1fr;
|
| 64 |
+
text-align: center;
|
| 65 |
+
}
|
| 66 |
+
.social-links {
|
| 67 |
+
justify-content: center;
|
| 68 |
+
}
|
| 69 |
}
|
| 70 |
</style>
|
| 71 |
<footer>
|
| 72 |
<div class="footer-content">
|
| 73 |
+
<div class="footer-section">
|
| 74 |
+
<h3>Blank Canvas</h3>
|
| 75 |
+
<p>Unleash your creativity with our platform. The possibilities are endless.</p>
|
|
|
|
|
|
|
| 76 |
</div>
|
| 77 |
+
<div class="footer-section">
|
| 78 |
+
<h3>Resources</h3>
|
| 79 |
+
<ul>
|
| 80 |
+
<li><a href="#">Documentation</a></li>
|
| 81 |
+
<li><a href="#">Tutorials</a></li>
|
| 82 |
+
<li><a href="#">API</a></li>
|
| 83 |
+
<li><a href="#">Community</a></li>
|
| 84 |
+
</ul>
|
| 85 |
</div>
|
| 86 |
+
<div class="footer-section">
|
| 87 |
+
<h3>Company</h3>
|
| 88 |
+
<ul>
|
| 89 |
+
<li><a href="#">About</a></li>
|
| 90 |
+
<li><a href="#">Careers</a></li>
|
| 91 |
+
<li><a href="#">Privacy</a></li>
|
| 92 |
+
<li><a href="#">Terms</a></li>
|
| 93 |
+
</ul>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
<div class="social-links">
|
| 97 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 98 |
+
<a href="#"><i data-feather="instagram"></i></a>
|
| 99 |
+
<a href="#"><i data-feather="facebook"></i></a>
|
| 100 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 101 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="copyright">
|
| 104 |
+
© ${new Date().getFullYear()} The Ultimate Blank Canvas App. All rights reserved.
|
| 105 |
</div>
|
| 106 |
</footer>
|
| 107 |
`;
|
components/navbar.js
CHANGED
|
@@ -71,11 +71,11 @@ ul {
|
|
| 71 |
<span>Staff Portal</span>
|
| 72 |
</a>
|
| 73 |
<ul>
|
| 74 |
-
<li><a href="/" class="active"><i data-feather="home"></i>
|
| 75 |
-
<li><a href="/
|
| 76 |
-
<li><a href="
|
| 77 |
-
<li><a href="
|
| 78 |
-
<li><a href="
|
| 79 |
</ul>
|
| 80 |
</nav>
|
| 81 |
`;
|
|
|
|
| 71 |
<span>Staff Portal</span>
|
| 72 |
</a>
|
| 73 |
<ul>
|
| 74 |
+
<li><a href="/" class="active"><i data-feather="home"></i> Home</a></li>
|
| 75 |
+
<li><a href="/free.html"><i data-feather="globe"></i> Free Website</a></li>
|
| 76 |
+
<li><a href="#"><i data-feather="download"></i> Download</a></li>
|
| 77 |
+
<li><a href="#"><i data-feather="help-circle"></i> Support</a></li>
|
| 78 |
+
<li><a href="#"><i data-feather="user"></i> Account</a></li>
|
| 79 |
</ul>
|
| 80 |
</nav>
|
| 81 |
`;
|
free.html
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Free Website | The Ultimate Blank Canvas</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 |
+
</head>
|
| 11 |
+
<body class="min-h-screen flex flex-col">
|
| 12 |
+
<custom-navbar></custom-navbar>
|
| 13 |
+
|
| 14 |
+
<main class="flex-grow">
|
| 15 |
+
<!-- Hero Section -->
|
| 16 |
+
<section class="py-20 px-4 bg-gradient-to-r from-blue-500 to-indigo-600 text-white">
|
| 17 |
+
<div class="max-w-6xl mx-auto text-center">
|
| 18 |
+
<h1 class="text-5xl font-bold mb-6">Free Website Builder</h1>
|
| 19 |
+
<p class="text-xl mb-8 max-w-2xl mx-auto">
|
| 20 |
+
Create beautiful, responsive websites for free with our easy-to-use platform.
|
| 21 |
+
</p>
|
| 22 |
+
<div class="flex justify-center gap-4">
|
| 23 |
+
<a href="#start" class="px-6 py-3 bg-white text-blue-600 rounded-lg hover:bg-gray-100 transition font-bold">
|
| 24 |
+
Start Building
|
| 25 |
+
</a>
|
| 26 |
+
<a href="#templates" class="px-6 py-3 border border-white text-white rounded-lg hover:bg-white hover:text-blue-600 transition font-bold">
|
| 27 |
+
View Templates
|
| 28 |
+
</a>
|
| 29 |
+
</div>
|
| 30 |
+
</div>
|
| 31 |
+
</section>
|
| 32 |
+
|
| 33 |
+
<!-- Features Section -->
|
| 34 |
+
<section id="features" class="py-16 px-4 bg-white">
|
| 35 |
+
<div class="max-w-6xl mx-auto">
|
| 36 |
+
<h2 class="text-3xl font-bold text-center mb-12">Powerful Features</h2>
|
| 37 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 38 |
+
<div class="bg-gray-50 p-6 rounded-xl">
|
| 39 |
+
<div class="text-blue-500 mb-4">
|
| 40 |
+
<i data-feather="code" class="w-10 h-10"></i>
|
| 41 |
+
</div>
|
| 42 |
+
<h3 class="text-xl font-bold mb-2">Drag & Drop Builder</h3>
|
| 43 |
+
<p class="text-gray-600">No coding required. Just drag, drop and customize.</p>
|
| 44 |
+
</div>
|
| 45 |
+
<div class="bg-gray-50 p-6 rounded-xl">
|
| 46 |
+
<div class="text-blue-500 mb-4">
|
| 47 |
+
<i data-feather="smartphone" class="w-10 h-10"></i>
|
| 48 |
+
</div>
|
| 49 |
+
<h3 class="text-xl font-bold mb-2">Mobile Responsive</h3>
|
| 50 |
+
<p class="text-gray-600">Automatically adapts to all screen sizes.</p>
|
| 51 |
+
</div>
|
| 52 |
+
<div class="bg-gray-50 p-6 rounded-xl">
|
| 53 |
+
<div class="text-blue-500 mb-4">
|
| 54 |
+
<i data-feather="cloud" class="w-10 h-10"></i>
|
| 55 |
+
</div>
|
| 56 |
+
<h3 class="text-xl font-bold mb-2">Free Hosting</h3>
|
| 57 |
+
<p class="text-gray-600">Publish instantly with our free cloud hosting.</p>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</section>
|
| 62 |
+
|
| 63 |
+
<!-- Templates Section -->
|
| 64 |
+
<section id="templates" class="py-16 px-4 bg-gray-50">
|
| 65 |
+
<div class="max-w-6xl mx-auto">
|
| 66 |
+
<h2 class="text-3xl font-bold text-center mb-12">Beautiful Templates</h2>
|
| 67 |
+
<div class="grid md:grid-cols-3 gap-6">
|
| 68 |
+
<div class="border rounded-lg overflow-hidden shadow-sm hover:shadow-md transition">
|
| 69 |
+
<img src="http://static.photos/technology/640x360/1" alt="Business Template" class="w-full h-48 object-cover">
|
| 70 |
+
<div class="p-4">
|
| 71 |
+
<h3 class="font-bold mb-2">Business</h3>
|
| 72 |
+
<button class="text-blue-500 font-medium">Use Template</button>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
<div class="border rounded-lg overflow-hidden shadow-sm hover:shadow-md transition">
|
| 76 |
+
<img src="http://static.photos/education/640x360/2" alt="Portfolio Template" class="w-full h-48 object-cover">
|
| 77 |
+
<div class="p-4">
|
| 78 |
+
<h3 class="font-bold mb-2">Portfolio</h3>
|
| 79 |
+
<button class="text-blue-500 font-medium">Use Template</button>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
<div class="border rounded-lg overflow-hidden shadow-sm hover:shadow-md transition">
|
| 83 |
+
<img src="http://static.photos/restaurant/640x360/3" alt="Restaurant Template" class="w-full h-48 object-cover">
|
| 84 |
+
<div class="p-4">
|
| 85 |
+
<h3 class="font-bold mb-2">Restaurant</h3>
|
| 86 |
+
<button class="text-blue-500 font-medium">Use Template</button>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
</section>
|
| 92 |
+
|
| 93 |
+
<!-- CTA Section -->
|
| 94 |
+
<section id="start" class="py-16 px-4 bg-blue-50">
|
| 95 |
+
<div class="max-w-2xl mx-auto text-center">
|
| 96 |
+
<h2 class="text-3xl font-bold mb-6">Ready to Build Your Website?</h2>
|
| 97 |
+
<p class="text-lg mb-8">Join thousands of users creating amazing websites for free.</p>
|
| 98 |
+
<button class="px-8 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition font-bold">
|
| 99 |
+
Get Started Now
|
| 100 |
+
</button>
|
| 101 |
+
</div>
|
| 102 |
+
</section>
|
| 103 |
+
</main>
|
| 104 |
+
|
| 105 |
+
<custom-footer></custom-footer>
|
| 106 |
+
|
| 107 |
+
<script src="components/navbar.js"></script>
|
| 108 |
+
<script src="components/footer.js"></script>
|
| 109 |
+
<script src="script.js"></script>
|
| 110 |
+
<script>
|
| 111 |
+
feather.replace();
|
| 112 |
+
</script>
|
| 113 |
+
</body>
|
| 114 |
+
</html>
|
index.html
CHANGED
|
@@ -3,56 +3,52 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<link rel="stylesheet" href="style.css">
|
|
|
|
|
|
|
| 8 |
<script src="https://unpkg.com/feather-icons"></script>
|
|
|
|
| 9 |
</head>
|
| 10 |
-
<body>
|
| 11 |
<custom-navbar></custom-navbar>
|
| 12 |
|
| 13 |
-
<main class="
|
| 14 |
-
<
|
| 15 |
-
<
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
</div>
|
| 23 |
-
|
| 24 |
-
<img src="http://static.photos/workspace/1024x576/1" alt="Workspace Dashboard">
|
| 25 |
-
</div>
|
| 26 |
-
</section>
|
| 27 |
-
|
| 28 |
-
<section id="features" class="features">
|
| 29 |
-
<h2>Key Features</h2>
|
| 30 |
-
<div class="features-grid">
|
| 31 |
-
<div class="feature-card">
|
| 32 |
-
<i data-feather="check-square"></i>
|
| 33 |
-
<h3>Task Management</h3>
|
| 34 |
-
<p>Assign, track and complete tasks with ease.</p>
|
| 35 |
-
</div>
|
| 36 |
-
<div class="feature-card">
|
| 37 |
-
<i data-feather="users"></i>
|
| 38 |
-
<h3>Team Collaboration</h3>
|
| 39 |
-
<p>Connect with your team members seamlessly.</p>
|
| 40 |
-
</div>
|
| 41 |
-
<div class="feature-card">
|
| 42 |
-
<i data-feather="calendar"></i>
|
| 43 |
-
<h3>Calendar Sync</h3>
|
| 44 |
-
<p>Keep track of important events and deadlines.</p>
|
| 45 |
-
</div>
|
| 46 |
-
</div>
|
| 47 |
-
</section>
|
| 48 |
</main>
|
| 49 |
|
| 50 |
<custom-footer></custom-footer>
|
| 51 |
|
| 52 |
<script src="components/navbar.js"></script>
|
| 53 |
<script src="components/footer.js"></script>
|
|
|
|
| 54 |
<script>
|
| 55 |
feather.replace();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</script>
|
|
|
|
| 57 |
</body>
|
| 58 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>The Ultimate Blank Canvas</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="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script>
|
| 12 |
</head>
|
| 13 |
+
<body class="min-h-screen flex flex-col">
|
| 14 |
<custom-navbar></custom-navbar>
|
| 15 |
|
| 16 |
+
<main class="flex-grow flex items-center justify-center" id="vanta-bg">
|
| 17 |
+
<div class="text-center p-8 bg-white bg-opacity-90 rounded-xl shadow-2xl max-w-2xl mx-4">
|
| 18 |
+
<h1 class="text-5xl font-bold mb-6 text-gray-800">The Ultimate Blank Canvas</h1>
|
| 19 |
+
<p class="text-xl text-gray-600 mb-8">
|
| 20 |
+
Your imagination is the limit. Start creating something amazing today!
|
| 21 |
+
</p>
|
| 22 |
+
<div class="flex justify-center gap-4">
|
| 23 |
+
<a href="/free.html" class="px-6 py-3 bg-black text-white rounded-lg hover:bg-gray-800 transition flex items-center gap-2">
|
| 24 |
+
<i data-feather="globe"></i> Free Website
|
| 25 |
+
</a>
|
| 26 |
+
<a href="#" class="px-6 py-3 border border-black text-black rounded-lg hover:bg-gray-100 transition flex items-center gap-2">
|
| 27 |
+
<i data-feather="download"></i> Download App
|
| 28 |
+
</a>
|
| 29 |
</div>
|
| 30 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</main>
|
| 32 |
|
| 33 |
<custom-footer></custom-footer>
|
| 34 |
|
| 35 |
<script src="components/navbar.js"></script>
|
| 36 |
<script src="components/footer.js"></script>
|
| 37 |
+
<script src="script.js"></script>
|
| 38 |
<script>
|
| 39 |
feather.replace();
|
| 40 |
+
VANTA.WAVES({
|
| 41 |
+
el: "#vanta-bg",
|
| 42 |
+
mouseControls: true,
|
| 43 |
+
touchControls: true,
|
| 44 |
+
gyroControls: false,
|
| 45 |
+
minHeight: 200.00,
|
| 46 |
+
minWidth: 200.00,
|
| 47 |
+
scale: 1.00,
|
| 48 |
+
scaleMobile: 1.00,
|
| 49 |
+
color: 0x0
|
| 50 |
+
})
|
| 51 |
</script>
|
| 52 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 53 |
</body>
|
| 54 |
</html>
|
script.js
CHANGED
|
@@ -2,11 +2,20 @@
|
|
| 2 |
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
// Any shared JavaScript functionality can go here
|
| 4 |
console.log('The Ultimate Blank Canvas App is ready!');
|
| 5 |
-
|
| 6 |
-
// Example: Add a simple fade-in animation to all pages
|
| 7 |
document.body.style.opacity = '0';
|
| 8 |
setTimeout(() => {
|
| 9 |
document.body.style.transition = 'opacity 0.5s ease-in';
|
| 10 |
document.body.style.opacity = '1';
|
| 11 |
}, 100);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
});
|
|
|
|
| 2 |
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
// Any shared JavaScript functionality can go here
|
| 4 |
console.log('The Ultimate Blank Canvas App is ready!');
|
| 5 |
+
// Add fade-in animation
|
|
|
|
| 6 |
document.body.style.opacity = '0';
|
| 7 |
setTimeout(() => {
|
| 8 |
document.body.style.transition = 'opacity 0.5s ease-in';
|
| 9 |
document.body.style.opacity = '1';
|
| 10 |
}, 100);
|
| 11 |
+
|
| 12 |
+
// Download button functionality
|
| 13 |
+
document.addEventListener('click', (e) => {
|
| 14 |
+
if (e.target.closest('[data-download]')) {
|
| 15 |
+
e.preventDefault();
|
| 16 |
+
alert('Downloading the app...');
|
| 17 |
+
// In a real implementation, this would trigger the actual download
|
| 18 |
+
window.location.href = 'https://github.com/public-apis/public-apis';
|
| 19 |
+
}
|
| 20 |
+
});
|
| 21 |
});
|
style.css
CHANGED
|
@@ -1,128 +1,17 @@
|
|
| 1 |
-
:
|
| 2 |
-
--primary: #2b6cb0;
|
| 3 |
-
--primary-light: #ebf8ff;
|
| 4 |
-
--secondary: #1a365d;
|
| 5 |
-
--white: #ffffff;
|
| 6 |
-
--gray-light: #f7fafc;
|
| 7 |
-
--gray: #e2e8f0;
|
| 8 |
-
}
|
| 9 |
|
| 10 |
body {
|
| 11 |
-
font-family: '
|
| 12 |
-
|
| 13 |
-
padding: 0;
|
| 14 |
-
line-height: 1.6;
|
| 15 |
-
color: #2d3748;
|
| 16 |
-
background-color: var(--gray-light);
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
.container {
|
| 20 |
-
max-width: 1200px;
|
| 21 |
-
margin: 0 auto;
|
| 22 |
-
padding: 2rem;
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
.hero {
|
| 26 |
-
display: flex;
|
| 27 |
-
flex-direction: column-reverse;
|
| 28 |
-
gap: 2rem;
|
| 29 |
-
margin: 2rem 0;
|
| 30 |
-
padding: 2rem 0;
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
.hero-content {
|
| 34 |
-
flex: 1;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
.hero-image {
|
| 38 |
-
flex: 1;
|
| 39 |
-
border-radius: 0.5rem;
|
| 40 |
-
overflow: hidden;
|
| 41 |
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
.hero-image img {
|
| 45 |
-
width: 100%;
|
| 46 |
-
height: auto;
|
| 47 |
-
object-fit: cover;
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
h1 {
|
| 51 |
-
font-size: 2.5rem;
|
| 52 |
-
color: var(--secondary);
|
| 53 |
-
margin-bottom: 1rem;
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
-
h2 {
|
| 57 |
-
font-size: 2rem;
|
| 58 |
-
color: var(--secondary);
|
| 59 |
-
margin-bottom: 1.5rem;
|
| 60 |
-
text-align: center;
|
| 61 |
-
}
|
| 62 |
-
|
| 63 |
-
.btn {
|
| 64 |
-
display: inline-block;
|
| 65 |
-
padding: 0.75rem 1.5rem;
|
| 66 |
-
border-radius: 0.5rem;
|
| 67 |
-
font-weight: 600;
|
| 68 |
-
text-decoration: none;
|
| 69 |
-
transition: all 0.2s;
|
| 70 |
-
margin-right: 1rem;
|
| 71 |
-
}
|
| 72 |
-
|
| 73 |
-
.btn.primary {
|
| 74 |
-
background-color: var(--primary);
|
| 75 |
-
color: white;
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
.btn.primary:hover {
|
| 79 |
-
background-color: #2c5282;
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
.btn.secondary {
|
| 83 |
-
background-color: white;
|
| 84 |
-
color: var(--primary);
|
| 85 |
-
border: 1px solid var(--primary);
|
| 86 |
-
}
|
| 87 |
-
|
| 88 |
-
.btn.secondary:hover {
|
| 89 |
-
background-color: var(--primary-light);
|
| 90 |
-
}
|
| 91 |
-
|
| 92 |
-
.features {
|
| 93 |
-
margin: 4rem 0;
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
.features-grid {
|
| 97 |
-
display: grid;
|
| 98 |
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 99 |
-
gap: 2rem;
|
| 100 |
-
margin-top: 2rem;
|
| 101 |
-
}
|
| 102 |
-
|
| 103 |
-
.feature-card {
|
| 104 |
-
background: white;
|
| 105 |
-
padding: 2rem;
|
| 106 |
-
border-radius: 0.5rem;
|
| 107 |
-
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
| 108 |
-
transition: transform 0.2s;
|
| 109 |
-
text-align: center;
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
.feature-card:hover {
|
| 113 |
-
transform: translateY(-5px);
|
| 114 |
}
|
| 115 |
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
}
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
flex-direction: row;
|
| 126 |
-
align-items: center;
|
| 127 |
-
}
|
| 128 |
}
|
|
|
|
| 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 |
+
background-color: #f8fafc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
+
/* Animation for the hero section */
|
| 9 |
+
@keyframes float {
|
| 10 |
+
0% { transform: translateY(0px); }
|
| 11 |
+
50% { transform: translateY(-15px); }
|
| 12 |
+
100% { transform: translateY(0px); }
|
| 13 |
}
|
| 14 |
|
| 15 |
+
.floating {
|
| 16 |
+
animation: float 6s ease-in-out infinite;
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|