Each project only requires a certain amount of each resource. When enough resources have been contributed, the button will be greyed out. However it takes several repeats of the same project to build up the starbase, so keep those resources around for the next round of projects.
Now that some fleets have built a tier 1 starbase, I am hearing reports of the starbase's impressive firepower in fleet events.