369Rasenga commited on
Commit
68009ef
·
verified ·
1 Parent(s): c4e504a

Make a site where I can autopist blogs from Google news and recreate new content and post to all blogging sites - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +256 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Pokieboy
3
- emoji: 👀
4
- colorFrom: yellow
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: pokieboy
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: pink
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,256 @@
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>NewsBlog Autoposter - Automated Content Creation</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
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ primary: '#3B82F6',
15
+ secondary: '#10B981',
16
+ dark: '#1F2937',
17
+ light: '#F9FAFB'
18
+ }
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style>
24
+ .gradient-bg {
25
+ background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
26
+ }
27
+ .content-box {
28
+ min-height: 300px;
29
+ max-height: 500px;
30
+ overflow-y: auto;
31
+ }
32
+ .dashboard-card {
33
+ transition: all 0.3s ease;
34
+ }
35
+ .dashboard-card:hover {
36
+ transform: translateY(-5px);
37
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
38
+ }
39
+ .loading-spinner {
40
+ animation: spin 1s linear infinite;
41
+ }
42
+ @keyframes spin {
43
+ 0% { transform: rotate(0deg); }
44
+ 100% { transform: rotate(360deg); }
45
+ }
46
+ .tab-content {
47
+ display: none;
48
+ }
49
+ .tab-content.active {
50
+ display: block;
51
+ }
52
+ </style>
53
+ </head>
54
+ <body class="bg-gray-100 font-sans">
55
+ <!-- Header -->
56
+ <header class="gradient-bg text-white shadow-lg">
57
+ <div class="container mx-auto px-4 py-6">
58
+ <div class="flex justify-between items-center">
59
+ <div class="flex items-center space-x-2">
60
+ <i class="fas fa-newspaper text-3xl"></i>
61
+ <h1 class="text-2xl font-bold">NewsBlog Autoposter</h1>
62
+ </div>
63
+ <nav class="hidden md:block">
64
+ <ul class="flex space-x-6">
65
+ <li><a href="#" class="hover:underline font-medium">Dashboard</a></li>
66
+ <li><a href="#" class="hover:underline">Settings</a></li>
67
+ <li><a href="#" class="hover:underline">Pricing</a></li>
68
+ <li><a href="#" class="hover:underline">Help</a></li>
69
+ </ul>
70
+ </nav>
71
+ <div class="flex items-center space-x-4">
72
+ <button class="bg-white text-primary px-4 py-2 rounded-full font-medium hover:bg-gray-100 transition">Login</button>
73
+ <button class="hidden md:block bg-primary text-white px-4 py-2 rounded-full font-medium hover:bg-blue-700 transition">Sign Up</button>
74
+ <button class="md:hidden text-white text-2xl">
75
+ <i class="fas fa-bars"></i>
76
+ </button>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </header>
81
+
82
+ <!-- Main Content -->
83
+ <main class="container mx-auto px-4 py-8">
84
+ <!-- Dashboard Overview -->
85
+ <section class="mb-12">
86
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
87
+ <div class="dashboard-card bg-white rounded-xl shadow-md p-6">
88
+ <div class="flex justify-between items-center">
89
+ <div>
90
+ <p class="text-gray-500">Articles Processed</p>
91
+ <h3 class="text-3xl font-bold text-primary">1,248</h3>
92
+ </div>
93
+ <div class="bg-blue-100 p-3 rounded-full">
94
+ <i class="fas fa-file-alt text-primary text-xl"></i>
95
+ </div>
96
+ </div>
97
+ <p class="text-green-500 mt-2 text-sm"><i class="fas fa-arrow-up"></i> 12% from last week</p>
98
+ </div>
99
+
100
+ <div class="dashboard-card bg-white rounded-xl shadow-md p-6">
101
+ <div class="flex justify-between items-center">
102
+ <div>
103
+ <p class="text-gray-500">Blogs Connected</p>
104
+ <h3 class="text-3xl font-bold text-secondary">8</h3>
105
+ </div>
106
+ <div class="bg-green-100 p-3 rounded-full">
107
+ <i class="fas fa-globe text-secondary text-xl"></i>
108
+ </div>
109
+ </div>
110
+ <p class="text-green-500 mt-2 text-sm"><i class="fas fa-plus"></i> Add more</p>
111
+ </div>
112
+
113
+ <div class="dashboard-card bg-white rounded-xl shadow-md p-6">
114
+ <div class="flex justify-between items-center">
115
+ <div>
116
+ <p class="text-gray-500">Posts Scheduled</p>
117
+ <h3 class="text-3xl font-bold text-yellow-500">24</h3>
118
+ </div>
119
+ <div class="bg-yellow-100 p-3 rounded-full">
120
+ <i class="fas fa-clock text-yellow-500 text-xl"></i>
121
+ </div>
122
+ </div>
123
+ <p class="text-gray-500 mt-2 text-sm">Next post in 2 hours</p>
124
+ </div>
125
+
126
+ <div class="dashboard-card bg-white rounded-xl shadow-md p-6">
127
+ <div class="flex justify-between items-center">
128
+ <div>
129
+ <p class="text-gray-500">Content Uniqueness</p>
130
+ <h3 class="text-3xl font-bold text-purple-500">87%</h3>
131
+ </div>
132
+ <div class="bg-purple-100 p-3 rounded-full">
133
+ <i class="fas fa-fingerprint text-purple-500 text-xl"></i>
134
+ </div>
135
+ </div>
136
+ <p class="text-green-500 mt-2 text-sm"><i class="fas fa-check"></i> Good quality</p>
137
+ </div>
138
+ </div>
139
+ </section>
140
+
141
+ <!-- Main Functionality -->
142
+ <section class="bg-white rounded-xl shadow-lg overflow-hidden mb-12">
143
+ <div class="border-b border-gray-200">
144
+ <div class="flex overflow-x-auto">
145
+ <button class="tab-btn px-6 py-4 font-medium text-primary border-b-2 border-primary" data-tab="scrape">Scrape News</button>
146
+ <button class="tab-btn px-6 py-4 font-medium text-gray-500 hover:text-primary" data-tab="rewrite">Rewrite Content</button>
147
+ <button class="tab-btn px-6 py-4 font-medium text-gray-500 hover:text-primary" data-tab="schedule">Schedule Posts</button>
148
+ <button class="tab-btn px-6 py-4 font-medium text-gray-500 hover:text-primary" data-tab="publish">Publish Now</button>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Scrape News Tab -->
153
+ <div id="scrape" class="tab-content active p-6">
154
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
155
+ <div class="lg:col-span-1">
156
+ <h2 class="text-xl font-bold mb-4">News Scraper Settings</h2>
157
+ <div class="space-y-4">
158
+ <div>
159
+ <label class="block text-gray-700 mb-2">Search Query</label>
160
+ <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary" placeholder="e.g. technology, business, health">
161
+ </div>
162
+ <div>
163
+ <label class="block text-gray-700 mb-2">Language</label>
164
+ <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary">
165
+ <option>English</option>
166
+ <option>Spanish</option>
167
+ <option>French</option>
168
+ <option>German</option>
169
+ </select>
170
+ </div>
171
+ <div>
172
+ <label class="block text-gray-700 mb-2">Region</label>
173
+ <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary">
174
+ <option>United States</option>
175
+ <option>United Kingdom</option>
176
+ <option>Canada</option>
177
+ <option>Australia</option>
178
+ </select>
179
+ </div>
180
+ <div>
181
+ <label class="block text-gray-700 mb-2">Number of Articles</label>
182
+ <input type="range" min="1" max="20" value="5" class="w-full">
183
+ <div class="flex justify-between text-sm text-gray-500">
184
+ <span>1</span>
185
+ <span>5</span>
186
+ <span>10</span>
187
+ <span>15</span>
188
+ <span>20</span>
189
+ </div>
190
+ </div>
191
+ <button id="scrape-btn" class="w-full bg-primary text-white py-3 rounded-lg font-medium hover:bg-blue-700 transition flex items-center justify-center">
192
+ <i class="fas fa-search mr-2"></i> Scrape Google News
193
+ </button>
194
+ </div>
195
+ </div>
196
+
197
+ <div class="lg:col-span-2">
198
+ <h2 class="text-xl font-bold mb-4">Scraped Articles</h2>
199
+ <div class="bg-gray-50 rounded-lg p-4 content-box">
200
+ <div id="scraped-results" class="space-y-4">
201
+ <div class="text-center py-10 text-gray-400">
202
+ <i class="fas fa-newspaper text-4xl mb-3"></i>
203
+ <p>No articles scraped yet. Enter your search criteria and click "Scrape Google News" to begin.</p>
204
+ </div>
205
+ </div>
206
+ </div>
207
+ </div>
208
+ </div>
209
+ </div>
210
+
211
+ <!-- Rewrite Content Tab -->
212
+ <div id="rewrite" class="tab-content p-6">
213
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
214
+ <div>
215
+ <h2 class="text-xl font-bold mb-4">Original Content</h2>
216
+ <div class="bg-gray-50 rounded-lg p-4 content-box">
217
+ <div id="original-content">
218
+ <p class="text-gray-400 italic">Select an article from the scraped results to view its content here.</p>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ <div>
223
+ <h2 class="text-xl font-bold mb-4">Rewritten Content</h2>
224
+ <div class="bg-gray-50 rounded-lg p-4 content-box">
225
+ <div id="rewritten-content">
226
+ <p class="text-gray-400 italic">Content will be automatically rewritten here after processing.</p>
227
+ </div>
228
+ </div>
229
+ <div class="mt-4 space-y-3">
230
+ <div class="flex items-center">
231
+ <input type="range" id="creativity-slider" min="1" max="10" value="7" class="w-full mr-4">
232
+ <span id="creativity-value" class="font-medium">7/10 Creativity</span>
233
+ </div>
234
+ <div class="flex space-x-3">
235
+ <button id="rewrite-btn" class="flex-1 bg-secondary text-white py-2 rounded-lg font-medium hover:bg-green-700 transition flex items-center justify-center">
236
+ <i class="fas fa-magic mr-2"></i> Rewrite Content
237
+ </button>
238
+ <button class="flex-1 bg-gray-200 text-gray-700 py-2 rounded-lg font-medium hover:bg-gray-300 transition flex items-center justify-center">
239
+ <i class="fas fa-redo mr-2"></i> Regenerate
240
+ </button>
241
+ </div>
242
+ <button class="w-full bg-gray-200 text-gray-700 py-2 rounded-lg font-medium hover:bg-gray-300 transition flex items-center justify-center">
243
+ <i class="fas fa-edit mr-2"></i> Manual Edit
244
+ </button>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ </div>
249
+
250
+ <!-- Schedule Posts Tab -->
251
+ <div id="schedule" class="tab-content p-6">
252
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
253
+ <div class="lg:col-span-1">
254
+ <h2 class="text-xl font-bold mb
255
+ <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=369Rasenga/pokieboy" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
256
+ </html>