D flip-flop using basic gates + Clear
￼￼￼Although there exists such device (CMOS 4013), you could look up into the 4013 datasheet on page 2 and see how they did it.
Also that weird TG block if you don't know what that is, it is a Transmission Gate.
https://en.wikipedia.org/wiki/Transmission_gate