-
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
3c6e697
commit a838c3f
Showing
6 changed files
with
50 additions
and
48 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
body{ | ||
font-family: 'Inter', sans-serif; | ||
} | ||
|
||
.App { | ||
text-align: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
|
||
import '../styles/Avatar.css' | ||
|
||
interface AvatarProps { | ||
src: string; | ||
alt: string; | ||
src: string | ||
} | ||
|
||
const Avatar: React.FC<AvatarProps> = ({src, alt}) => ( | ||
<div className="avatar"> | ||
<img src={src} alt={alt} className="avatar-image" /> | ||
</div> | ||
); | ||
const Avatar: React.FC<AvatarProps> = ({ src }) => ( | ||
<div className="avatar" style={{ backgroundImage: `url(${src}` }}></div> | ||
) | ||
|
||
export default Avatar; | ||
export default Avatar |
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,9 @@ | ||
.avatar { | ||
width: 100%; | ||
height: 100%; | ||
border: 2px solid #FC4C02; | ||
border-radius: 50%; | ||
background-size: cover; | ||
background-position: center center; | ||
object-fit: cover; | ||
} |
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