Let $$A=\begin{bmatrix}1&1&1\\1&1&1\\1&1&1\end{bmatrix}$$ Find an orthogonal matrix $Q$ and a diagonal matrix $D$ such that $A=QDQ^T$.
I already got these Eigenvalues $D=\begin{bmatrix}0&0&0\\0&0&0\\0&0&3\end{bmatrix}$and Eigenvectors $P=\begin{bmatrix}-1&-1&1\\1&0&1\\0&1&1\end{bmatrix}$
\begin{align} \langle v_1,v_2\rangle &= \quad \!1+0+0=1 \\ \langle v_1,v_3\rangle &=-1+1+0=0 \\ \langle v_2,v_3\rangle &=-1+0+1=0 \end{align}
$\because \langle v_1,v_3\rangle= \langle v_2,v_3\rangle=0 \space \therefore A=A^T$
$\because \langle v_1,v_2\rangle=1+0+0=1 \space \therefore v_1\perp v_2$
But I have no idea what is the next step.
Replace $v_2$ by $$v'_2:=v_2-\frac{\langle v_2,v_1\rangle}{\|v_1\|^2}v_1=\begin{pmatrix}-\frac12\\-\frac12\\1\end{pmatrix}$$ (which is again in $\ker A=v_3^\perp$ since $v_1,v_2$ are, but which is now orthogonal to $v_1$).
Dividing $v_1,v'_2,v_3$ by their respective norms $\sqrt2,\sqrt\frac32,\sqrt3$ will give you the 3 columns of your matrix $Q.$