privateuserh commited on
Commit
4662280
·
verified ·
1 Parent(s): 4dfa58e

Make a minimalist site for California Films Project (CFP), no description on the main page, just the title of the project and subtext saying film tax incentives. Make a floating button panel to issue a unique id to visitors. Add code to connect the floating button to a D1 SQL Database on cloudflare. Add a description in the floating button window that asks the user to Indicate their Interest (IOI) to participate and add a selector for Investor or Filmmaker. The unique id will serve as their placeholder in the project. May the theme very clean sleek and highly efficient. - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +175 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Cfp2035
3
- emoji: 💻
4
- colorFrom: green
5
- colorTo: yellow
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: cfp2035
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,175 @@
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>California Films Project</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ body {
11
+ background-color: #f8f9fa;
12
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
13
+ }
14
+
15
+ .floating-panel {
16
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
17
+ transition: all 0.3s ease;
18
+ transform: translateY(0);
19
+ }
20
+
21
+ .floating-panel:hover {
22
+ transform: translateY(-5px);
23
+ }
24
+
25
+ .floating-panel.hidden {
26
+ transform: translateY(100px);
27
+ }
28
+
29
+ .gradient-text {
30
+ background: linear-gradient(90deg, #3b82f6, #10b981);
31
+ -webkit-background-clip: text;
32
+ background-clip: text;
33
+ color: transparent;
34
+ }
35
+ </style>
36
+ </head>
37
+ <body class="min-h-screen bg-gray-50 flex flex-col">
38
+ <!-- Main Content -->
39
+ <main class="flex-grow flex flex-col items-center justify-center p-4 text-center">
40
+ <h1 class="text-5xl md:text-7xl font-bold mb-4 gradient-text">California Films Project</h1>
41
+ <p class="text-xl md:text-2xl text-gray-600">film tax incentives</p>
42
+ </main>
43
+
44
+ <!-- Floating Button -->
45
+ <div class="fixed bottom-6 right-6 z-50">
46
+ <button id="togglePanel" class="bg-blue-600 hover:bg-blue-700 text-white w-16 h-16 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 transform hover:scale-110">
47
+ <i class="fas fa-id-card text-2xl"></i>
48
+ </button>
49
+ </div>
50
+
51
+ <!-- Floating Panel -->
52
+ <div id="floatingPanel" class="fixed bottom-24 right-6 w-80 bg-white rounded-xl shadow-xl p-6 hidden opacity-0 transition-all duration-300 transform translate-y-4 z-40">
53
+ <div class="flex justify-between items-center mb-4">
54
+ <h3 class="text-xl font-semibold text-gray-800">Indicate Your Interest</h3>
55
+ <button id="closePanel" class="text-gray-500 hover:text-gray-700">
56
+ <i class="fas fa-times"></i>
57
+ </button>
58
+ </div>
59
+
60
+ <p class="text-gray-600 mb-4">Please complete this form to participate in the California Films Project. Your unique ID will serve as your placeholder.</p>
61
+
62
+ <form id="interestForm" class="space-y-4">
63
+ <div>
64
+ <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
65
+ <input type="text" id="name" name="name" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
66
+ </div>
67
+
68
+ <div>
69
+ <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
70
+ <input type="email" id="email" name="email" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
71
+ </div>
72
+
73
+ <div>
74
+ <label class="block text-sm font-medium text-gray-700 mb-1">You are a:</label>
75
+ <div class="mt-1 space-y-2">
76
+ <div class="flex items-center">
77
+ <input id="investor" name="role" type="radio" value="Investor" class="h-4 w-4 text-blue-600 focus:ring-blue-500" checked>
78
+ <label for="investor" class="ml-2 block text-sm text-gray-700">Investor</label>
79
+ </div>
80
+ <div class="flex items-center">
81
+ <input id="filmmaker" name="role" type="radio" value="Filmmaker" class="h-4 w-4 text-blue-600 focus:ring-blue-500">
82
+ <label for="filmmaker" class="ml-2 block text-sm text-gray-700">Filmmaker</label>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ <div>
88
+ <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition duration-300 flex items-center justify-center">
89
+ Generate Unique ID
90
+ <i class="fas fa-arrow-right ml-2"></i>
91
+ </button>
92
+ </div>
93
+ </form>
94
+
95
+ <div id="successMessage" class="hidden mt-4 p-4 bg-green-50 rounded-md text-green-700">
96
+ <div class="flex items-center">
97
+ <i class="fas fa-check-circle mr-2"></i>
98
+ <span>Your unique ID is: <span id="uniqueID" class="font-bold"></span></span>
99
+ </div>
100
+ <p class="mt-2 text-sm">We'll be in touch soon!</p>
101
+ </div>
102
+ </div>
103
+
104
+ <script>
105
+ // Panel toggle logic
106
+ const togglePanel = document.getElementById('togglePanel');
107
+ const floatingPanel = document.getElementById('floatingPanel');
108
+ const closePanel = document.getElementById('closePanel');
109
+
110
+ togglePanel.addEventListener('click', () => {
111
+ floatingPanel.classList.toggle('hidden');
112
+ floatingPanel.classList.toggle('opacity-0');
113
+ floatingPanel.classList.toggle('translate-y-4');
114
+ });
115
+
116
+ closePanel.addEventListener('click', () => {
117
+ floatingPanel.classList.add('hidden');
118
+ floatingPanel.classList.add('opacity-0');
119
+ floatingPanel.classList.add('translate-y-4');
120
+ });
121
+
122
+ // Form submission to Cloudflare D1
123
+ const interestForm = document.getElementById('interestForm');
124
+ const successMessage = document.getElementById('successMessage');
125
+
126
+ interestForm.addEventListener('submit', async (e) => {
127
+ e.preventDefault();
128
+
129
+ const formData = {
130
+ name: document.getElementById('name').value,
131
+ email: document.getElementById('email').value,
132
+ role: document.querySelector('input[name="role"]:checked').value,
133
+ timestamp: new Date().toISOString()
134
+ };
135
+
136
+ // Generate a unique ID (for demo, in production this would come from D1)
137
+ const uniqueId = 'CFP-' + Math.random().toString(36).substr(2, 8).toUpperCase();
138
+
139
+ try {
140
+ // In a real implementation, you would:
141
+ // 1. Make a fetch request to your Cloudflare Worker
142
+ // 2. The Worker would insert into D1 SQL database
143
+ // 3. Return the unique ID from D1
144
+
145
+ // Example fetch (commented out - replace with your actual endpoint)
146
+ /*
147
+ const response = await fetch('https://your-worker.your-subdomain.workers.dev/api/register', {
148
+ method: 'POST',
149
+ headers: {
150
+ 'Content-Type': 'application/json',
151
+ },
152
+ body: JSON.stringify(formData),
153
+ });
154
+
155
+ if (!response.ok) throw new Error('Network response was not ok');
156
+
157
+ const data = await response.json();
158
+ const uniqueId = data.uniqueId;
159
+ */
160
+
161
+ // For this demo, we'll use the locally generated ID
162
+ document.getElementById('uniqueID').textContent = uniqueId;
163
+ interestForm.classList.add('hidden');
164
+ successMessage.classList.remove('hidden');
165
+
166
+ // You would also want to store the ID in localStorage or send it to the backend
167
+
168
+ } catch (error) {
169
+ console.error('Error:', error);
170
+ alert('There was an error submitting your information. Please try again.');
171
+ }
172
+ });
173
+ </script>
174
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=privateuserh/cfp2035" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
175
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Make a minimalist site for California Films Project (CFP), no description on the main page, just the title of the project and subtext saying film tax incentives. Make a floating button panel to issue a unique id to visitors. Add code to connect the floating button to a D1 SQL Database on cloudflare. Add a description in the floating button window that asks the user to Indicate their Interest (IOI) to participate and add a selector for Investor or Filmmaker. The unique id will serve as their placeholder in the project. May the theme very clean sleek and highly efficient.