Changeset View
Changeset View
Standalone View
Standalone View
web/e.cash/app/components/Blog/BlogSearch.tsx
| Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | <> | ||||
| <Link | <Link | ||||
| key={post.id} | key={post.id} | ||||
| href={`/blog/${post.attributes.slug}`} | href={`/blog/${post.attributes.slug}`} | ||||
| className="group flex flex-col items-start justify-between py-2 lg:flex-row lg:items-center" | className="group flex flex-col items-start justify-between py-2 lg:flex-row lg:items-center" | ||||
| > | > | ||||
| <h3 | <h3 | ||||
| className={cn( | className={cn( | ||||
| "group-hover:text-accentMedium flex items-center gap-1 text-xl font-bold transition-all group-hover:underline", | "group-hover:text-accentMedium flex items-center gap-1 text-xl font-bold transition-all group-hover:underline", | ||||
| post.attributes.featured && "text-purple-500", | post.attributes.highlighted && "text-purple-500", | ||||
| )} | )} | ||||
| > | > | ||||
| {post.attributes.featured && ( | {post.attributes.highlighted && ( | ||||
| <span className="flex items-center leading-none"> | <span className="flex items-center leading-none"> | ||||
| * | * | ||||
| </span> | </span> | ||||
| )} | )} | ||||
| {post.attributes.title} | {post.attributes.title} | ||||
| </h3> | </h3> | ||||
| <span className="text-secondaryText text-xs lg:pl-4"> | <span className="text-secondaryText text-xs lg:pl-4"> | ||||
| Show All 17 Lines | |||||