[noun] + と同じくらい + [i-adj] [noun] + と同じくらい + [na-adj] [noun] + と同じくらい + [verb (plain)] [noun] + と同じくらいの + [noun]
と同じくらい means "about as … as": two things are roughly equal in size, amount or degree. It follows the noun you compare with, and the adjective or verb comes after it. The usual frame is A は B と同じくらい….
くらい is also written ぐらい, with no difference in meaning. It makes the comparison approximate. とおなじ同じ on its own says two things are the same.Before a verb, と同じくらい compares how much or how often someone does something.
Before a noun it takes の: "about the same amount of".
と同じくらい says two things are level. To say one falls short, "not as … as", use ほど with a negative.