Update app.py
Browse files
app.py
CHANGED
|
@@ -467,7 +467,7 @@ def register():
|
|
| 467 |
<title>Register - Content Hub</title>
|
| 468 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 469 |
<style>
|
| 470 |
-
|
| 471 |
.container {
|
| 472 |
max-width: 500px;
|
| 473 |
background: var(--card-bg-light);
|
|
@@ -581,7 +581,7 @@ def login():
|
|
| 581 |
<title>Login - Content Hub</title>
|
| 582 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 583 |
<style>
|
| 584 |
-
|
| 585 |
.container {
|
| 586 |
max-width: 500px;
|
| 587 |
background: var(--card-bg-light);
|
|
@@ -710,7 +710,7 @@ def feed():
|
|
| 710 |
<title>Adusis - QoS, BBC, BNWO HUB</title>
|
| 711 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 712 |
<style>
|
| 713 |
-
|
| 714 |
h1 {
|
| 715 |
font-size: 2.5em;
|
| 716 |
font-weight: 800;
|
|
@@ -916,7 +916,7 @@ def post_page(post_id):
|
|
| 916 |
<title>{{ post['title'] }} - Content Hub</title>
|
| 917 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 918 |
<style>
|
| 919 |
-
|
| 920 |
.container {
|
| 921 |
max-width: 900px;
|
| 922 |
background: var(--card-bg-light);
|
|
@@ -1112,7 +1112,7 @@ def profile():
|
|
| 1112 |
<title>Profile - {{ username }} - Content Hub</title>
|
| 1113 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 1114 |
<style>
|
| 1115 |
-
|
| 1116 |
.container {
|
| 1117 |
max-width: 900px;
|
| 1118 |
}
|
|
@@ -1345,7 +1345,7 @@ def user_profile(username):
|
|
| 1345 |
<title>Profile - {{ username }} - Content Hub</title>
|
| 1346 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 1347 |
<style>
|
| 1348 |
-
|
| 1349 |
.container {
|
| 1350 |
max-width: 900px;
|
| 1351 |
}
|
|
@@ -1598,7 +1598,7 @@ def upload():
|
|
| 1598 |
<title>Upload Content - Content Hub</title>
|
| 1599 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 1600 |
<style>
|
| 1601 |
-
|
| 1602 |
.container {
|
| 1603 |
max-width: 600px;
|
| 1604 |
background: var(--card-bg-light);
|
|
@@ -1802,6 +1802,7 @@ def chat():
|
|
| 1802 |
margin-bottom: 12px;
|
| 1803 |
font-size: 1em;
|
| 1804 |
transition: var(--transition);
|
|
|
|
| 1805 |
}
|
| 1806 |
body.dark .message {
|
| 1807 |
background: var(--card-bg-dark);
|
|
@@ -1821,7 +1822,8 @@ def chat():
|
|
| 1821 |
}
|
| 1822 |
.message .time {
|
| 1823 |
font-size: 0.85em;
|
| 1824 |
-
color: rgba(0, 0, 0, 0.6
|
|
|
|
| 1825 |
}
|
| 1826 |
body.dark .message .time {
|
| 1827 |
color: rgba(255, 255, 255, 0.6);
|
|
@@ -1829,6 +1831,7 @@ def chat():
|
|
| 1829 |
.message img, .message video {
|
| 1830 |
max-width: 280px;
|
| 1831 |
max-height: 280px;
|
|
|
|
| 1832 |
border-radius: 10px;
|
| 1833 |
margin-top: 10px;
|
| 1834 |
display: block;
|
|
@@ -1855,6 +1858,25 @@ def chat():
|
|
| 1855 |
body.dark .post-select {
|
| 1856 |
color: var(--text-dark);
|
| 1857 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1858 |
</style>
|
| 1859 |
</head>
|
| 1860 |
<body>
|
|
@@ -2433,17 +2455,18 @@ def private_chat(recipient):
|
|
| 2433 |
font-size: 1em;
|
| 2434 |
transition: var(--transition);
|
| 2435 |
box-shadow: var(--shadow);
|
|
|
|
|
|
|
| 2436 |
}
|
| 2437 |
body.dark .message-content {
|
| 2438 |
background: var(--card-bg-dark);
|
|
|
|
| 2439 |
}
|
| 2440 |
.message.sent .message-content {
|
| 2441 |
-
|
| 2442 |
-
color: white;
|
| 2443 |
}
|
| 2444 |
.message.received .message-content {
|
| 2445 |
-
|
| 2446 |
-
color: var(--text-dark);
|
| 2447 |
}
|
| 2448 |
.message:hover .message-content {
|
| 2449 |
transform: translateY(-2px);
|
|
@@ -2463,12 +2486,13 @@ def private_chat(recipient):
|
|
| 2463 |
margin-top: 5px;
|
| 2464 |
display: block;
|
| 2465 |
}
|
| 2466 |
-
body.dark .message .time
|
| 2467 |
color: rgba(255, 255, 255, 0.6);
|
| 2468 |
}
|
| 2469 |
.message img, .message video {
|
| 2470 |
max-width: 280px;
|
| 2471 |
max-height: 280px;
|
|
|
|
| 2472 |
border-radius: 10px;
|
| 2473 |
margin-top: 10px;
|
| 2474 |
display: block;
|
|
@@ -2502,6 +2526,25 @@ def private_chat(recipient):
|
|
| 2502 |
object-fit: cover;
|
| 2503 |
box-shadow: var(--shadow);
|
| 2504 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2505 |
</style>
|
| 2506 |
</head>
|
| 2507 |
<body>
|
|
|
|
| 467 |
<title>Register - Content Hub</title>
|
| 468 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 469 |
<style>
|
| 470 |
+
''' + BASE_STYLE + '''
|
| 471 |
.container {
|
| 472 |
max-width: 500px;
|
| 473 |
background: var(--card-bg-light);
|
|
|
|
| 581 |
<title>Login - Content Hub</title>
|
| 582 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 583 |
<style>
|
| 584 |
+
''' + BASE_STYLE + '''
|
| 585 |
.container {
|
| 586 |
max-width: 500px;
|
| 587 |
background: var(--card-bg-light);
|
|
|
|
| 710 |
<title>Adusis - QoS, BBC, BNWO HUB</title>
|
| 711 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 712 |
<style>
|
| 713 |
+
''' + BASE_STYLE + '''
|
| 714 |
h1 {
|
| 715 |
font-size: 2.5em;
|
| 716 |
font-weight: 800;
|
|
|
|
| 916 |
<title>{{ post['title'] }} - Content Hub</title>
|
| 917 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 918 |
<style>
|
| 919 |
+
''' + BASE_STYLE + '''
|
| 920 |
.container {
|
| 921 |
max-width: 900px;
|
| 922 |
background: var(--card-bg-light);
|
|
|
|
| 1112 |
<title>Profile - {{ username }} - Content Hub</title>
|
| 1113 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 1114 |
<style>
|
| 1115 |
+
''' + BASE_STYLE + '''
|
| 1116 |
.container {
|
| 1117 |
max-width: 900px;
|
| 1118 |
}
|
|
|
|
| 1345 |
<title>Profile - {{ username }} - Content Hub</title>
|
| 1346 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 1347 |
<style>
|
| 1348 |
+
''' + BASE_STYLE + '''
|
| 1349 |
.container {
|
| 1350 |
max-width: 900px;
|
| 1351 |
}
|
|
|
|
| 1598 |
<title>Upload Content - Content Hub</title>
|
| 1599 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
| 1600 |
<style>
|
| 1601 |
+
''' + BASE_STYLE + '''
|
| 1602 |
.container {
|
| 1603 |
max-width: 600px;
|
| 1604 |
background: var(--card-bg-light);
|
|
|
|
| 1802 |
margin-bottom: 12px;
|
| 1803 |
font-size: 1em;
|
| 1804 |
transition: var(--transition);
|
| 1805 |
+
word-wrap: break-word;
|
| 1806 |
}
|
| 1807 |
body.dark .message {
|
| 1808 |
background: var(--card-bg-dark);
|
|
|
|
| 1822 |
}
|
| 1823 |
.message .time {
|
| 1824 |
font-size: 0.85em;
|
| 1825 |
+
color: rgba(0, 0, 0, 0.6);
|
| 1826 |
+
margin-left: 10px;
|
| 1827 |
}
|
| 1828 |
body.dark .message .time {
|
| 1829 |
color: rgba(255, 255, 255, 0.6);
|
|
|
|
| 1831 |
.message img, .message video {
|
| 1832 |
max-width: 280px;
|
| 1833 |
max-height: 280px;
|
| 1834 |
+
width: 100%;
|
| 1835 |
border-radius: 10px;
|
| 1836 |
margin-top: 10px;
|
| 1837 |
display: block;
|
|
|
|
| 1858 |
body.dark .post-select {
|
| 1859 |
color: var(--text-dark);
|
| 1860 |
}
|
| 1861 |
+
@media (max-width: 480px) {
|
| 1862 |
+
.container {
|
| 1863 |
+
padding: 20px;
|
| 1864 |
+
}
|
| 1865 |
+
.messages {
|
| 1866 |
+
max-height: 400px;
|
| 1867 |
+
}
|
| 1868 |
+
.message {
|
| 1869 |
+
padding: 10px 14px;
|
| 1870 |
+
font-size: 0.9em;
|
| 1871 |
+
}
|
| 1872 |
+
.message img, .message video {
|
| 1873 |
+
max-width: 200px;
|
| 1874 |
+
max-height: 200px;
|
| 1875 |
+
}
|
| 1876 |
+
.message-form textarea {
|
| 1877 |
+
font-size: 0.9em;
|
| 1878 |
+
}
|
| 1879 |
+
}
|
| 1880 |
</style>
|
| 1881 |
</head>
|
| 1882 |
<body>
|
|
|
|
| 2455 |
font-size: 1em;
|
| 2456 |
transition: var(--transition);
|
| 2457 |
box-shadow: var(--shadow);
|
| 2458 |
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
| 2459 |
+
word-wrap: break-word;
|
| 2460 |
}
|
| 2461 |
body.dark .message-content {
|
| 2462 |
background: var(--card-bg-dark);
|
| 2463 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 2464 |
}
|
| 2465 |
.message.sent .message-content {
|
| 2466 |
+
border-color: var(--primary);
|
|
|
|
| 2467 |
}
|
| 2468 |
.message.received .message-content {
|
| 2469 |
+
border-color: var(--secondary);
|
|
|
|
| 2470 |
}
|
| 2471 |
.message:hover .message-content {
|
| 2472 |
transform: translateY(-2px);
|
|
|
|
| 2486 |
margin-top: 5px;
|
| 2487 |
display: block;
|
| 2488 |
}
|
| 2489 |
+
body.dark .message .time {
|
| 2490 |
color: rgba(255, 255, 255, 0.6);
|
| 2491 |
}
|
| 2492 |
.message img, .message video {
|
| 2493 |
max-width: 280px;
|
| 2494 |
max-height: 280px;
|
| 2495 |
+
width: 100%;
|
| 2496 |
border-radius: 10px;
|
| 2497 |
margin-top: 10px;
|
| 2498 |
display: block;
|
|
|
|
| 2526 |
object-fit: cover;
|
| 2527 |
box-shadow: var(--shadow);
|
| 2528 |
}
|
| 2529 |
+
@media (max-width: 480px) {
|
| 2530 |
+
.container {
|
| 2531 |
+
padding: 20px;
|
| 2532 |
+
}
|
| 2533 |
+
.messages {
|
| 2534 |
+
max-height: 400px;
|
| 2535 |
+
}
|
| 2536 |
+
.message {
|
| 2537 |
+
max-width: 85%;
|
| 2538 |
+
}
|
| 2539 |
+
.message-content {
|
| 2540 |
+
padding: 10px 14px;
|
| 2541 |
+
font-size: 0.9em;
|
| 2542 |
+
}
|
| 2543 |
+
.message img, .message video {
|
| 2544 |
+
max-width: 200px;
|
| 2545 |
+
max-height: 200px;
|
| 2546 |
+
}
|
| 2547 |
+
}
|
| 2548 |
</style>
|
| 2549 |
</head>
|
| 2550 |
<body>
|