mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 13:36:43 +00:00
alt tag on placeholders
This commit is contained in:
parent
db8cd9bd5c
commit
a8c141772d
2 changed files with 11 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ export const getDescription = (status?: string, company?: string): string => {
|
||||||
if (status && company) return `${status} at ${company}`;
|
if (status && company) return `${status} at ${company}`;
|
||||||
if (status) return status;
|
if (status) return status;
|
||||||
if (company) return `Employed at ${company}`;
|
if (company) return `Employed at ${company}`;
|
||||||
return 'Document your current occupation.';
|
return 'DevBook Member';
|
||||||
};
|
};
|
||||||
|
|
||||||
/** class implementing IDev.
|
/** class implementing IDev.
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,10 @@ const Profile: FC<IProps> = ({dev}) => {
|
||||||
<h2 className="text-primary">Experiences</h2>
|
<h2 className="text-primary">Experiences</h2>
|
||||||
{dev.experiences.length === 0 ? (
|
{dev.experiences.length === 0 ? (
|
||||||
<div>
|
<div>
|
||||||
<img src={require('../static/img/404.jpg')} alt="" />
|
<img
|
||||||
|
src={require('../static/img/404.jpg')}
|
||||||
|
alt="no experiences"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
dev.experiences.map((exp: Experience, i: number) => (
|
dev.experiences.map((exp: Experience, i: number) => (
|
||||||
|
|
@ -151,7 +154,7 @@ const Profile: FC<IProps> = ({dev}) => {
|
||||||
<h2 className="text-primary">Education</h2>
|
<h2 className="text-primary">Education</h2>
|
||||||
{dev.educations.length === 0 ? (
|
{dev.educations.length === 0 ? (
|
||||||
<div>
|
<div>
|
||||||
<img src={require('../static/img/404.jpg')} alt="" />
|
<img src={require('../static/img/404.jpg')} alt="no educations" />
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
dev.educations.map((edu: Education, i: number) => (
|
dev.educations.map((edu: Education, i: number) => (
|
||||||
|
|
@ -180,9 +183,12 @@ const Profile: FC<IProps> = ({dev}) => {
|
||||||
<FontAwesomeIcon icon={faGithub} /> GitHub Repos
|
<FontAwesomeIcon icon={faGithub} /> GitHub Repos
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{dev.repos.length === 0 ? (
|
{dev.repos?.length === 0 ? (
|
||||||
<div>
|
<div>
|
||||||
<img src={require('../static/img/404.jpg')} alt="" />
|
<img
|
||||||
|
src={require('../static/img/404.jpg')}
|
||||||
|
alt="no repositories"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
dev.repos.map((r: Repo, i: number) => (
|
dev.repos.map((r: Repo, i: number) => (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue