From 106457de4b5fc8172ce302eaa61c7625150e67a1 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 11 Oct 2020 10:09:15 +0100 Subject: [PATCH] Prefer handwritten font Use the Google Fonts API to fetch a handwritten font, which gives the app a modicum of personality. There are more "best practices" ways to do this, such as: - Download the font once, and include it in the bundle - Extend the Tailwind configure to recognize the font - Ditch the inline diff --git a/scratch/habit-screens/client/src/Habits.elm b/scratch/habit-screens/client/src/Habits.elm index f605ba7a3..88a3d6869 100644 --- a/scratch/habit-screens/client/src/Habits.elm +++ b/scratch/habit-screens/client/src/Habits.elm @@ -146,7 +146,7 @@ render { today, visibleDayOfWeek, completed } = Just weekday -> div - [ class "font-sans py-6 px-6" + [ class "container mx-auto py-6 px-6" , tailwind [ ( "pt-20", today /= visibleDayOfWeek ) ] ] [ header []