Skip to content
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

style: reduce company logo size on casestudy/[id] page #2728

Merged
merged 14 commits into from
Mar 11, 2024
10 changes: 4 additions & 6 deletions pages/casestudies/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function Index({
wide
>
<div className="max-w-screen lg:flex-row-reverse lg:flex lg:justify-between">
<CaseTOC toc={content} cssBreakingPoint="lg" className="lg:flex-1 bg-blue-100 mt-4 p-4 sticky top-20 overflow-y-auto max-h-screen lg:bg-transparent lg:mt-2 lg:pt-0 lg:pb-8 lg:top-24 lg:max-h-(screen-16) lg:border-l lg:border-gray-200 lg:min-w-[265px] lg:max-w-72 lg:-mr-14" />
<CaseTOC toc={content} cssBreakingPoint="lg" className="lg:flex-1 bg-blue-100 mt-4 p-4 sticky top-20 overflow-y-auto max-h-screen lg:bg-transparent lg:mt-2 lg:pt-0 lg:pb-8 lg:top-24 lg:max-h-(screen-16) lg:border-l lg:border-gray-200 lg:min-w-[265px] lg:max-w-72 lg:-mr-14" />
<div className="px-4 sm:px-6 xl:px-0 lg:flex-1 lg:max-w-[812px] xl:max-w-5xl case-study">
<div className="mt-10 md:mt-20 flex flex-col md:flex-row justify-between items-center">
<div className="w-full md:w-[65%]">
Expand Down Expand Up @@ -189,13 +189,11 @@ function Index({
</Heading>
</div>
</div>
<div className="mt-10 md:mt-0">
<img
<img
src={casestudy.company.logo}
alt={casestudy.company.name}
className="w-[350px] rounded-lg"
className="w-[250px] mt-5 md:mt-0 mx-auto rounded-lg"
/>
</div>
</div>
{renderContent(content, allComponents, 0)}
</div>
Expand All @@ -204,4 +202,4 @@ function Index({
);
}

export default Index;
export default Index;
Loading