Vaginal problems, help!

Hi!!

So 2-3 days ago i shaved down there and i made a big mistake to use shaving cream.

The next day i was totally okay But in the same day i wore some penties kinda unfriendly For my vagina. Now my vagina is itchy, Red and i have this dry-thick discharge (in my vagina) i dont have any discharge on my penties!! My vagina and the discharge is Onion smelling (i have a Poor diet and i eat spicy) ALSO IM CLOSE TO OVULATE!! what Could it be? Infection, Poor diet, PH deregulation bc of the shaving cream?