jonathan8878 commited on
Commit
b0fe692
·
verified ·
1 Parent(s): 06c5acb

how to make a video

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +65 -0
  3. components/navbar.js +71 -0
  4. index.html +99 -19
  5. script.js +27 -0
  6. style.css +23 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Videocraft Studio Create Magic
3
- emoji: 📚
4
- colorFrom: blue
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: VideoCraft Studio - Create Magic 🎬
3
+ colorFrom: gray
4
+ colorTo: gray
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer-link {
7
+ transition: color 0.2s ease;
8
+ }
9
+ .footer-link:hover {
10
+ color: #6366f1;
11
+ }
12
+ .social-icon {
13
+ transition: all 0.3s ease;
14
+ }
15
+ .social-icon:hover {
16
+ transform: translateY(-3px);
17
+ color: #6366f1;
18
+ }
19
+ </style>
20
+ <footer class="bg-gray-800 text-white py-12 px-6">
21
+ <div class="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-4 gap-8">
22
+ <div class="md:col-span-2">
23
+ <div class="flex items-center mb-4">
24
+ <i data-feather="film" class="text-indigo-400 w-8 h-8 mr-2"></i>
25
+ <span class="text-2xl font-bold">VideoCraft</span>
26
+ </div>
27
+ <p class="text-gray-400 mb-4">Create professional videos in minutes with our intuitive editor. Perfect for content creators, marketers, and businesses.</p>
28
+ <div class="flex space-x-4">
29
+ <a href="#" class="social-icon text-gray-400"><i data-feather="facebook"></i></a>
30
+ <a href="#" class="social-icon text-gray-400"><i data-feather="twitter"></i></a>
31
+ <a href="#" class="social-icon text-gray-400"><i data-feather="instagram"></i></a>
32
+ <a href="#" class="social-icon text-gray-400"><i data-feather="youtube"></i></a>
33
+ </div>
34
+ </div>
35
+
36
+ <div>
37
+ <h3 class="text-lg font-semibold mb-4">Product</h3>
38
+ <ul class="space-y-2">
39
+ <li><a href="#" class="footer-link text-gray-400">Features</a></li>
40
+ <li><a href="#" class="footer-link text-gray-400">Pricing</a></li>
41
+ <li><a href="#" class="footer-link text-gray-400">Templates</a></li>
42
+ <li><a href="#" class="footer-link text-gray-400">Integrations</a></li>
43
+ </ul>
44
+ </div>
45
+
46
+ <div>
47
+ <h3 class="text-lg font-semibold mb-4">Company</h3>
48
+ <ul class="space-y-2">
49
+ <li><a href="#" class="footer-link text-gray-400">About Us</a></li>
50
+ <li><a href="#" class="footer-link text-gray-400">Careers</a></li>
51
+ <li><a href="#" class="footer-link text-gray-400">Blog</a></li>
52
+ <li><a href="#" class="footer-link text-gray-400">Contact</a></li>
53
+ </ul>
54
+ </div>
55
+ </div>
56
+
57
+ <div class="max-w-7xl mx-auto border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
58
+ <p>&copy; ${new Date().getFullYear()} VideoCraft Studio. All rights reserved.</p>
59
+ </div>
60
+ </footer>
61
+ `;
62
+ }
63
+ }
64
+
65
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ transition: all 0.3s ease;
8
+ }
9
+ .navbar.scrolled {
10
+ background-color: white;
11
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
12
+ }
13
+ .nav-link {
14
+ position: relative;
15
+ }
16
+ .nav-link::after {
17
+ content: '';
18
+ position: absolute;
19
+ width: 0;
20
+ height: 2px;
21
+ bottom: -2px;
22
+ left: 0;
23
+ background-color: #6366f1;
24
+ transition: width 0.3s ease;
25
+ }
26
+ .nav-link:hover::after {
27
+ width: 100%;
28
+ }
29
+ </style>
30
+ <nav class="navbar fixed w-full z-50 py-4 px-6 md:px-12">
31
+ <div class="max-w-7xl mx-auto flex justify-between items-center">
32
+ <a href="/" class="flex items-center">
33
+ <i data-feather="film" class="text-indigo-600 w-8 h-8 mr-2"></i>
34
+ <span class="text-xl font-bold text-gray-800">VideoCraft</span>
35
+ </a>
36
+
37
+ <div class="hidden md:flex space-x-8">
38
+ <a href="#features" class="nav-link text-gray-600 hover:text-indigo-600">Features</a>
39
+ <a href="#how-it-works" class="nav-link text-gray-600 hover:text-indigo-600">How It Works</a>
40
+ <a href="#pricing" class="nav-link text-gray-600 hover:text-indigo-600">Pricing</a>
41
+ <a href="#contact" class="nav-link text-gray-600 hover:text-indigo-600">Contact</a>
42
+ </div>
43
+
44
+ <div class="flex items-center space-x-4">
45
+ <a href="/login" class="text-gray-600 hover:text-indigo-600">Log In</a>
46
+ <a href="/signup" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg transition-colors">Sign Up</a>
47
+ <button class="md:hidden focus:outline-none">
48
+ <i data-feather="menu" class="w-6 h-6 text-gray-600"></i>
49
+ </button>
50
+ </div>
51
+ </div>
52
+ </nav>
53
+
54
+ <script>
55
+ // Change navbar style on scroll
56
+ window.addEventListener('scroll', function() {
57
+ const navbar = this.shadowRoot.querySelector('.navbar');
58
+ if (window.scrollY > 50) {
59
+ navbar.classList.add('scrolled');
60
+ } else {
61
+ navbar.classList.remove('scrolled');
62
+ }
63
+ });
64
+
65
+ // Mobile menu toggle would be implemented here
66
+ </script>
67
+ `;
68
+ }
69
+ }
70
+
71
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,99 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>VideoCraft Studio - Create Stunning Videos</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-100 min-h-screen">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="container mx-auto px-4 py-12">
16
+ <section class="text-center mb-16">
17
+ <h1 class="text-5xl font-bold text-gray-800 mb-6">Create Professional Videos in Minutes</h1>
18
+ <p class="text-xl text-gray-600 max-w-3xl mx-auto">Our intuitive video maker helps you craft stunning content without any technical skills.</p>
19
+ </section>
20
+
21
+ <section class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-16">
22
+ <div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition-shadow">
23
+ <div class="text-indigo-500 mb-4">
24
+ <i data-feather="film" class="w-12 h-12"></i>
25
+ </div>
26
+ <h3 class="text-xl font-semibold mb-2">Easy Editing</h3>
27
+ <p class="text-gray-600">Drag and drop interface makes editing videos as simple as pie.</p>
28
+ </div>
29
+
30
+ <div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition-shadow">
31
+ <div class="text-indigo-500 mb-4">
32
+ <i data-feather="music" class="w-12 h-12"></i>
33
+ </div>
34
+ <h3 class="text-xl font-semibold mb-2">Royalty-Free Music</h3>
35
+ <p class="text-gray-600">Access thousands of tracks to enhance your videos.</p>
36
+ </div>
37
+
38
+ <div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl transition-shadow">
39
+ <div class="text-indigo-500 mb-4">
40
+ <i data-feather="share-2" class="w-12 h-12"></i>
41
+ </div>
42
+ <h3 class="text-xl font-semibold mb-2">One-Click Sharing</h3>
43
+ <p class="text-gray-600">Publish directly to social media or download for offline use.</p>
44
+ </div>
45
+ </section>
46
+
47
+ <section class="bg-white rounded-xl shadow-lg p-8 mb-16">
48
+ <div class="flex flex-col md:flex-row items-center">
49
+ <div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
50
+ <h2 class="text-3xl font-bold text-gray-800 mb-4">Start Creating Today</h2>
51
+ <p class="text-gray-600 mb-6">Join thousands of creators who are making amazing videos with our platform. No credit card required.</p>
52
+ <button class="bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-3 px-6 rounded-lg transition-colors">
53
+ Get Started - It's Free
54
+ </button>
55
+ </div>
56
+ <div class="md:w-1/2">
57
+ <div class="relative aspect-video bg-gray-200 rounded-lg overflow-hidden">
58
+ <div class="absolute inset-0 flex items-center justify-center">
59
+ <i data-feather="play" class="w-16 h-16 text-indigo-500"></i>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </section>
65
+
66
+ <section class="mb-16">
67
+ <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">How It Works</h2>
68
+ <div class="flex flex-col md:flex-row justify-between items-center mb-8">
69
+ <div class="flex items-center mb-4 md:mb-0">
70
+ <div class="bg-indigo-100 text-indigo-600 rounded-full w-12 h-12 flex items-center justify-center font-bold text-xl mr-4">1</div>
71
+ <h3 class="text-xl font-semibold">Upload Your Media</h3>
72
+ </div>
73
+ <div class="hidden md:block">
74
+ <i data-feather="arrow-right" class="w-8 h-8 text-gray-400"></i>
75
+ </div>
76
+ <div class="flex items-center mb-4 md:mb-0">
77
+ <div class="bg-indigo-100 text-indigo-600 rounded-full w-12 h-12 flex items-center justify-center font-bold text-xl mr-4">2</div>
78
+ <h3 class="text-xl font-semibold">Edit & Customize</h3>
79
+ </div>
80
+ <div class="hidden md:block">
81
+ <i data-feather="arrow-right" class="w-8 h-8 text-gray-400"></i>
82
+ </div>
83
+ <div class="flex items-center">
84
+ <div class="bg-indigo-100 text-indigo-600 rounded-full w-12 h-12 flex items-center justify-center font-bold text-xl mr-4">3</div>
85
+ <h3 class="text-xl font-semibold">Export & Share</h3>
86
+ </div>
87
+ </div>
88
+ </section>
89
+ </main>
90
+
91
+ <custom-footer></custom-footer>
92
+
93
+ <script src="components/navbar.js"></script>
94
+ <script src="components/footer.js"></script>
95
+ <script src="script.js"></script>
96
+ <script>feather.replace();</script>
97
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
98
+ </body>
99
+ </html>
script.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // Smooth scrolling for anchor links
3
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
4
+ anchor.addEventListener('click', function (e) {
5
+ e.preventDefault();
6
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
7
+ behavior: 'smooth'
8
+ });
9
+ });
10
+ });
11
+
12
+ // Animation on scroll
13
+ const animateOnScroll = function() {
14
+ const elements = document.querySelectorAll('.fade-in');
15
+ elements.forEach(element => {
16
+ const elementPosition = element.getBoundingClientRect().top;
17
+ const screenPosition = window.innerHeight / 1.3;
18
+
19
+ if(elementPosition < screenPosition) {
20
+ element.style.opacity = '1';
21
+ }
22
+ });
23
+ };
24
+
25
+ window.addEventListener('scroll', animateOnScroll);
26
+ animateOnScroll(); // Initialize
27
+ });
style.css CHANGED
@@ -1,28 +1,33 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
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
+ }