"Would contributions be based on salary or bonus?"
This depends on the definition of pensionable salary you’re using to calculate the contributions, and whether this includes bonuses.
However, you must include bonuses if your definition of pensionable salary is either total earnings or qualifying earnings.
More…
For more information, visit the government’s website.