In this paper, we use $q$-binomial theorem to establish some new $q$-analogues of Granville and Sun's congruence: \begin{align*} um_{k=1}^{p-1}\frac{x^k}{k} \equiv\frac{1-x^p-eft(x-1\right)^p}{p}mod{p}, \end{align*} and \begin{align*} um_{k=1}^{p-1}\frac{x^k}{k^2} \equiv\frac{1}{p}eft(\frac{1+eft(x-1\right)^p-x^p}{p}-um_{k=1}^{p-1}\frac{eft(1-x\right)^k-1}{k}\right)mod{p}, \end{align*} where $x$ is a variable and $p$ is an odd prime.