Skip to content

Commit

Permalink
change pngs to use as mask with white background
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenBuley committed Mar 13, 2024
1 parent f6f60e8 commit 563218e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Binary file added public/Background Mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion src/components/InstrumentPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,20 @@ export default function InstrumentPage<T extends Record<string, string[]>>({
musicNotes[`${clef}${note}` as keyof typeof musicNotes] +
musicNotes.staffEnd}
</p> */}
<img src={`/${note}${clef}.png`} alt={`${note}${clef}`} />
<img
style={{
width: '300px',
height: '300px',
maskImage: `url(/${note}${clef}.png)`,
WebkitMaskImage: `url(/${note}${clef}.png)`,
maskPosition: 'center',
WebkitMaskPosition: 'center',
maskRepeat: 'no-repeat',
WebkitMaskRepeat: 'no-repeat',
}}
src={`/Background Mask.png`}
alt={`${note} ${clef}`}
/>
<div className="valves">
{valveSet ? (
valveSet.map((valve) => ({
Expand Down

0 comments on commit 563218e

Please sign in to comment.