-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
127 style individual blog post (#250)
* style(frontend): 💄 Fit content into blogcard and add image * style(frontend): 💄 Make small styling changes and remove subtitle from Strapi * feat(frontend): ✨ add shareButtons component for blog sharing * feat(frontend): ✨ Remove card from blog, and add functioning share functionality to blog. Also remove title and coverimage from individual blog post * fix(frontend): 🐛 remove image and host url from article slug page * fix(frontend): 🐛 remove next-share from root package and add to frontend package * fix(frontend): fix eslint unused variable error * fix(frontend): fix prettier --------- Co-authored-by: Jakob Grøtan Gregusson <55840686+Jakobgg1243@users.noreply.github.com> Co-authored-by: Jakob Grøtan Gregusson <jakobgg@stud.ntnu.no>
- Loading branch information
3 people
authored and
GitHub
committed
Apr 10, 2024
1 parent
aff0771
commit 12dace8
Showing
11 changed files
with
184 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| "use client"; | ||
|
|
||
| import { | ||
| FacebookShareButton, | ||
| FacebookIcon, | ||
| LinkedinShareButton, | ||
| LinkedinIcon, | ||
| TwitterShareButton, | ||
| TwitterIcon, | ||
| } from "next-share"; | ||
|
|
||
| export default function ShareButtons({ slug }: { slug: String }) { | ||
| return ( | ||
| <> | ||
| <FacebookShareButton | ||
| url={`http://web.hypso.ies.ntnu.no:3000/blog/${slug}`} | ||
| > | ||
| <FacebookIcon size={32} round /> | ||
| </FacebookShareButton> | ||
| <LinkedinShareButton | ||
| url={`http://web.hypso.ies.ntnu.no:3000/blog/${slug}`} | ||
| > | ||
| <LinkedinIcon size={32} round /> | ||
| </LinkedinShareButton> | ||
| <TwitterShareButton | ||
| url={`http://web.hypso.ies.ntnu.no:3000/blog/${slug}`} | ||
| > | ||
| <TwitterIcon size={32} round /> | ||
| </TwitterShareButton> | ||
| </> | ||
| ); | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.