Exemplo n.º 1
0
def footer():
    myargs = [
        image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
              width=px(25),
              height=px(25)),
        " Developed",
        " by ",
        link("https://www.github.com/chunmusic", "ChunzPs "),
        image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
              width=px(25),
              height=px(25)),
        br(),
        br(),
        link("https://www.buymeacoffee.com/ChunzPs",
             image('https://i.imgur.com/thJhzOO.png')),
    ]
    layout(*myargs)
def footer(inp_views):
    myargs = [
        "Visitors - ", str(inp_views),
        br(),
        "Developed with \u2764\ufe0f by ",
        link("https://github.com/prakash100198/covid-resources-web-app", "Prakash"),
        "     ",

    ]
    layout(*myargs)
def footer(inp_views):
    myargs = [
        "Page Visits - ", str(inp_views),
        br(),
        "Created by ",
        link("https://github.com/bhattbhavesh91", "Bhavesh Bhatt"),
        "     ",
        
    ]
    layout(*myargs)
Exemplo n.º 4
0
def footer():
    myargs = [
        "&nbsp&nbsp Coded by ",
        link("https://www.grantthornton.es/", "Grant Thornton Spain"),
        br(),
        "&nbsp&nbsp",
        link(
            "https://www.buymeacoffee.com/nonay",
            image(
                'https://camo.githubusercontent.com/b18e4e33eb88215c17a5a66de3b51d92ce22cd7bbaf568561ecb0154ef3c1d76/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f3733382f312a47393575796f6b4148344a433550707678344c6d6f514032782e706e67',
                height=px(20))),
    ]
    layout(*myargs)
Exemplo n.º 5
0
def footer():
    myargs = [
        "&nbsp&nbsp Coded in ",
        link("https://www.streamlit.io/", image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
              width=px(25), height=px(25))),
        " by ",
        link("https://www.linkedin.com/in/poleniuk/", "@PatrykOleniuk"),
        br(),"&nbsp&nbsp",
        link("https://www.buymeacoffee.com/patrykoleniuk", 
            image('https://camo.githubusercontent.com/b18e4e33eb88215c17a5a66de3b51d92ce22cd7bbaf568561ecb0154ef3c1d76/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f3733382f312a47393575796f6b4148344a433550707678344c6d6f514032782e706e67', 
            height=px(20))),
    ]
    layout(*myargs)
Exemplo n.º 6
0
def footer():
    myargs = [
        "Designed in ",
        link('https://streamlit.io/',
            image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
                  width=px(25), height=px(25))),
        " by Carlos Espejo Peña",
        br(),
        link("https://www.linkedin.com/in/carlosespejopena/", image('https://drive.google.com/uc?export=view&id=1nx0u9GeUyYttqyju6Z1824UCqto6hXZv')),
        " | ",
        link("https://github.com/caresppen", image('https://drive.google.com/uc?export=view&id=17_77FAziJKdyZaRkjzlGFTKaPAKGdszl')),
    ]
    layout(*myargs)
Exemplo n.º 7
0
def footer():
    myargs = [
        "Made in ",
        image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
              width=px(25),
              height=px(25)), " for ",
        image(
            'https://upload.wikimedia.org/wikipedia/commons/0/05/BBVA_2019.svg',
            width=px(35),
            height=px(30)), " by ",
        link('https://bluetab.com/', 'Bluetab'),
        br()
    ]
    layout(*myargs)
Exemplo n.º 8
0
def footer():
    myargs = [
        "Made in 	  ",
        image('https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
              width=px(25),
              height=px(25)),
        "	  with ❤️ by  ",
        link("https://twitter.com/ChristianKlose3", "@ChristianKlose3"),
        br(),
        link(
            "https://www.buymeacoffee.com/ChrisChross",
            image('https://i.imgur.com/thJhzOO.png'),
        ),
    ]
    layout(*myargs)
