yashgori20 commited on
Commit
3b6511b
Β·
1 Parent(s): d38f21a
Files changed (5) hide show
  1. Dockerfile +0 -11
  2. README.md +3 -3
  3. app.py +3 -0
  4. requirements.txt +1 -1
  5. templates/report.html +31 -64
Dockerfile DELETED
@@ -1,11 +0,0 @@
1
- FROM python:3.9
2
-
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
-
9
- COPY . /code/
10
-
11
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: SEO Report Generator
3
  emoji: πŸ”
4
  colorFrom: blue
5
  colorTo: green
@@ -9,9 +9,9 @@ pinned: false
9
  license: mit
10
  ---
11
 
12
- # SEO Report Generator
13
 
14
- A one-click SEO report generator that creates comprehensive SEO analysis reports from any website URL. Built with Streamlit and designed to be modular and extensible.
15
 
16
  ## Features
17
 
 
1
  ---
2
+ title: Thinkly Labs SEO
3
  emoji: πŸ”
4
  colorFrom: blue
5
  colorTo: green
 
9
  license: mit
10
  ---
11
 
12
+ # Thinkly Labs SEO
13
 
14
+ Professional SEO analysis and reporting tool that creates comprehensive SEO audit reports from any website URL. Built with Flask and designed to be modular and extensible.
15
 
16
  ## Features
17
 
app.py CHANGED
@@ -1,8 +1,11 @@
 
1
  from flask import Flask, render_template, request, jsonify, send_file, redirect, url_for
2
  import validators
3
  import os
4
  import tempfile
5
  import uuid
 
 
6
  from modules.technical_seo import TechnicalSEOModule
7
  from modules.content_audit import ContentAuditModule
8
  from report_generator import ReportGenerator
 
1
+ # Thinkly Labs SEO - Flask Application
2
  from flask import Flask, render_template, request, jsonify, send_file, redirect, url_for
3
  import validators
4
  import os
5
  import tempfile
6
  import uuid
7
+
8
+ # Import SEO modules
9
  from modules.technical_seo import TechnicalSEOModule
10
  from modules.content_audit import ContentAuditModule
11
  from report_generator import ReportGenerator
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  flask
2
  requests
3
  beautifulsoup4
@@ -7,5 +8,4 @@ jinja2
7
  validators
8
  urllib3
9
  lxml
10
- uuid
11
  reportlab
 
1
+ # Thinkly Labs SEO - Dependencies
2
  flask
3
  requests
4
  beautifulsoup4
 
8
  validators
9
  urllib3
10
  lxml
 
11
  reportlab
templates/report.html CHANGED
@@ -20,13 +20,8 @@
20
  }
21
 
22
  .header {
23
- background: rgba(0, 0, 0, 0.85);
24
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
25
  padding: 20px 0;
26
- position: sticky;
27
- top: 0;
28
- backdrop-filter: blur(10px);
29
- z-index: 100;
30
  }
31
 
32
  .header-content {
@@ -39,64 +34,38 @@
39
  }
40
 
41
  .header-title {
42
- font-size: 24px;
43
- font-weight: 700;
44
- color: #fff;
45
- border: 1px solid rgba(255, 255, 255, 0.2);
46
- background: rgba(255, 255, 255, 0.05);
47
- padding: 8px 16px;
48
- border-radius: 8px;
49
- backdrop-filter: blur(5px);
50
- }
51
-
52
- .header-url {
53
- color: #888;
54
- font-size: 16px;
55
  }
56
 
57
- .download-buttons {
58
  display: flex;
59
  gap: 12px;
60
  }
61
 
62
- .download-btn {
63
- padding: 12px 24px;
64
- border: 1px solid rgba(255, 255, 255, 0.2);
65
- border-radius: 8px;
66
- background: rgba(255, 255, 255, 0.05);
67
- color: #fff;
68
  text-decoration: none;
69
  font-weight: 500;
 
70
  transition: all 0.3s ease;
71
  display: flex;
72
  align-items: center;
73
- gap: 8px;
74
- }
75
-
76
- .download-btn:hover {
77
- background: rgba(255, 255, 255, 0.1);
78
- transform: translateY(-2px);
79
  }
80
 
81
- .download-btn.primary {
82
- background: rgba(255, 255, 255, 0.1);
83
- border: 2px solid #3b82f6;
84
- box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
85
- }
86
-
87
- .back-btn {
88
- padding: 12px 24px;
89
- border: 1px solid rgba(255, 255, 255, 0.2);
90
- border-radius: 8px;
91
- background: transparent;
92
- color: #fff;
93
- text-decoration: none;
94
- font-weight: 500;
95
- transition: all 0.3s ease;
96
- }
97
-
98
- .back-btn:hover {
99
- background: rgba(255, 255, 255, 0.1);
100
  }
101
 
102
  .report-container {
@@ -167,20 +136,18 @@
167
  <body>
168
  <div class="header">
169
  <div class="header-content">
170
- <div>
171
- <div class="header-title">
172
- <img src="/static/logo.svg" alt="Thinkly Logo"
173
- style="width: 20px; height: 20px; margin-right: 8px; filter: brightness(0) invert(1);">
174
- Thinkly Labs SEO Report
175
- </div>
176
- <div class="header-url">{{ url }}</div>
177
  </div>
178
- <div class="download-buttons">
179
- <a href="/" class="back-btn">← Back to Generator</a>
180
- <a href="/download/{{ report_id }}" class="download-btn">
181
- πŸ“„ Download HTML
182
- </a>
183
- <a href="/download-pdf/{{ report_id }}" class="download-btn primary">
 
 
 
184
  πŸ“‘ Download PDF
185
  </a>
186
  </div>
 
20
  }
21
 
22
  .header {
 
 
23
  padding: 20px 0;
24
+ position: relative;
 
 
 
25
  }
26
 
27
  .header-content {
 
34
  }
35
 
36
  .header-title {
37
+ font-size: 18px;
38
+ font-weight: 600;
39
+ color: #000;
40
+ position: absolute;
41
+ left: 50%;
42
+ transform: translateX(-50%);
43
+ display: flex;
44
+ align-items: center;
 
 
 
 
 
45
  }
46
 
47
+ .action-buttons {
48
  display: flex;
49
  gap: 12px;
50
  }
51
 
52
+ .action-btn {
53
+ padding: 8px 16px;
54
+ border: none;
55
+ background: transparent;
56
+ color: #666;
 
57
  text-decoration: none;
58
  font-weight: 500;
59
+ font-size: 14px;
60
  transition: all 0.3s ease;
61
  display: flex;
62
  align-items: center;
63
+ gap: 6px;
 
 
 
 
 
64
  }
65
 
66
+ .action-btn:hover {
67
+ color: #000;
68
+ font-size: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
 
71
  .report-container {
 
136
  <body>
137
  <div class="header">
138
  <div class="header-content">
139
+ <div class="action-buttons">
140
+ <a href="/" class="action-btn">← Back to Generator</a>
 
 
 
 
 
141
  </div>
142
+
143
+ <div class="header-title">
144
+ <img src="/static/logo.svg" alt="Thinkly Logo"
145
+ style="width: 16px; height: 16px; margin-right: 6px;">
146
+ Thinkly Labs SEO
147
+ </div>
148
+
149
+ <div class="action-buttons">
150
+ <a href="/download-pdf/{{ report_id }}" class="action-btn primary">
151
  πŸ“‘ Download PDF
152
  </a>
153
  </div>