Added dogecoin donation footer.æ

This commit is contained in:
2025-07-30 19:37:55 +02:00
parent 0623770d10
commit ff0f528d36
3 changed files with 101 additions and 9 deletions

View File

@@ -12,8 +12,7 @@ from .database import (
get_overall_weekly_summary, # Now correctly imported get_overall_weekly_summary, # Now correctly imported
) )
app = Flask(__name__, template_folder="../templates") app = Flask(__name__, template_folder='../templates', static_folder='../static')
@app.template_filter("format_mc") @app.template_filter("format_mc")
def format_market_cap(mc): def format_market_cap(mc):

BIN
static/dogecoin_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -283,6 +283,7 @@
text-decoration: none; text-decoration: none;
transition: color 0.2s; transition: color 0.2s;
} }
td.financials a:hover { td.financials a:hover {
color: #93c5fd; color: #93c5fd;
} }
@@ -339,65 +340,88 @@
} }
footer a { footer a {
color: inherit; /* Inherit the color from .brand-subtitle */ color: inherit;
/* Inherit the color from .brand-subtitle */
text-decoration: none; text-decoration: none;
transition: color 0.2s; transition: color 0.2s;
} }
footer a:hover { footer a:hover {
color: #ffffff; /* Make it brighter on hover */ color: #ffffff;
/* Make it brighter on hover */
} }
@media (max-width: 768px) { @media (max-width: 768px) {
body { padding: 0.5rem; } body {
padding: 0.5rem;
}
.navbar { .navbar {
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
padding: 1rem; padding: 1rem;
} }
.view-switcher { .view-switcher {
margin-left: 0; margin-left: 0;
justify-content: center; justify-content: center;
} }
.dropdown-menu { .dropdown-menu {
width: 100%; width: 100%;
} }
.image-container { .image-container {
width: 100%; width: 100%;
padding: 1.5rem 1rem; padding: 1.5rem 1rem;
} }
header { header {
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
} }
.header-action { .header-action {
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
} }
table, thead, tbody, th, td, tr {
table,
thead,
tbody,
th,
td,
tr {
display: block; display: block;
} }
thead { thead {
display: none; display: none;
} }
tr { tr {
border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px; border-radius: 8px;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0.5rem; padding: 0.5rem;
} }
td { td {
border: none; border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
position: relative; position: relative;
padding-left: 50%; padding-left: 50%;
text-align: right; text-align: right;
display: flex; /* Use flex for better alignment */ display: flex;
/* Use flex for better alignment */
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
td:last-child { td:last-child {
border-bottom: none; border-bottom: none;
} }
td::before { td::before {
content: attr(data-label); content: attr(data-label);
position: absolute; position: absolute;
@@ -408,7 +432,67 @@
text-align: left; text-align: left;
color: #718096; color: #718096;
} }
td.ticker, td.rank { text-align: right; }
td.ticker,
td.rank {
text-align: right;
}
}
.image-container footer {
margin-top: 2.5rem;
}
.image-container .brand-name {
font-size: 1.75rem;
font-weight: 800;
letter-spacing: -1px;
}
.image-container .brand-subtitle {
font-size: 1rem;
color: #a0aec0;
}
.image-container footer a {
color: inherit;
text-decoration: none;
transition: color 0.2s;
}
.image-container footer a:hover {
color: #ffffff;
}
.page-footer {
margin-top: 2rem;
padding: 1rem;
width: 100%;
max-width: 750px;
box-sizing: border-box;
background-color: rgba(45, 55, 72, 0.5);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
color: #cbd5e0;
font-size: 0.9rem;
font-weight: 500;
}
.page-footer code {
background-color: #1a202c;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-weight: 600;
color: #e2e8f0;
}
.page-footer .doge-logo {
width: 22px; /* Set a consistent size for the image */
height: 22px;
vertical-align: middle; /* Align it nicely with the text */
} }
</style> </style>
</head> </head>
@@ -436,7 +520,9 @@
<a href="?view=weekly" {% if view_type=='weekly' %}class="active" {% endif %}>Weekly</a> <a href="?view=weekly" {% if view_type=='weekly' %}class="active" {% endif %}>Weekly</a>
<a href="/about" title="About this Project" style="margin-left: 1rem;"> <a href="/about" title="About this Project" style="margin-left: 1rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align: middle;"> <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"
style="vertical-align: middle;">
<circle cx="12" cy="12" r="10"></circle> <circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line> <line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line> <line x1="12" y1="8" x2="12.01" y2="8"></line>
@@ -448,6 +534,13 @@
<main> <main>
{% block content %}{% endblock %} {% block content %}{% endblock %}
</main> </main>
{% if not is_image_mode %}
<footer class="page-footer">
<img src="{{ url_for('static', filename='dogecoin_logo.png') }}" alt="Dogecoin Logo" class="doge-logo">
<span>Support this service with Dogecoin: <code>DRTLo2BsBijY4MrLmNNHzmjZ5tVvpTebFE</code></span>
</footer>
{% endif %}
</body> </body>
</html> </html>