mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:45:05 +03:00
Share links
This commit is contained in:
parent
379d4a4b24
commit
e65a91b777
1 changed files with 16 additions and 6 deletions
|
@ -19,6 +19,12 @@
|
||||||
|
|
||||||
{{ partial "sidebar" . }}
|
{{ partial "sidebar" . }}
|
||||||
|
|
||||||
|
<div class="share-links">
|
||||||
|
<a href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" rel="noopener">Share on Facebook</a>
|
||||||
|
<a href="https://twitter.com/intent/tweet?url={{ .Permalink }}" target="_blank" rel="noopener">Share on Twitter</a>
|
||||||
|
<a href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}" target="_blank" rel="noopener">Share on LinkedIn</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@ -30,8 +36,6 @@
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
flex: 0 0 30%;
|
flex: 0 0 30%;
|
||||||
max-width: 20%;
|
max-width: 20%;
|
||||||
|
@ -47,11 +51,17 @@
|
||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img{
|
.share-links {
|
||||||
max-width: 100%;
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
code{
|
.share-links a {
|
||||||
color:#ff7ba7;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue