Add social media svgs into code and subtify logo from url
Browse files- app.py +77 -15
- assets/MFN.min.svg +3 -1
- assets/MFN.svg +11 -11
- assets/github.svg +6 -1
- assets/instagram.svg +1 -1
- assets/kaggle.svg +6 -1
- assets/linkedin.svg +6 -1
- assets/sitemap.svg +5 -1
- assets/tiktok.svg +6 -1
- assets/twitch.svg +6 -1
- assets/x.svg +6 -1
- assets/youtube.svg +6 -1
app.py
CHANGED
@@ -41,7 +41,13 @@ new_height = subtify_logo_height // factor
|
|
41 |
html_social_media = '''
|
42 |
<div style="float: right;">
|
43 |
<a href="https://maximofn.com/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
44 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</a>
|
46 |
<a href="http://github.com/maximofn" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
47 |
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 496 512">
|
@@ -54,33 +60,89 @@ html_social_media = '''
|
|
54 |
</svg>
|
55 |
</a>
|
56 |
<a href="http://linkedin.com/in/MaximoFN/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
57 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</a>
|
59 |
-
<a href="
|
60 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
</a>
|
62 |
<a href="https://twitter.com/Maximo_fn" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
63 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
</a>
|
65 |
<a href="https://www.instagram.com/maximo__fn/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
66 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
</a>
|
68 |
-
<a href="https://www.
|
69 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
</a>
|
71 |
-
<a href="https://www.
|
72 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
</a>
|
74 |
-
<a href="https://www.
|
75 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
</a>
|
77 |
-
<a href="
|
78 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
</a>
|
80 |
</div>
|
81 |
'''
|
82 |
|
83 |
-
html_subtify_logo = f"<img src='
|
84 |
|
85 |
html_buy_me_a_coffe = '''
|
86 |
<div style="float: right;">
|
|
|
41 |
html_social_media = '''
|
42 |
<div style="float: right;">
|
43 |
<a href="https://maximofn.com/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
44 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
|
45 |
+
<style>
|
46 |
+
svg {
|
47 |
+
fill:#f3f4f6
|
48 |
+
}
|
49 |
+
</style><path d="M208 80c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48h-8v40H464c30.9 0 56 25.1 56 56v32h8c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H464c-26.5 0-48-21.5-48-48V368c0-26.5 21.5-48 48-48h8V288c0-4.4-3.6-8-8-8H312v40h8c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H256c-26.5 0-48-21.5-48-48V368c0-26.5 21.5-48 48-48h8V280H112c-4.4 0-8 3.6-8 8v32h8c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V368c0-26.5 21.5-48 48-48h8V288c0-30.9 25.1-56 56-56H264V192h-8c-26.5 0-48-21.5-48-48V80z"/>
|
50 |
+
</svg>
|
51 |
</a>
|
52 |
<a href="http://github.com/maximofn" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
53 |
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 496 512">
|
|
|
60 |
</svg>
|
61 |
</a>
|
62 |
<a href="http://linkedin.com/in/MaximoFN/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
63 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512">
|
64 |
+
<style>
|
65 |
+
svg {
|
66 |
+
fill:#f3f4f6
|
67 |
+
}
|
68 |
+
</style>
|
69 |
+
<path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/>
|
70 |
+
</svg>
|
71 |
</a>
|
72 |
+
<a href="http://kaggle.com/maximofn" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
73 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 320 512">
|
74 |
+
<style>
|
75 |
+
svg {
|
76 |
+
fill:#f3f4f6
|
77 |
+
}
|
78 |
+
</style>
|
79 |
+
<path d="M304.2 501.5L158.4 320.3 298.2 185c2.6-2.7 1.7-10.5-5.3-10.5h-69.2c-3.5 0-7 1.8-10.5 5.3L80.9 313.5V7.5q0-7.5-7.5-7.5H21.5Q14 0 14 7.5v497q0 7.5 7.5 7.5h51.9q7.5 0 7.5-7.5v-109l30.8-29.3 110.5 140.6c3 3.5 6.5 5.3 10.5 5.3h66.9q5.25 0 6-3z"/>
|
80 |
+
</svg>
|
81 |
</a>
|
82 |
<a href="https://twitter.com/Maximo_fn" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
83 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512">
|
84 |
+
<style>
|
85 |
+
svg {
|
86 |
+
fill:#f3f4f6
|
87 |
+
}
|
88 |
+
</style>
|
89 |
+
<path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/>
|
90 |
+
</svg>
|
91 |
</a>
|
92 |
<a href="https://www.instagram.com/maximo__fn/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
93 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512">
|
94 |
+
<style>
|
95 |
+
svg {
|
96 |
+
fill:#f3f4f6
|
97 |
+
}
|
98 |
+
</style>
|
99 |
+
<path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/>
|
100 |
+
</svg>
|
101 |
</a>
|
102 |
+
<a href="https://www.youtube.com/channel/UCdQwg2JU_fWRsHn3yIlf3tw" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
103 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
|
104 |
+
<style>
|
105 |
+
svg {
|
106 |
+
fill:#f3f4f6
|
107 |
+
}
|
108 |
+
</style>
|
109 |
+
<path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/>
|
110 |
+
</svg>
|
111 |
</a>
|
112 |
+
<a href="https://www.facebook.com/profile.php?id=100085177670661" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
113 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512">
|
114 |
+
<style>
|
115 |
+
svg {
|
116 |
+
fill:#f3f4f6
|
117 |
+
}
|
118 |
+
</style>
|
119 |
+
<path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"/>
|
120 |
+
</svg>
|
121 |
</a>
|
122 |
+
<a href="https://www.tiktok.com/@maximo__fn" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
123 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512">
|
124 |
+
<style>
|
125 |
+
svg {
|
126 |
+
fill:#f3f4f6
|
127 |
+
}
|
128 |
+
</style>
|
129 |
+
<path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"/>
|
130 |
+
</svg>
|
131 |
</a>
|
132 |
+
<a href="https://www.twitch.tv/maximofn/" rel="noopener noreferrer" aria-disabled="false" class="sm secondary svelte-cmf5ev" id="component-1" style="flex-grow: 100;" target="_blank">
|
133 |
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512">
|
134 |
+
<style>
|
135 |
+
svg {
|
136 |
+
fill:#f3f4f6
|
137 |
+
}
|
138 |
+
</style>
|
139 |
+
<path d="M391.17,103.47H352.54v109.7h38.63ZM285,103H246.37V212.75H285ZM120.83,0,24.31,91.42V420.58H140.14V512l96.53-91.42h77.25L487.69,256V0ZM449.07,237.75l-77.22,73.12H294.61l-67.6,64v-64H140.14V36.58H449.07Z"/>
|
140 |
+
</svg>
|
141 |
</a>
|
142 |
</div>
|
143 |
'''
|
144 |
|
145 |
+
html_subtify_logo = f"<img src='https://maximofn.com/wp-content/uploads/2023/11/subtify_logo-scaled.webp'/>"# style='width: {new_width}px; height: {new_height}px; margin-left: auto; margin-right: auto; display: block;'/>"
|
146 |
|
147 |
html_buy_me_a_coffe = '''
|
148 |
<div style="float: right;">
|
assets/MFN.min.svg
CHANGED
assets/MFN.svg
CHANGED
assets/github.svg
CHANGED
assets/instagram.svg
CHANGED
assets/kaggle.svg
CHANGED
assets/linkedin.svg
CHANGED
assets/sitemap.svg
CHANGED
assets/tiktok.svg
CHANGED
assets/twitch.svg
CHANGED
assets/x.svg
CHANGED
assets/youtube.svg
CHANGED