Spaces:
Running
Running
Commit
Β·
135072e
1
Parent(s):
96dcaeb
got it?
Browse files- GrISBIIbGjOZmloT1HIeb9S3A4.svg +1 -0
- app.py +1 -1
- report_generator.py +12 -8
- templates/index.html +45 -21
- templates/report.html +11 -8
GrISBIIbGjOZmloT1HIeb9S3A4.svg
ADDED
|
|
app.py
CHANGED
|
@@ -142,4 +142,4 @@ def download_pdf(report_id):
|
|
| 142 |
return jsonify({'error': f'PDF generation failed: {str(e)}'}), 500
|
| 143 |
|
| 144 |
if __name__ == '__main__':
|
| 145 |
-
app.run(debug=
|
|
|
|
| 142 |
return jsonify({'error': f'PDF generation failed: {str(e)}'}), 500
|
| 143 |
|
| 144 |
if __name__ == '__main__':
|
| 145 |
+
app.run(debug=False, host='0.0.0.0', port=7860)
|
report_generator.py
CHANGED
|
@@ -681,8 +681,9 @@ class ReportGenerator:
|
|
| 681 |
}}
|
| 682 |
|
| 683 |
.report-header {{
|
| 684 |
-
background:
|
| 685 |
-
color:
|
|
|
|
| 686 |
padding: 40px;
|
| 687 |
border-radius: 10px;
|
| 688 |
margin-bottom: 30px;
|
|
@@ -721,9 +722,10 @@ class ReportGenerator:
|
|
| 721 |
align-items: center;
|
| 722 |
margin-bottom: 30px;
|
| 723 |
padding: 20px;
|
| 724 |
-
background:
|
|
|
|
| 725 |
border-radius: 10px;
|
| 726 |
-
color:
|
| 727 |
}}
|
| 728 |
|
| 729 |
.health-score {{
|
|
@@ -817,8 +819,9 @@ class ReportGenerator:
|
|
| 817 |
}}
|
| 818 |
|
| 819 |
.metric-card {{
|
| 820 |
-
background:
|
| 821 |
-
|
|
|
|
| 822 |
padding: 20px;
|
| 823 |
border-radius: 10px;
|
| 824 |
text-align: center;
|
|
@@ -956,8 +959,9 @@ class ReportGenerator:
|
|
| 956 |
}}
|
| 957 |
|
| 958 |
.recommendations-section {{
|
| 959 |
-
background:
|
| 960 |
-
|
|
|
|
| 961 |
border-radius: 10px;
|
| 962 |
padding: 30px;
|
| 963 |
}}
|
|
|
|
| 681 |
}}
|
| 682 |
|
| 683 |
.report-header {{
|
| 684 |
+
background: #f8f9fa;
|
| 685 |
+
color: #333;
|
| 686 |
+
border: 2px solid #e9ecef;
|
| 687 |
padding: 40px;
|
| 688 |
border-radius: 10px;
|
| 689 |
margin-bottom: 30px;
|
|
|
|
| 722 |
align-items: center;
|
| 723 |
margin-bottom: 30px;
|
| 724 |
padding: 20px;
|
| 725 |
+
background: #f8f9fa;
|
| 726 |
+
border: 2px solid #28a745;
|
| 727 |
border-radius: 10px;
|
| 728 |
+
color: #333;
|
| 729 |
}}
|
| 730 |
|
| 731 |
.health-score {{
|
|
|
|
| 819 |
}}
|
| 820 |
|
| 821 |
.metric-card {{
|
| 822 |
+
background: #fff;
|
| 823 |
+
border: 2px solid #6c757d;
|
| 824 |
+
color: #333;
|
| 825 |
padding: 20px;
|
| 826 |
border-radius: 10px;
|
| 827 |
text-align: center;
|
|
|
|
| 959 |
}}
|
| 960 |
|
| 961 |
.recommendations-section {{
|
| 962 |
+
background: #f8f9fa;
|
| 963 |
+
border: 2px solid #007bff;
|
| 964 |
+
color: #333;
|
| 965 |
border-radius: 10px;
|
| 966 |
padding: 30px;
|
| 967 |
}}
|
templates/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>SEO
|
| 7 |
<style>
|
| 8 |
* {
|
| 9 |
margin: 0;
|
|
@@ -35,6 +35,26 @@
|
|
| 35 |
font-size: 48px;
|
| 36 |
font-weight: 700;
|
| 37 |
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 39 |
-webkit-background-clip: text;
|
| 40 |
-webkit-text-fill-color: transparent;
|
|
@@ -80,7 +100,7 @@
|
|
| 80 |
|
| 81 |
.form-input:focus {
|
| 82 |
outline: none;
|
| 83 |
-
border-color: #
|
| 84 |
background: rgba(255, 255, 255, 0.08);
|
| 85 |
}
|
| 86 |
|
|
@@ -97,19 +117,24 @@
|
|
| 97 |
.generate-btn {
|
| 98 |
width: 100%;
|
| 99 |
padding: 18px;
|
| 100 |
-
background:
|
| 101 |
-
border:
|
| 102 |
-
border-radius:
|
| 103 |
color: white;
|
| 104 |
font-size: 18px;
|
| 105 |
font-weight: 600;
|
| 106 |
cursor: pointer;
|
| 107 |
-
transition:
|
| 108 |
margin-top: 20px;
|
|
|
|
|
|
|
| 109 |
}
|
| 110 |
|
| 111 |
.generate-btn:hover {
|
| 112 |
transform: translateY(-2px);
|
|
|
|
|
|
|
|
|
|
| 113 |
}
|
| 114 |
|
| 115 |
.generate-btn:disabled {
|
|
@@ -126,18 +151,12 @@
|
|
| 126 |
}
|
| 127 |
|
| 128 |
.option-card {
|
| 129 |
-
background:
|
| 130 |
-
border:
|
| 131 |
border-radius: 12px;
|
| 132 |
padding: 24px;
|
| 133 |
text-align: center;
|
| 134 |
-
|
| 135 |
-
cursor: pointer;
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
.option-card:hover {
|
| 139 |
-
background: rgba(255, 255, 255, 0.05);
|
| 140 |
-
transform: translateY(-4px);
|
| 141 |
}
|
| 142 |
|
| 143 |
.option-icon {
|
|
@@ -147,14 +166,16 @@
|
|
| 147 |
}
|
| 148 |
|
| 149 |
.option-title {
|
| 150 |
-
font-size:
|
| 151 |
-
font-weight:
|
| 152 |
-
margin-bottom:
|
|
|
|
| 153 |
}
|
| 154 |
|
| 155 |
.option-desc {
|
| 156 |
-
color: #
|
| 157 |
-
font-size:
|
|
|
|
| 158 |
}
|
| 159 |
|
| 160 |
.loading-overlay {
|
|
@@ -225,7 +246,10 @@
|
|
| 225 |
<body>
|
| 226 |
<div class="container">
|
| 227 |
<div class="header">
|
| 228 |
-
<h1 class="logo"
|
|
|
|
|
|
|
|
|
|
| 229 |
<p class="subtitle">Professional SEO Analysis & Reporting</p>
|
| 230 |
</div>
|
| 231 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Thinkly SEO</title>
|
| 7 |
<style>
|
| 8 |
* {
|
| 9 |
margin: 0;
|
|
|
|
| 35 |
font-size: 48px;
|
| 36 |
font-weight: 700;
|
| 37 |
margin-bottom: 10px;
|
| 38 |
+
z-index: 10;
|
| 39 |
+
position: relative;
|
| 40 |
+
display: flex;
|
| 41 |
+
align-items: center;
|
| 42 |
+
justify-content: center;
|
| 43 |
+
gap: 12px;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.logo-icon {
|
| 47 |
+
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
| 48 |
+
border-radius: 12px;
|
| 49 |
+
padding: 8px;
|
| 50 |
+
font-size: 28px;
|
| 51 |
+
display: flex;
|
| 52 |
+
align-items: center;
|
| 53 |
+
justify-content: center;
|
| 54 |
+
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.logo-text {
|
| 58 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 59 |
-webkit-background-clip: text;
|
| 60 |
-webkit-text-fill-color: transparent;
|
|
|
|
| 100 |
|
| 101 |
.form-input:focus {
|
| 102 |
outline: none;
|
| 103 |
+
border-color: #374151;
|
| 104 |
background: rgba(255, 255, 255, 0.08);
|
| 105 |
}
|
| 106 |
|
|
|
|
| 117 |
.generate-btn {
|
| 118 |
width: 100%;
|
| 119 |
padding: 18px;
|
| 120 |
+
background: rgba(255, 255, 255, 0.1);
|
| 121 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 122 |
+
border-radius: 12px;
|
| 123 |
color: white;
|
| 124 |
font-size: 18px;
|
| 125 |
font-weight: 600;
|
| 126 |
cursor: pointer;
|
| 127 |
+
transition: all 0.3s ease;
|
| 128 |
margin-top: 20px;
|
| 129 |
+
backdrop-filter: blur(10px);
|
| 130 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
| 131 |
}
|
| 132 |
|
| 133 |
.generate-btn:hover {
|
| 134 |
transform: translateY(-2px);
|
| 135 |
+
background: rgba(255, 255, 255, 0.15);
|
| 136 |
+
border-color: rgba(255, 255, 255, 0.3);
|
| 137 |
+
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
|
| 138 |
}
|
| 139 |
|
| 140 |
.generate-btn:disabled {
|
|
|
|
| 151 |
}
|
| 152 |
|
| 153 |
.option-card {
|
| 154 |
+
background: transparent;
|
| 155 |
+
border: none;
|
| 156 |
border-radius: 12px;
|
| 157 |
padding: 24px;
|
| 158 |
text-align: center;
|
| 159 |
+
cursor: default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
}
|
| 161 |
|
| 162 |
.option-icon {
|
|
|
|
| 166 |
}
|
| 167 |
|
| 168 |
.option-title {
|
| 169 |
+
font-size: 16px;
|
| 170 |
+
font-weight: 500;
|
| 171 |
+
margin-bottom: 6px;
|
| 172 |
+
color: #fff;
|
| 173 |
}
|
| 174 |
|
| 175 |
.option-desc {
|
| 176 |
+
color: #aaa;
|
| 177 |
+
font-size: 13px;
|
| 178 |
+
line-height: 1.4;
|
| 179 |
}
|
| 180 |
|
| 181 |
.loading-overlay {
|
|
|
|
| 246 |
<body>
|
| 247 |
<div class="container">
|
| 248 |
<div class="header">
|
| 249 |
+
<h1 class="logo">
|
| 250 |
+
<span class="logo-icon">π</span>
|
| 251 |
+
<span class="logo-text">Thinkly SEO</span>
|
| 252 |
+
</h1>
|
| 253 |
<p class="subtitle">Professional SEO Analysis & Reporting</p>
|
| 254 |
</div>
|
| 255 |
|
templates/report.html
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
}
|
| 20 |
|
| 21 |
.header {
|
| 22 |
-
background: rgba(
|
| 23 |
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 24 |
padding: 20px 0;
|
| 25 |
position: sticky;
|
|
@@ -40,10 +40,12 @@
|
|
| 40 |
.header-title {
|
| 41 |
font-size: 24px;
|
| 42 |
font-weight: 700;
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
.header-url {
|
|
@@ -76,8 +78,9 @@
|
|
| 76 |
}
|
| 77 |
|
| 78 |
.download-btn.primary {
|
| 79 |
-
background:
|
| 80 |
-
border:
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
.back-btn {
|
|
@@ -161,7 +164,7 @@
|
|
| 161 |
<div class="header">
|
| 162 |
<div class="header-content">
|
| 163 |
<div>
|
| 164 |
-
<div class="header-title">π SEO Report</div>
|
| 165 |
<div class="header-url">{{ url }}</div>
|
| 166 |
</div>
|
| 167 |
<div class="download-buttons">
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
.header {
|
| 22 |
+
background: rgba(10, 10, 10, 0.4);
|
| 23 |
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 24 |
padding: 20px 0;
|
| 25 |
position: sticky;
|
|
|
|
| 40 |
.header-title {
|
| 41 |
font-size: 24px;
|
| 42 |
font-weight: 700;
|
| 43 |
+
color: #fff;
|
| 44 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 45 |
+
background: rgba(255, 255, 255, 0.05);
|
| 46 |
+
padding: 8px 16px;
|
| 47 |
+
border-radius: 8px;
|
| 48 |
+
backdrop-filter: blur(5px);
|
| 49 |
}
|
| 50 |
|
| 51 |
.header-url {
|
|
|
|
| 78 |
}
|
| 79 |
|
| 80 |
.download-btn.primary {
|
| 81 |
+
background: rgba(255, 255, 255, 0.1);
|
| 82 |
+
border: 2px solid #3b82f6;
|
| 83 |
+
box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
|
| 84 |
}
|
| 85 |
|
| 86 |
.back-btn {
|
|
|
|
| 164 |
<div class="header">
|
| 165 |
<div class="header-content">
|
| 166 |
<div>
|
| 167 |
+
<div class="header-title">π Thinkly SEO Report</div>
|
| 168 |
<div class="header-url">{{ url }}</div>
|
| 169 |
</div>
|
| 170 |
<div class="download-buttons">
|