-
Notifications
You must be signed in to change notification settings - Fork 613
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
Discuss #25
Comments
What's tricky is we can't rely on tailwind in the posts because the posts aren't built with the site so tailwind may be out of date relative to the posts. However, there could probably be a few "components" that we could style to look nicely. One good example of this is a callout component similar to remix's docs info component: So we could probably have something like a For that specific transparent image... I think I just need to change it. It's weird. |
This post needs work: https://kent.dev/blog/usememo-and-usecallback The candy dispenser needs looking into and the date switches from June 4th (server rendered) to June 3rd (client rendered). |
Sounds like a timezone thing. Your server is probably running in a different timezone than the user's browser. You can current that using timezoneOffset: import format from 'date-fns/format';
import add from 'date-fns/add';
const offset = new Date().getTimezoneOffset();
format(
// assuming the server sends date in UTC
add(frontmatter.date, { minutes: offset }),
'...'
); |
Nice! Thanks for that. I used exactly that 👍 |
#19 (comment)
Gotta run, but wanted to make sure we don't forget to address this:
The text was updated successfully, but these errors were encountered: