From 95be04f185f5140ba08d7bcb2f64b45d019457ad Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 7 Jan 2024 16:00:03 -0600 Subject: [PATCH] Streamline photo empty state --- src/photo/PhotosEmptyState.tsx | 45 ++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/src/photo/PhotosEmptyState.tsx b/src/photo/PhotosEmptyState.tsx index edeebbbf..7c495295 100644 --- a/src/photo/PhotosEmptyState.tsx +++ b/src/photo/PhotosEmptyState.tsx @@ -1,24 +1,21 @@ import InfoBlock from '@/components/InfoBlock'; import SiteGrid from '@/components/SiteGrid'; import { IS_SITE_READY } from '@/site/config'; +import { PATH_ADMIN_CONFIGURATION, PATH_ADMIN_PHOTOS } from '@/site/paths'; import SiteChecklist from '@/site/SiteChecklist'; import { clsx } from 'clsx/lite'; import Link from 'next/link'; +import { FaArrowRight } from 'react-icons/fa'; import { HiOutlinePhotograph } from 'react-icons/hi'; export default function PhotosEmptyState() { - const renderLink = (href: string) => - - {href} - ; - return ( + - {!IS_SITE_READY ? 'Finish Setup' : 'Welcome!'} + {!IS_SITE_READY ? 'Finish Setup' : 'Setup Complete!'} {!IS_SITE_READY ? - :
-
- 1. Visit - {' '} - {renderLink('/admin/photos')} - {' '} - to add your first photo + :
+
+
+ Add your first photo: +
+ + Admin Dashboard + +
- 2. Change the name of this blog and other configuration + Change the name of this blog and other configuration by editing environment variables referenced in {' '} - {renderLink('/admin/configuration')} + + /admin/configuration +
} }