From 2d0938cc9a39780f5b4f4432bb6723850f765db4 Mon Sep 17 00:00:00 2001 From: lukasbicus Date: Fri, 15 Nov 2024 08:16:16 +0100 Subject: [PATCH] Clean up (#25) * Adjust buttons * Update plan * Disable show favorites only button. * Update plan * Remove grid button * Update status bar. * Update status bar. * Update status bar. * Update card-detail-page style. * Implement toggle note visibility. * Update plan. * Remove palette button * Update dropdown-field * Fix ios bug. * Update plan * Update content. * Remove w-full * Fix lint errors. * Prevent viewport scale. * Indicate no note. * Update about me section. * Update plan.md --- app/(homescreens)/add-cards/page.tsx | 13 ++--- app/(homescreens)/my-cards/my-cards-page.tsx | 11 ++-- app/about-author/page.tsx | 55 ++++++++++++++------ app/card/card-detail-page.tsx | 23 ++++---- app/layout.tsx | 4 ++ app/ui/card-form/card-form.tsx | 44 ++++++---------- app/ui/dropdown-field.tsx | 19 +++---- plan.md | 22 ++++++-- 8 files changed, 105 insertions(+), 86 deletions(-) diff --git a/app/(homescreens)/add-cards/page.tsx b/app/(homescreens)/add-cards/page.tsx index 5831da3..3670dc7 100644 --- a/app/(homescreens)/add-cards/page.tsx +++ b/app/(homescreens)/add-cards/page.tsx @@ -4,7 +4,7 @@ import { Loading } from '@/app/ui/loading'; import { PageTemplate } from '@/app/ui/page-template'; import { PrimaryHeader } from '@/app/ui/primary-header'; import { Search } from '@/app/ui/search'; -import { IconLayoutGrid, IconPlus } from '@tabler/icons-react'; +import { IconPlus } from '@tabler/icons-react'; import Link from 'next/link'; import { Suspense } from 'react'; @@ -23,14 +23,9 @@ export default function Page() { } > - <> - }> - - - - + }> + + } > diff --git a/app/(homescreens)/my-cards/my-cards-page.tsx b/app/(homescreens)/my-cards/my-cards-page.tsx index 0065a20..d797342 100644 --- a/app/(homescreens)/my-cards/my-cards-page.tsx +++ b/app/(homescreens)/my-cards/my-cards-page.tsx @@ -57,6 +57,7 @@ export default function MyCardsPage() { type: AppActionTypes.ToggleShowFavoritesOnly, }); }} + disabled={state.cards.length === 0} > {state.showFavoritesOnly ? ( @@ -81,16 +82,10 @@ export default function MyCardsPage() { description="Looks like you haven't added any loyalty cards yet. Get started by adding your first cards! You can manually add card details or import them if you have a digital file." >
- + Add cards - + Import cards
diff --git a/app/about-author/page.tsx b/app/about-author/page.tsx index c6b9a57..5b87506 100644 --- a/app/about-author/page.tsx +++ b/app/about-author/page.tsx @@ -27,17 +27,39 @@ export default function Page() {

Lukáš Bičuš

The fullstack developer -
-

- Seasoned Software Developer with over a decade of experience in - JavaScript and 8 years specializing in React. I like clean code, - test driven development and code reviews. My expertise spans both - frontend and backend development. +

+

Hello, everyone!

+

+ {`I'm the creator of the app you're currently exploring. My ambition was to craft a tool that's both functional and enjoyable, hoping it adds value to your daily routine. I'm thrilled to have you on board and I hope you're loving the experience.`}

-
+

+ This project is a labor of love and is open source, which means + anyone interested can view, contribute, or learn from the code. You + can find the repository here:{' '} + + Tilda on github + +

+

+ {`I'm always on the lookout for ways to improve and evolve the app, so your input is incredibly important. If you've stumbled upon a bug, have ideas for new features, or just want to share your thoughts, please don't hesitate to reach out. You can contact me via LinkedIn, email me directly at `} + + ing.lukas.bicus@gmail.com + + {`, or even contribute to the project on GitHub.`} +

+

+ {`For a glimpse into my other projects or to connect professionally, visit my profiles:`} +

+
@@ -45,21 +67,22 @@ export default function Page() { Linked in
-
-
-

Support me

-

- Your support helps me to keep creating content. Thank you for your - generosity! +

+ { + 'Your support and feedback are what drive the continuous improvement of this app. Thank you for being a part of this journey.' + } +

+

+ Warmest regards,
+ Lukáš Bičuš

-

Bank account: SK85 8330 0000 0023 0179 7796

diff --git a/app/card/card-detail-page.tsx b/app/card/card-detail-page.tsx index 7824715..57b1134 100644 --- a/app/card/card-detail-page.tsx +++ b/app/card/card-detail-page.tsx @@ -11,7 +11,7 @@ import { SecondaryHeader } from '@/app/ui/secondary-header'; import { IconEdit, IconTrash } from '@tabler/icons-react'; import Link from 'next/link'; import { useRouter, useSearchParams } from 'next/navigation'; -import { useRef } from 'react'; +import { useRef, useState } from 'react'; export function CardDetailPage() { const searchParams = useSearchParams(); @@ -20,6 +20,8 @@ export function CardDetailPage() { const card = state.cards.find(c => c.id === id); const deleteDialogRef = useRef(null); const router = useRouter(); + const [isNoteVisible, setIsNoteVisible] = useState(false); + if (!card) { return ; } @@ -62,15 +64,14 @@ export function CardDetailPage() { >
-
@@ -79,16 +80,20 @@ export function CardDetailPage() {
Toggle note visibility
- + setIsNoteVisible(!isNoteVisible)} + /> -