File size: 1,959 Bytes
f909f76
 
44f3a8a
 
 
 
 
 
 
 
 
 
 
 
 
 
f909f76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import streamlit as st
from datetime import datetime
net_value = 0

def find_quantity_range(quantity, quantity_labels):
    for label in quantity_labels:
        if '+' in label:
            lower = int(label.replace('+', '').strip())
            if quantity >= lower:
                return label
        elif '-' in label:
            parts = label.split('-')
            low = int(parts[0].strip())
            high = int(parts[1].strip())
            if low <= quantity <= high:
                return label
    return quantity_labels[-1] 


def footer():
    theme_bg = st.get_option("theme.backgroundColor")
    theme_text = st.get_option("theme.textColor")
    theme_primary = st.get_option("theme.primaryColor")

    current_year = datetime.now().year 

    footer_html = f"""

    <style>

        @media (max-width: 768px) {{

            .footer {{ display: none; }}

        }}

        .footer {{

            bottom: 0;

            width: 100%;

            background-color: {theme_bg}; 

            color: {theme_text}; 

            text-align: center;

            padding: 10px;

            font-size: 14px;

            border-top: 1px solid rgba(255, 255, 255, 0.2); 

        }}

        .footer a {{

            color: {theme_primary}; 

            text-decoration: none;

            margin: 0 10px;

        }}

    </style>

    <div class="footer">

        &copy; {current_year} Key Innovations Inc. All rights reserved. 

        <br>

        Follow us on:

        <a href="https://www.linkedin.com/company/keyinnovations" target="_blank">LinkedIn</a> |

        <a href="https://twitter.com/keyinnovations" target="_blank">Twitter</a> |

        <a href="https://www.instagram.com/key.innovations/" target="_blank">Instagram</a> |

        <a href="https://www.facebook.com/KeyInnovations/" target="_blank">Facebook</a>

    </div>

    """
    st.markdown(footer_html, unsafe_allow_html=True)