Skip to content

Commit

Permalink
Dark Mode Icon Rendering Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcranney committed Mar 28, 2022
1 parent 241a88b commit b7354f0
Showing 1 changed file with 57 additions and 18 deletions.
75 changes: 57 additions & 18 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1821,12 +1821,25 @@ export default function Home() {
target="_blank"
rel="noreferrer"
>
<img
src={`${icon.path}`}
alt={`${icon.name}`}
width="36"
height="36"
/>
{icon.darkPath ? (
<img
src={
theme == "dark"
? `https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored-dark.svg`
: `https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored.svg`
}
alt={`${icon.name}`}
width="36"
height="36"
/>
) : (
<img
src={`https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored.svg`}
alt={`${icon.name}`}
width="36"
height="36"
/>
)}
</a>
</div>
);
Expand All @@ -1845,12 +1858,25 @@ export default function Home() {
target="_blank"
rel="noreferrer"
>
<img
src={`${icon.path}`}
alt={`${icon.name}`}
width="36"
height="36"
/>
{icon.darkPath ? (
<img
src={
theme == "dark"
? `https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored-dark.svg`
: `https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored.svg`
}
alt={`${icon.name}`}
width="36"
height="36"
/>
) : (
<img
src={`https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored.svg`}
alt={`${icon.name}`}
width="36"
height="36"
/>
)}
</a>
</div>
);
Expand All @@ -1870,12 +1896,25 @@ export default function Home() {
target="_blank"
rel="noreferrer"
>
<img
src={`${icon.path}`}
alt={`${icon.name}`}
width="36"
height="36"
/>
{icon.darkPath ? (
<img
src={
theme == "dark"
? `https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored-dark.svg`
: `https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored.svg`
}
alt={`${icon.name}`}
width="36"
height="36"
/>
) : (
<img
src={`https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/${icon.iTag}-colored.svg`}
alt={`${icon.name}`}
width="36"
height="36"
/>
)}
</a>
</div>
);
Expand Down

0 comments on commit b7354f0

Please sign in to comment.