Skip to content

Commit

Permalink
fix: hero mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Mogilski committed Nov 6, 2023
1 parent 53373ef commit 579c114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ArticleCard/ArticlePublishDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function ArticlePublishDetails({
className={cn(
variant === "dark" && " text-custom-dim",
variant === "light" && " text-gray-500",
"flex items-center gap-2 whitespace-nowrap text-center text-sm",
"flex flex-wrap items-center gap-1 whitespace-nowrap text-center text-sm md:gap-2",
className
)}
style={{ textShadow: variant === "dark" ? "0px 1px 2px rgba(26, 26, 27, 1)" : undefined }}
Expand Down
6 changes: 3 additions & 3 deletions src/components/ArticleCard/HeroArticleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function HeroArticleCard({
const locale = useLocale()

return (
<div className=" relative w-full overflow-hidden rounded-xl text-white">
<div className="relative w-full overflow-hidden rounded-xl text-white">
<div className="relative h-[320px] bg-slate-900">
{imageUrl && (
<Image
Expand All @@ -43,7 +43,7 @@ export function HeroArticleCard({
priority
/>
)}
<div className="absolute inset-0 z-20 flex w-full flex-col items-start justify-between p-6 ">
<div className="absolute inset-0 z-20 flex w-full flex-col items-start justify-between p-4 md:p-6 ">
{asLink && (
<Link
href={`/${locale}/article/${slug}`}
Expand All @@ -59,7 +59,7 @@ export function HeroArticleCard({
})}
</div>
</div>
<div className="flex flex-col justify-around gap-5">
<div className="flex flex-col justify-around gap-3 md:gap-5">
<h2
className=" text-[1.8rem] font-bold leading-7 tracking-[1px] md:leading-10"
style={{ textShadow: "0px 1px 4px rgba(26, 26, 27, 1)" }}
Expand Down

0 comments on commit 579c114

Please sign in to comment.