Files
twenty/packages/twenty-website-new/src/sections/Problem/components/Heading/Heading.tsx
T
Abdullah. 3a1e112b86 Fixes and updates to the website. (#19350)
This PR implements a whole lot of fixes and updates to the website. It
adds a release-notes page, terms and conditions page, privacy policy
page, while fixing HomeStepper, ProductStepper, and WhyTwentyStepper. 3D
models still need to be styled and their sizes need to be fixed.
2026-04-06 09:42:30 +02:00

43 lines
907 B
TypeScript

import {
Heading as BaseHeading,
type HeadingProps,
} from "@/design-system/components/Heading/Heading";
import { theme } from "@/theme";
import { css } from "@linaria/core";
import { styled } from "@linaria/react";
const problemHeadingClassName = css`
margin-top: calc(${theme.spacing(2)} - ${theme.spacing(10)});
@media (min-width: ${theme.breakpoints.md}px) {
margin-top: calc(${theme.spacing(2)} - ${theme.spacing(16)});
}
`;
const HeadingWrapper = styled.div`
transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
&:hover {
transform: scale(1.02);
}
`;
export function Heading({
as = "h2",
size = "md",
weight = "light",
...props
}: HeadingProps) {
return (
<HeadingWrapper>
<BaseHeading
className={problemHeadingClassName}
as={as}
size={size}
weight={weight}
{...props}
/>
</HeadingWrapper>
);
}