you can calculate the joint CDF as follows
$$
F_{X,Y}(x,y) = \mathbb P(X\leq x, Y\leq y)= \begin{cases}
0, & y<0, \\[6pt]
\frac 1 {\sqrt{2\pi}} \exp \bigl(-\frac 12 (x-\theta)^2\bigr), & y \in [0,1),\\[6pt]
F_X(x), & y\geq 1,
\end{cases}
$$
where $F_X$ is the marginal PDF of $X$:
\begin{align}
F_X(x) &= \mathbb P (X \leq x) = \mathbb P( X \leq x\mid Y=0)\cdot \mathbb P(Y=0) X+\mathbb P( X \leq x\mid Y=1)\cdot \mathbb P(Y=1) \\
&=\frac 12 \Phi(x-\theta) + \frac 12 \Phi\biggl(\frac{x-\theta}{\sqrt{2}}\biggr),
\end{align}
where $\Phi$ is the standard Gaussian CDF.
The joint pdf does not exist, since $Y$ is discrete and only continuous distributions have a density.
The liklihood function is
$$
L(\theta;x_1,\dots,x_n)= \frac 1{2^n} \prod_{i=1}^n \Bigl( \frac 1 {\sqrt{2\pi}} \exp \bigl(-\frac 12 (x_i-\theta)^2\bigr)+ \frac 1 {\sqrt{4\pi}} \exp \bigl(-\frac 14 (x_i-\theta)^2\bigr) \Bigr)
$$