SPFx Christmas Banner Treat
Fancy a Christmas Banner across your SharePoint sites - of course you do.
Download my SPFx Solution which takes a "banner.png" from your root site collection Site Assets library (e.g. https://marnotechnologycom.sharepoint.com/SiteAssets/banner.png) and displays a wonderful Christmas treat. Update the uploaded items Title field to the height you would like e.g. "48px" (without quotes)
Enjoy and have a wonderful Christmas break. (Make sure you test it first before rolling it into production... 🤣 )
Here's a link to the Christmas tree image to get you started
If you want to know how to code your own, follow the guide in
This also makes use of pnpjs to get the height attribute from the title field so you'll need to run:
npm install @pnp/sp @pnp/graph --save
on your solution area.
Update the AppCustomizer.module.scss to this:
Update the main .ts file to this:
Hope it helps