-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: tolocars #83
base: main
Are you sure you want to change the base?
feat: tolocars #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/CarCard.tsx
Outdated
date, | ||
tagIcon, | ||
operatorIcon, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just name this operators
? They're not really icons, but logos in my opinion. Also what happens if we have multiple operators (there's one of these examples in the Figma design)? I'd make this an array.
src/components/Tag.tsx
Outdated
className || "" | ||
}`} | ||
> | ||
{tagIcon && (title === tagIcon ? renderIcon(tagIcon) : null)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this. This means that the icon will only be rendered when the title
and the tagIcon
are the same. What's the reasoning here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm struggling with the tagIcon... the idea to attach the icon to the corresponding tag, based on a series of words representing each tagIcon. I didn't try to make it work yet, I left it there to revisit. I might bring it up when we chat briefly.
src/interfaces/ITolocars.ts
Outdated
title: string; | ||
subtitle?: string; | ||
date?: string; | ||
footerGrey?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the Layout files, you're hardcoding footerGrey
to be true. So we can't change it via frontmatter anymore. I would just remove it from this type.
base.css
Outdated
.background-fleet { | ||
background-image: url("/truck.svg"); | ||
background-size: 94.87px 75.38px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be done inline as well with something like bg-[size:94.87px_75.38px] bg-[url('truck.svg')]
✅ Successfully deployed to: https://dev.tolocar.org/feat-tolocars |
✅ Successfully deployed to: https://dev.tolocar.org/feat-tolocars |
#TC2 no license plate
✅ Successfully deployed to: https://dev.tolocar.org/feat-tolocars |
✅ Successfully deployed to: https://dev.tolocar.org/feat-tolocars |
✅ Successfully deployed to: https://dev.tolocar.org/feat-tolocars |
added line clamp and checked for some styling of the svg operator icons. I still haven't started with the single view/dynamically fetched logic addition. Just for having a first glimpse of the tolocars index.