Skip to content

Commit

Permalink
Merge branch 'main' into feat/enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhigate committed Jan 15, 2023
2 parents d6d0ddb + 3d49723 commit 62d99db
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
13 changes: 13 additions & 0 deletions client/src/components/TweetShare/index.css
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;
}
24 changes: 24 additions & 0 deletions client/src/components/TweetShare/index.jsx
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;
5 changes: 4 additions & 1 deletion client/src/pages/Home/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
height: 100%
}

.home-container h1 {
margin-bottom: 1rem;
}

.home-container>div:nth-child(2) {
min-width: 30%;
Expand All @@ -26,7 +29,7 @@
padding-left: 0;
gap: 1rem;
text-align: center;
margin-top: 1rem;
margin-top: 0.5rem;
}

.home-container .stats-card .card {
Expand Down

0 comments on commit 62d99db

Please sign in to comment.