Skip to content

Commit

Permalink
hide image on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash Smith committed Sep 11, 2023
1 parent 1923120 commit 6f64474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default function IndexPage(
const [posts] = useLiveQuery<Post[]>(props.posts, postsQuery)
return (
<Container>
<div className="bg-white rounded-lg overflow-hidden md:ring-1 ring-slate-900/5 flex p-8 mb-5">
<div className="relative z-10 flex-none overflow-hidden -m-8 mr-8 w-24 md:w-64 h-auto items-center inline-flex md:block">
<div className="bg-white rounded-lg overflow-hidden md:ring-1 ring-slate-900/5 flex p-1 md:p-8 mb-5">
<div className="relative z-10 hidden flex-none overflow-hidden -m-8 mr-2 md:mr-8 w-24 md:w-64 h-auto items-center inline-flex md:block">
<Image
className="object-cover bg-slate-100 max-w-24 md:max-w-none md:-ml-12 md:-mt-12 rounded-xl md:rounded-none"
src={urlForImage(props.homepage.image).width(350).height(350).url()}
Expand All @@ -53,7 +53,7 @@ export default function IndexPage(
height={350}
/>
</div>
<div className="min-w-0 py-0.5 pr-5">
<div className="min-w-0 py-0.5">
<h1 className="text-xl font-bold leading-loose text-gray-900 sm:text-2xl mb-2">
{props.homepage.title}
</h1>
Expand Down

0 comments on commit 6f64474

Please sign in to comment.