An approach to the thin obstacle problem for variational functionals depending on vector valued functions