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:
20
frontend/src/utils/getCardSize.ts
Normal file
20
frontend/src/utils/getCardSize.ts
Normal 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";
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user