mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-06 02:36:39 +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) return status;
|
||||
if (company) return `Employed at ${company}`;
|
||||
return 'Document your current occupation.';
|
||||
return 'DevBook Member';
|
||||
};
|
||||
|
||||
/** class implementing IDev.
|
||||
|
|
|
|||
|
|
@ -127,7 +127,10 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
<h2 className="text-primary">Experiences</h2>
|
||||
{dev.experiences.length === 0 ? (
|
||||
<div>
|
||||
<img src={require('../static/img/404.jpg')} alt="" />
|
||||
<img
|
||||
src={require('../static/img/404.jpg')}
|
||||
alt="no experiences"
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
dev.experiences.map((exp: Experience, i: number) => (
|
||||
|
|
@ -151,7 +154,7 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
<h2 className="text-primary">Education</h2>
|
||||
{dev.educations.length === 0 ? (
|
||||
<div>
|
||||
<img src={require('../static/img/404.jpg')} alt="" />
|
||||
<img src={require('../static/img/404.jpg')} alt="no educations" />
|
||||
</div>
|
||||
) : (
|
||||
dev.educations.map((edu: Education, i: number) => (
|
||||
|
|
@ -180,9 +183,12 @@ const Profile: FC<IProps> = ({dev}) => {
|
|||
<FontAwesomeIcon icon={faGithub} /> GitHub Repos
|
||||
</h2>
|
||||
|
||||
{dev.repos.length === 0 ? (
|
||||
{dev.repos?.length === 0 ? (
|
||||
<div>
|
||||
<img src={require('../static/img/404.jpg')} alt="" />
|
||||
<img
|
||||
src={require('../static/img/404.jpg')}
|
||||
alt="no repositories"
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
dev.repos.map((r: Repo, i: number) => (
|
||||
|
|
|
|||
Loading…
Reference in a new issue