<div className="card-content">
<p className="card-date">{formattedDate}</p>
<h6 className="card-title" data-date={formattedDate}>
{post.title}
</h6>
</div>
.card-content {
display: flex;
flex-direction: row-reverse;
align-items: center;
gap: 5px;
}
.card-title::after {
content: " — " attr(data-date);
font-size: smaller;
color: gray;
}
.card-date {
display: none;
}
- https://css-tricks.com/building-a-scalable-css-architecture-with-bem-and-utility-classes/
- https://github.com/jareware/css-architecture
- https://developer.mozilla.org/en-US/docs/Web/CSS/clamp
- https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
- http://smacss.com/
- https://frontendmasters.com/courses/css-variables/dry-fallback-strategies/
- https://open-props.style/
- https://nerdy.dev/
- https://styleguide.github.com/
- https://bradfrost.com/blog/post/atomic-web-design/
- https://css-weekly.com/
- https://frontendfoc.us/
- https://www.lightningdesignsystem.com/components/overview/
- https://www.youtube.com/watch?v=7hYOLLO2gc4&t=1357s&ab_channel=YouGottaLoveFrontend
- https://courses.rachelnabors.com/p/web-animation-essentials-css-animations-and-transitions