\documentclass{article}
\usepackage{fancyhdr}
\usepackage[x11names]{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning, calc}
\usepackage[explicit]{titlesec}
\usepackage{setspace}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=10mm,
}
\definecolor{cute_green}{RGB}{4, 104, 33}
\definecolor{light_green}{RGB}{4, 130, 33}
\titleformat{\section}
{\sffamily\Large\bfseries\color{cyan}}
{}
{0em}
{%
\begin{tikzpicture}
\node[name=r1, rectangle, fill=cute_green, anchor=north west, font=\color{white},
inner sep=3pt, minimum width=40mm, minimum height=10mm,
xshift=3mm, align=right, text width=40mm,
] {#1};
\node[name=c, rectangle, fill=light_green, font=\color{white}, anchor=north west,
minimum width=10mm,
] {\thesection};
\draw[cute_green, line width=5pt] ($(c.north east)+(0,-.5\pgflinewidth)$)
-- ({(\textwidth)},{-.5\pgflinewidth});
\end{tikzpicture}
}
\begin{document}
\begin{figure}[htp]
\centering
\includegraphics[width=4cm]{UofA_logo.png}
\end{figure}
\noindent
{\large {\em Weekly Report No. 24} \hfill \today\\}
\noindent
{\color{cute_green} \rule{\linewidth}{0.5mm} }
\noindent
{\large from: Alireza Arjmand Shakouri \hfill Sept 16 - Sept 23}
\doublespacing
\noindent
{\large to: Professor Name Surname}
\noindent
\section{Last Week}
\begin{itemize}
\item The things I did last week.
\end{itemize}
\hfill
\section{Next Week}
\begin{itemize}
\item I am going to do lots of cool tasks next week!
\item And even cooler stuff!
\end{itemize}
\end{document}