diff --git a/README.md b/README.md index 187d927..989e501 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,8 @@ - [ ] Pagination supported - [ ] Easy-to-use and self-expanding table of contents - [ ] Beautiful CSS animation -- [ ] Brand new Page Layout optimized for wide screens -- [ ] Social and Comment Systems - -- [ ] Local Avatar supported - [ ] social links supported -- [ ] share sites supported +- [x] share sites supported - [ ] Utterances comment system supported by Utterances diff --git a/sass/_article.scss b/sass/_article.scss index a3fbed9..f3d1ae1 100644 --- a/sass/_article.scss +++ b/sass/_article.scss @@ -63,10 +63,23 @@ } } +.post-tags-share { + display: flex; + flex-direction: column; + gap: 2rem; + margin-top: 4rem; + + @media (min-width: 640px) { + flex-direction: row; + justify-content: space-between; + align-items: center; + } +} + .post-tags { display: flex; + flex-wrap: wrap; gap: 0.5rem; - margin-top: 4rem; .tag { background: var(--surface-color); @@ -78,6 +91,46 @@ } } +.social-share { + display: flex; + align-items: center; + gap: 0.75rem; + + .share-label { + font-weight: 500; + color: var(--text-color); + margin-right: 0.25rem; + } + + .share-btn { + display: flex; + align-items: center; + justify-content: center; + width: 36px; + height: 36px; + border-radius: 50%; + background: var(--surface-color); + border: 1px solid var(--border-color); + color: var(--text-muted); + transition: var(--transition-smooth); + cursor: pointer; + + &:hover { + color: var(--bg-color); + transform: translateY(-2px); + border-color: transparent; + + &.x { background: #000000; color: #ffffff; } + &.bluesky { background: #0285FF; } + &.linkedin { background: #0077b5; } + &.reddit { background: #ff4500; } + &.hackernews { background: #ff6600; } + &.email { background: #6b7280; } + &.copy-link { background: var(--accent-color); } + } + } +} + .post-nav { display: flex; flex-direction: column; diff --git a/templates/page.html b/templates/page.html index 288a087..30dd572 100644 --- a/templates/page.html +++ b/templates/page.html @@ -52,12 +52,15 @@ {% include "partials/post-nav.html" %}