-
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
1 parent
29254e6
commit f39f0d3
Showing
9 changed files
with
170 additions
and
39 deletions.
There are no files selected for viewing
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
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,28 @@ | ||
import PropTypes from "prop-types"; | ||
import Proptypes from "prop-types"; | ||
import { getAvatar } from "../../utils/generateImages"; | ||
|
||
export function FollowItem({ name, username }) { | ||
const avatar = getAvatar( | ||
`${name + Math.floor(Math.random() * 1000)}@email.com` | ||
); | ||
return ( | ||
<div className="flex items-centers justify-between py-3 hover:bg-gray-800 transition duration-200"> | ||
<div className="flex items-center"> | ||
<img src={avatar} alt="user avatar" className="w-12 h-12 rounded-full mr-3" /> | ||
<div> | ||
<p className="font-bold">{name}</p> | ||
<p className="text-gray-500">{username}</p> | ||
</div> | ||
</div> | ||
<div> | ||
<button className="bg-white text-black font-bold px-4 py-2 rounded-full hover: bg-gray-300 transition duration-200">Follow</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
FollowItem.Proptypes = { | ||
name: PropTypes.string, | ||
username: Proptypes.string, | ||
}; |
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,19 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
|
||
export function TrendItem({category, name, tweetCount}) { | ||
return ( | ||
<div className='py-3 hover: bg-gray-800 transition duration-200 cursor-pointer'> | ||
<p className='text-gray-500 text-sm'>{category}</p> | ||
<p className='font-bold'>{name}</p> | ||
{tweetCount &&<p className='text-gray-500 text-sm'>{tweetCount}</p>} | ||
</div>) | ||
|
||
} | ||
|
||
TrendItem.PropTypes = { | ||
category : PropTypes.string, | ||
name : PropTypes.string, | ||
tweetCount : PropTypes.string, | ||
|
||
} |
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