-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tejas Kumar
committed
Jan 14, 2020
1 parent
63ba526
commit 2eafd7f
Showing
5 changed files
with
133 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React from "react"; | ||
import styled from "@emotion/styled"; | ||
|
||
const Container = styled.div` | ||
display: grid; | ||
align-items: center; | ||
justify-items: center; | ||
@media (min-width: 768px) { | ||
grid-template-columns: 150px auto; | ||
gap: 32px; | ||
} | ||
`; | ||
|
||
const Image = styled.img` | ||
width: 150px; | ||
border-radius: 50%; | ||
margin: 0 auto; | ||
@media (min-width: 768px) { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
const BlogAttribution = ({ url }: { url: string }) => ( | ||
<Container> | ||
<div> | ||
<Image alt="Tejas' Face" src="https://pbs.twimg.com/profile_images/1210680744407908353/5bTFS_QO_400x400.jpg" /> | ||
</div> | ||
<div> | ||
<p> | ||
Tejas has a special love humans and code that sometimes finds its way onto this blog and other parts of the | ||
internet. Say hi on{" "} | ||
<a href="https://twitter.com/tejaskumar_" rel="noopener" target="_blank"> | ||
</a> | ||
! | ||
<br /> | ||
<br /> | ||
If you particularly enjoyed this post, consider{" "} | ||
<a | ||
href={`https://twitter.com/share?url=${url}&text=I just read this article by @tejaskumar_ and I would love to share it with you!`} | ||
rel="noopener" | ||
target="_blank" | ||
> | ||
sharing it | ||
</a> | ||
. | ||
</p> | ||
</div> | ||
</Container> | ||
); | ||
|
||
export default BlogAttribution; |
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,29 @@ | ||
import React from "react"; | ||
import styled from "@emotion/styled"; | ||
|
||
const Container = styled.div` | ||
display: grid; | ||
grid-template-columns: auto max-content auto; | ||
gap: 16px; | ||
width: 100%; | ||
height: 40px; | ||
text-align: center; | ||
align-items: center; | ||
margin: 32px auto; | ||
::before, | ||
::after { | ||
content: ""; | ||
width: 100%; | ||
height: 1px; | ||
background: #0003; | ||
@media (prefers-color-scheme: dark) { | ||
background: #fff3; | ||
} | ||
} | ||
`; | ||
|
||
const ContentSeparator = () => <Container>❤️🔥💞🙌🏽🤝🎉</Container>; | ||
|
||
export default ContentSeparator; |
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
2eafd7f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: