amirhoseinsedaghati's picture
Update configs/html_features.py
77dddfd verified
raw
history blame
526 Bytes
HTML_WRAPPER = """
<div style="overflow-x: auto; border: 1px solid #e6e9ef;">{}</div>
"""
def set_image(url):
HTML_BACKGROUND_IMG = f"""
<style>
body {{
background-image: url('{url}');
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}}
@media (max-width: 768px) {{
body {{
background-size: auto;
}}
}}
</style>
"""
return HTML_BACKGROUND_IMG