feat(frontend): add new search card components and update styling

- Introduced new search card components for Contact, Event, Location, Note, Receipt, and Website.
- Updated the App component to utilize these new components for displaying search results.
- Changed the default font from Manrope to Switzer and updated related styles.
- Added a new dependency `solid-motionone` to package.json.
- Improved search functionality with a new sample data structure and enhanced search logic.
This commit is contained in:
2025-03-23 21:56:09 +01:00
parent 4c85f1de79
commit caf168c7a1
18 changed files with 791 additions and 205 deletions

View File

@@ -0,0 +1,20 @@
export type CardSize = "1/1" | "2/1";
export const getCardSize = (type: string): CardSize => {
switch (type) {
case "Event":
return "2/1";
case "Contact":
return "1/1";
case "Location":
return "1/1";
case "Note":
return "2/1";
case "Website":
return "1/1";
case "Receipt":
return "2/1";
default:
return "1/1";
}
};