Skip to content

Commit

Permalink
fixup arch banner spacing; update to h3 to h2; [wip] fixup image
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf committed May 6, 2024
1 parent b067cd6 commit 7b76dde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/components/nodes/pages/summer-course/summer-course-page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Wysiwyg from "@components/elements/wysiwyg";
import {H1, H3} from "@components/elements/headers";
import {H1, H2, H3} from "@components/elements/headers";
import {HtmlHTMLAttributes} from "react";
import Image from "next/image";
import {NodeSumSummerCourse} from "@lib/gql/__generated__/drupal.d";
Expand Down Expand Up @@ -35,7 +35,7 @@ const SummerCoursePage = ({ node, ...props }: Props) => {
{node.title}
</H1>
{node.sumCourseCatalogNumber &&
<H3 className="font-normal">{node.sumCourseCatalogNumber}</H3>
<H2 className="font-normal">{node.sumCourseCatalogNumber}</H2>
}
</div>
</div>
Expand All @@ -44,14 +44,13 @@ const SummerCoursePage = ({ node, ...props }: Props) => {
<div className="order-2 col-span-12 md:col-span-8">
<div className="flex flex-col md:flex-row gap-10 rs-mb-4">
{node.sumCourseImage &&
<div className="relative aspect-1/1 w-full h-[200px] md:w-[500px] md:h-[500px] *:rounded-[25px]">
<div className="relative w-full h-0 aspect-w-1 aspect-h-1">
<Image
className="object-cover"
className="object-cover rounded-[25px]"
src={node.sumCourseImage.mediaImage.url}
alt={node.sumCourseImage.mediaImage.alt || ""}
loading="eager"
fill
sizes="100vw"
sizes="(max-width: 768px) 300px, 500px"
/>
</div>
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/patterns/arch-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ArchBanner = ({imageUrl, imageAlt, eagerLoadImage, isSection, children, ..
</div>

{children &&
<div className="aspect-[2/1] w-[120%] relative flex flex-col items-center rounded-t-full bg-white border-t border-archway-light left-[-10%] pt-[20%] rs-mt-8">
<div className="aspect-2/1 w-[120%] relative flex flex-col items-center rounded-t-full bg-white border-t border-archway-light left-[-10%] pt-[20%] rs-mt-8">
{children}
</div>
}
Expand Down

0 comments on commit 7b76dde

Please sign in to comment.