Skip to content

Commit

Permalink
Page builder improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Saxena committed Mar 15, 2024
1 parent a8608e3 commit e64e420
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions packages/common-widgets/src/hero/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,24 @@ export default function Widget({
}`}
>
<h2
className={`mb-4 font-bold text-${titleFontSize}xl `}
className={`mb-4 font-bold lg:text-${titleFontSize}xl text-${Math.ceil(
titleFontSize * 0.66,
)}xl`}
>
{title}
</h2>
{description && (
<div
className={`${
descriptionFontSize === 0
? "text-lg"
? "text-base"
: descriptionFontSize === 1
? "text-xl"
: `text-${descriptionFontSize}xl`
? "text-lg lg:text-xl"
: `text-${
descriptionFontSize - 1 === 1
? ""
: descriptionFontSize - 1
}xl lg:text-${descriptionFontSize}xl`
} ${
buttonAction && buttonCaption
? "mb-8"
Expand Down
2 changes: 1 addition & 1 deletion packages/common-widgets/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const verticalPaddingClasses =
const maxWClasses =
"lg:max-w-[1%] lg:max-w-[2%] lg:max-w-[3%] lg:max-w-[4%] lg:max-w-[5%] lg:max-w-[6%] lg:max-w-[7%] lg:max-w-[8%] lg:max-w-[9%] lg:max-w-[10%] lg:max-w-[11%] lg:max-w-[12%] lg:max-w-[13%] lg:max-w-[14%] lg:max-w-[15%] lg:max-w-[16%] lg:max-w-[17%] lg:max-w-[18%] lg:max-w-[19%] lg:max-w-[20%] lg:max-w-[21%] lg:max-w-[22%] lg:max-w-[23%] lg:max-w-[24%] lg:max-w-[25%] lg:max-w-[26%] lg:max-w-[27%] lg:max-w-[28%] lg:max-w-[29%] lg:max-w-[30%] lg:max-w-[31%] lg:max-w-[32%] lg:max-w-[33%] lg:max-w-[34%] lg:max-w-[35%] lg:max-w-[36%] lg:max-w-[37%] lg:max-w-[38%] lg:max-w-[39%] lg:max-w-[40%] lg:max-w-[41%] lg:max-w-[42%] lg:max-w-[43%] lg:max-w-[44%] lg:max-w-[45%] lg:max-w-[46%] lg:max-w-[47%] lg:max-w-[48%] lg:max-w-[49%] lg:max-w-[50%] lg:max-w-[51%] lg:max-w-[52%] lg:max-w-[53%] lg:max-w-[54%] lg:max-w-[55%] lg:max-w-[56%] lg:max-w-[57%] lg:max-w-[58%] lg:max-w-[59%] lg:max-w-[60%] lg:max-w-[61%] lg:max-w-[62%] lg:max-w-[63%] lg:max-w-[64%] lg:max-w-[65%] lg:max-w-[66%] lg:max-w-[67%] lg:max-w-[68%] lg:max-w-[69%] lg:max-w-[70%] lg:max-w-[71%] lg:max-w-[72%] lg:max-w-[73%] lg:max-w-[74%] lg:max-w-[75%] lg:max-w-[76%] lg:max-w-[77%] lg:max-w-[78%] lg:max-w-[79%] lg:max-w-[80%] lg:max-w-[81%] lg:max-w-[82%] lg:max-w-[83%] lg:max-w-[84%] lg:max-w-[85%] lg:max-w-[86%] lg:max-w-[87%] lg:max-w-[88%] lg:max-w-[89%] lg:max-w-[90%] lg:max-w-[91%] lg:max-w-[92%] lg:max-w-[93%] lg:max-w-[94%] lg:max-w-[95%] lg:max-w-[96%] lg:max-w-[97%] lg:max-w-[98%] lg:max-w-[99%] lg:max-w-[100%]";
const fontSize =
"text-lg text-xl text-2xl text-3xl text-4xl text-5xl text-6xl text-7xl text-8xl";
"text-lg text-xl text-2xl text-3xl text-4xl text-5xl text-6xl text-7xl text-8xl lg:text-lg lg:text-xl lg:text-2xl lg:text-3xl lg:text-4xl lg:text-5xl lg:text-6xl lg:text-7xl lg:text-8xl";

export * from "./rich-text";
export * from "./footer";
Expand Down
2 changes: 1 addition & 1 deletion packages/components-library/src/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface LinkProps {
export default function Link({
href,
children,
openInSameTab,
openInSameTab = true,
style,
className = "",
onClick,
Expand Down

0 comments on commit e64e420

Please sign in to comment.