Consider the metric space $(X, d)$ given by $$X = \{\text{all continuous functions}\,f:[0,1]\to\Bbb R\}$$ with $$d(f,g)=\sup_{t\in[0,1]}|f(t)-g(t)|.$$ Find with proof a set $A \subseteq X$ with $\operatorname{diam} A < \infty$ which is not compact in $(X, d)$.
I can gather that $A$ must be infinite, because any finite set is compact. I can't however reconcile this with $\operatorname{diam} (A) < \infty$ (where diameter is defined as the supremum of all distances). I can't get the faintest picture in my head of what this would even look like, let alone a formal example.