forked from WeMakeDevs/roadmap-runner
-
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.
Merge branch 'main' into feat/enrollment
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.share-tweet { | ||
display: inline-block; | ||
padding: 0.5rem 1rem; | ||
border-radius: 5px; | ||
background: rgb(21, 152, 239); | ||
box-shadow: rgb(0 0 0 / 8%) 0px 8px 28px; | ||
font-size: 0.9rem; | ||
} | ||
|
||
.share-tweet i { | ||
margin-left: 0.65rem; | ||
font-size: 1rem; | ||
} |
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,24 @@ | ||
import React from "react"; | ||
import "./index.css"; | ||
|
||
const ShareTweet = ({ | ||
shareText = "Hello there 👋 I'm following and learning through the roadmaps. Join my journey!", | ||
}) => { | ||
function shareProgressUrl() { | ||
return "http://twitter.com/share?text=" + encodeURIComponent(shareText); | ||
} | ||
|
||
return ( | ||
<a | ||
className="share-tweet" | ||
href={shareProgressUrl()} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Share your progress | ||
<i className="fa-brands fa-twitter"></i> | ||
</a> | ||
); | ||
}; | ||
|
||
export default ShareTweet; |
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