Exemplo n.º 9
0
def footer():
    myargs = [
        "Our analysis was conducted based on market prices as at December 2019, prior to the outbreak of COVID-19.",
        br(),
        "Made in ",
        image(
            'https://seeklogo.com/images/U/united-kingdom-flag-logo-1088704B5E-seeklogo.com.png',
            width=px(20),
            height=px(15)),
        " by Pierre, Harry & Ian",
        # link("https://twitter.com/ChristianKlose3", "Pierre, Harry & Ian"),
        # br(),with ❤️
        # link("https://buymeacoffee.com/chrischross", image('https://i.imgur.com/thJhzOO.png')),
    ]
    layout(*myargs)
Exemplo n.º 10
0
def footer():
    myargs = [
        "&nbsp&nbsp Coded in ",
        link(
            "https://www.streamlit.io/",
            image(
                'https://avatars3.githubusercontent.com/u/45109972?s=400&v=4',
                width=px(25),
                height=px(25))),
        " by ",
        link("https://www.linkedin.com/in/poleniuk/", "@PatrykOleniuk"),
        br(),
        "&nbsp &nbsp",
        link("https://github.com/patryk-oleniuk/face-emotionz-webapp",
             "source code"),
    ]
    layout(*myargs)
Exemplo n.º 11
0
    def markup(self, tokens: List[Union[str, HtmlElement]],
               spans: List[Tuple[int, int, int, str, str]]):
        """Style text with multiple layers of colored underlines.
            Args:
                tokens: list of tokens, either string or html element
                spans: list of (start_pos, end_pos, rank, color, id) tuples defined as:
                    start_pos: start position of underline span
                    end_pos: end position of underline span
                    rank: rank for stacking order of underlines, all else being equal
                    color: color of underline
                    id: id of underline (encoded as a class label in resulting html element)
            Returns:
                List of HTML elements
        """

        # Map from span start position to span
        start_to_spans = defaultdict(list)
        for span in spans:
            start = span[0]
            start_to_spans[start].append(span)

        # Map from each underline slot position to list of active spans
        slot_to_spans = {}

        # Collection of html elements
        elements = []

        first_token_in_line = True
        for pos, token in enumerate(tokens):
            # Remove spans that are no longer active (end < pos)
            slot_to_spans = defaultdict(
                list,
                {
                    slot: [span for span in spans if span[1] > pos
                           ]  # span[1] contains end of spans
                    for slot, spans in slot_to_spans.items() if spans
                })

            # Add underlines to space between tokens for any continuing underlines
            if first_token_in_line:
                first_token_in_line = False
            else:
                elements.append(
                    self._get_underline_element(SPACE, slot_to_spans))

            # Find slot for any new spans
            new_spans = start_to_spans.pop(pos, None)
            if new_spans:
                new_spans.sort(key=lambda span: (-(span[1] - span[0]), span[2])
                               )  # Sort by span length (reversed), rank
                for new_span in new_spans:
                    # Find an existing slot or add a new one
                    for slot, spans in sorted(
                            slot_to_spans.items(),
                            key=itemgetter(0)):  # Sort by slot index
                        if spans:
                            containing_span = spans[
                                0]  # The first span in the slot strictly contains all other spans
                            containing_start, containing_end = containing_span[
                                0:2]
                            containing_color = containing_span[3]
                            start, end = new_span[0:2]
                            color = new_span[3]
                            # If the new span (1) is strictly contained in this span, or (2) exactly matches this span
                            # and is the same color, then add span to this slot
                            if end <= containing_end and (
                                (start > containing_start
                                 or end < containing_end) or
                                (start == containing_start
                                 and end == containing_end
                                 and color == containing_color)):
                                spans.append(new_span)
                                break
                    else:
                        # Find a new slot index to add the span
                        for slot_index in count():
                            spans = slot_to_spans[slot_index]
                            if not spans:  # If slot is free, take it
                                spans.append(new_span)
                                break
            if token in ("\n", "\r", "\r\n"):
                elements.append(br())
                first_token_in_line = True
            else:
                # Add underlines to token for all active spans
                elements.append(
                    self._get_underline_element(token, slot_to_spans))
        return elements
Exemplo n.º 12
0
def footer():
    myargs = ["Created by ", br(), footer_content("Khem Sharma")]
    layout(*myargs)