-
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.
- Loading branch information
Showing
12 changed files
with
214 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
|
||
import Tweet from '../Tweet'; | ||
|
||
import { Container, Tab, Tweets } from './styles'; | ||
|
||
const Feed: React.FC = () =>{ | ||
return ( | ||
<Container> | ||
<Tab>Tweets</Tab> | ||
|
||
<Tweets> | ||
<Tweet /> | ||
<Tweet /> | ||
<Tweet /> | ||
<Tweet /> | ||
<Tweet /> | ||
</Tweets> | ||
</Container> | ||
|
||
); | ||
} | ||
|
||
export default Feed; |
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,35 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
export const Container = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
|
||
export const Tab = styled.div` | ||
margin-top: 10px; | ||
padding: 11px 0 15px; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 15px; | ||
outline: 0; | ||
cursor: pointer; | ||
color: var(--twitter); | ||
border-bottom: 2px solid var(--twitter); | ||
&:hover{ | ||
background: var(--twitter-dark-hover); | ||
} | ||
`; | ||
|
||
export const Tweets = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
flex-shrink: 0; | ||
`; |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ export const Wrapper = styled.div` | |
display: flex; | ||
justify-content: center; | ||
`; | ||
`; |
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
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,59 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
Container, | ||
Retweeted, | ||
RocketseatIcon, | ||
Body, | ||
Avatar, | ||
Content, | ||
Header, | ||
Dot, | ||
Description, | ||
ImageContent, | ||
Icons, | ||
Status, | ||
CommentIcon, | ||
RetweetIcon, | ||
LikeIcon | ||
} from './styles'; | ||
|
||
const Tweet: React.FC = () => { | ||
return ( | ||
<Container> | ||
<Retweeted> | ||
<RocketseatIcon /> | ||
Você retweetou | ||
</Retweeted> | ||
<Body> | ||
<Avatar /> | ||
|
||
<Content> | ||
<Header> | ||
<strong>Renan</strong> | ||
<span>@renan</span> | ||
<Dot /> | ||
<time> 25 de jul</time> | ||
</Header> | ||
|
||
<Description>Testando...</Description> | ||
|
||
<ImageContent /> | ||
|
||
<Icons> | ||
<Status> | ||
<CommentIcon /> | ||
20 | ||
<RetweetIcon /> | ||
20 | ||
<LikeIcon /> | ||
150 | ||
</Status> | ||
</Icons> | ||
</Content> | ||
</Body> | ||
</Container> | ||
); | ||
} | ||
|
||
export default Tweet; |
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 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled.div` | ||
`; | ||
export const Retweeted = styled.div``; | ||
|
||
export const RocketseatIcon = styled.div``; | ||
|
||
export const Body = styled.div``; | ||
|
||
export const Avatar = styled.div``; | ||
|
||
export const Content = styled.div``; | ||
|
||
export const Header = styled.div``; | ||
|
||
export const Dot = styled.div``; | ||
|
||
export const Description = styled.div``; | ||
|
||
export const ImageContent = styled.div``; | ||
|
||
export const Icons = styled.div``; | ||
|
||
export const Status = styled.div``; | ||
|
||
export const CommentIcon = styled.div``; | ||
|
||
export const RetweetIcon = styled.div``; | ||
|
||
export const LikeIcon = styled.div``; |
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