Text this: Gate-tunable phase transition in a resonator-based Su-Schrieffer-Heeger chain