brakes went to floor of Jeep on 1999 Jeep Cherokee

Added brake fluid and waited 1 hour, started the engine and I noticed brake fluid on garage floor and inside the engine.
What have I done and how much is it going to cost to repair?
Thank you,
Valerie Heller

Asked by for the 1999 Jeep Cherokee