Add logo size variants in UI configuration
Browse files- Create two new functions for Subtify logo: get_html_subtify_logo_big and get_html_subtify_logo_small
- Implement dynamic logo sizing with 2x and 0.5x scaling options
- Enhance UI configuration flexibility for logo display
- ui_config.py +9 -2
ui_config.py
CHANGED
|
@@ -40,10 +40,17 @@ html_social_media = f'''
|
|
| 40 |
'''
|
| 41 |
|
| 42 |
# HTML para el logo
|
| 43 |
-
def
|
| 44 |
return f"""
|
| 45 |
<div style="display: flex; justify-content: center; align-items: center;">
|
| 46 |
-
<img src='https://pub-fb664c455eca46a2ba762a065ac900f7.r2.dev/subtify_logo-scaled.webp' width={new_width}px height={new_height}px >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
</div>
|
| 48 |
"""
|
| 49 |
|
|
|
|
| 40 |
'''
|
| 41 |
|
| 42 |
# HTML para el logo
|
| 43 |
+
def get_html_subtify_logo_big(new_width, new_height):
|
| 44 |
return f"""
|
| 45 |
<div style="display: flex; justify-content: center; align-items: center;">
|
| 46 |
+
<img src='https://pub-fb664c455eca46a2ba762a065ac900f7.r2.dev/subtify_logo-scaled.webp' width={new_width*2}px height={new_height*2}px >
|
| 47 |
+
</div>
|
| 48 |
+
"""
|
| 49 |
+
|
| 50 |
+
def get_html_subtify_logo_small(new_width, new_height):
|
| 51 |
+
return f"""
|
| 52 |
+
<div style="display: flex; justify-content: center; align-items: center;">
|
| 53 |
+
<img src='https://pub-fb664c455eca46a2ba762a065ac900f7.r2.dev/subtify_logo-scaled.webp' width={int(new_width/2)}px height={int(new_height/2)}px >
|
| 54 |
</div>
|
| 55 |
"""
|
| 56 |
|