mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 13:36:43 +00:00
add placeholders to profile
This commit is contained in:
parent
4a89aedf4f
commit
db8cd9bd5c
1 changed files with 70 additions and 52 deletions
|
|
@ -125,7 +125,12 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
|
||||
<div className="profile-exp bg-white p-2">
|
||||
<h2 className="text-primary">Experiences</h2>
|
||||
{dev.experiences?.map((exp: Experience, i: number) => (
|
||||
{dev.experiences.length === 0 ? (
|
||||
<div>
|
||||
<img src={require('../static/img/404.jpg')} alt="" />
|
||||
</div>
|
||||
) : (
|
||||
dev.experiences.map((exp: Experience, i: number) => (
|
||||
<div key={i}>
|
||||
<h3>{exp.company}</h3>
|
||||
<p>{getTimePeriod(exp.from, exp.to)}</p>
|
||||
|
|
@ -138,12 +143,18 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
{exp.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="profile-edu bg-white p-2">
|
||||
<h2 className="text-primary">Education</h2>
|
||||
{dev.educations?.map((edu: Education, i: number) => (
|
||||
{dev.educations.length === 0 ? (
|
||||
<div>
|
||||
<img src={require('../static/img/404.jpg')} alt="" />
|
||||
</div>
|
||||
) : (
|
||||
dev.educations.map((edu: Education, i: number) => (
|
||||
<div key={i}>
|
||||
<h3>{edu.school}</h3>
|
||||
<p>{getTimePeriod(edu.from, edu.to)}</p>
|
||||
|
|
@ -160,7 +171,8 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
{edu.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="profile-github">
|
||||
|
|
@ -168,7 +180,12 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
<FontAwesomeIcon icon={faGithub} /> GitHub Repos
|
||||
</h2>
|
||||
|
||||
{dev.repos?.map((r: Repo, i: number) => (
|
||||
{dev.repos.length === 0 ? (
|
||||
<div>
|
||||
<img src={require('../static/img/404.jpg')} alt="" />
|
||||
</div>
|
||||
) : (
|
||||
dev.repos.map((r: Repo, i: number) => (
|
||||
<div className="repo bg-white my-1 p-1">
|
||||
<div>
|
||||
<h4>
|
||||
|
|
@ -190,7 +207,8 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in a new issue