The properties of proton resonances in the p and sd shells are studied with a single-particle potential generated by self-consistent-mean field calculations. Besides, we also propose to calculate the proton-nucleus interaction by a double-folding procedure with the density of the daughter nucleus represented by the result of the same mean-field model. With out raising any adjustable parameter, these calculations provide reasonable estimates for the widths of observed proton resonances in light nuclei. The mean-field-based calculation is particularly useful for the predications of the properties of resonances in light exotic nuclei and the direct proton capture reactions of astrophysics.