Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,12 @@ async def privacy(request: Request):
url="https://meet.google.com/mnt-zerh-oqw", status_code=301
)
)
app.get("/github")(
lambda: RedirectResponse(url="https://github.com/python-togo", status_code=301)
)
app.get("/youtube")(
lambda: RedirectResponse(url="https://www.youtube.com/@PythonTogo", status_code=301)
)


if __name__ == "__main__":
Expand Down
14 changes: 7 additions & 7 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,46 +153,46 @@ <h4><span>{{ t.get('footer-contact-title','Contact') }}</span></h4>
</div>

<div class="social-links" aria-label="Réseaux sociaux">
<a href="https://www.linkedin.com/company/pythontogo/" class="social-link" target="_blank">
<a href="https://www.pytogo.org/linkedin" class="social-link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30"
fill="currentColor">
<path
d="M4.98 3.5c0 1.381-1.11 2.5-2.48 2.5s-2.48-1.119-2.48-2.5c0-1.38 1.11-2.5 2.48-2.5s2.48 1.12 2.48 2.5zm.02 4.5h-5v16h5v-16zm7.982 0h-4.968v16h4.969v-8.399c0-4.67 6.029-5.052 6.029 0v8.399h4.988v-10.131c0-7.88-8.922-7.593-11.018-3.714v-2.155z" />
</svg>
</a>
<!-- Instagram (inline SVG) -->
<a href="https://www.instagram.com/pycontg/" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
<a href="https://www.pytogo.org/instagram" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
<svg width="30" height="30" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="social-icon" aria-hidden="true">
<rect x="2" y="2" width="20" height="20" rx="5" ry="5" stroke="currentColor" stroke-width="1.6" fill="none"/>
<circle cx="12" cy="12" r="4" stroke="currentColor" stroke-width="1.6" fill="none"/>
<circle cx="17.5" cy="6.5" r="1" fill="currentColor"/>
</svg>
</a>

<a href="https://x.com/pytogo_org" class="social-link" aria-label="Twitter/X" target="_blank">
<a href="https://www.pytogo.org/x" class="social-link" aria-label="Twitter/X" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30"
fill="currentColor">
<path
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
</svg>
</a>

<a href="https://github.com/pytogo-org" class="social-link" target="_blank">
<a href="https://www.pytogo.org/github" class="social-link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
viewBox="0 0 16 16">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
</svg>
</a>
<a href="https://www.youtube.com/@PythonTogo" class="social-link" target="_blank">
<a href="https://www.pytogo.org/youtube" class="social-link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
viewBox="0 0 16 16">
<path
d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z" />
</svg>
</a>

<a rel="me" href="https://techhub.social/@pytogo_org" class="social-link">
<a rel="me" href="https://www.pytogo.org/mastodon" class="social-link">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
viewBox="0 0 448 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. -->
<path
Expand All @@ -206,7 +206,7 @@ <h4><span>{{ t.get('footer-contact-title','Contact') }}</span></h4>
</svg>
</a>
<!-- Facebook (simple 'f' only, no circle) -->
<a href="https://web.facebook.com/profile.php?id=61583905225784" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Facebook">
<a href="https://www.pytogo.org/facebook" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Facebook">
<svg width="30" height="30" viewBox="0 0 320 512" xmlns="http://www.w3.org/2000/svg" class="social-icon" aria-hidden="true">
<path d="M279.14 288l14.22-92.66h-88.91V142.2c0-25.35 12.42-50.06 52.24-50.06H303V6.26S275.2 0 248.79 0c-73 0-121.06 44.38-121.06 124.72v69.62H76v92.66h51.73V512h100.2V288z" fill="currentColor"/>
</svg>
Expand Down