Updated with responsive typography
This commit is contained in:
@@ -39,7 +39,7 @@ export const Polaroid: React.FC<Props> = ({ title, imageSrc, rotation }) => {
|
|||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span ref={ref} className="text-2xl font-semibold">
|
<span ref={ref} className="font-semibold text-r-lg">
|
||||||
{title}
|
{title}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,14 +13,12 @@ export const ProjectDescription: React.FC<Props> = ({
|
|||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className="max-w-4xl text-black">
|
<div className="max-w-4xl text-black">
|
||||||
<h3 className="text-3xl font-semibold">{title}</h3>
|
<h3 className="font-semibold text-r-xl">{title}</h3>
|
||||||
<Separator.Root
|
<Separator.Root
|
||||||
className={`${color} my-2 h-1 w-full rounded-full`}
|
className={`${color} my-2 h-1 w-full rounded-full`}
|
||||||
decorative
|
decorative
|
||||||
/>
|
/>
|
||||||
<p className="text-base leading-relaxed md:text-lg lg:text-xl">
|
<p className="leading-relaxed text-r-base">{children}</p>
|
||||||
{children}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,14 +15,6 @@ const Home: NextPage = () => {
|
|||||||
</Head>
|
</Head>
|
||||||
<>
|
<>
|
||||||
<Hero />
|
<Hero />
|
||||||
<div className="">
|
|
||||||
<p className="text-r-3xl">48px: h1</p>
|
|
||||||
<p className="text-r-2xl">40px: h2</p>
|
|
||||||
<p className="text-r-xl">32px: h3</p>
|
|
||||||
<p className="text-r-lg">24px: h4, header, polaroid, button</p>
|
|
||||||
<p className="text-r-base">20px: h5, body</p>
|
|
||||||
<p className="text-r-sm">16px: h6</p>
|
|
||||||
</div>
|
|
||||||
{/* <Services /> */}
|
{/* <Services /> */}
|
||||||
<Projects />
|
<Projects />
|
||||||
{/* <About /> */}
|
{/* <About /> */}
|
||||||
@@ -53,14 +45,14 @@ const Hero = () => {
|
|||||||
const Projects = () => {
|
const Projects = () => {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<h2 className="text-center text-4xl font-extrabold text-black">
|
<h2 className="my-10 text-center font-extrabold text-black text-r-2xl md:mt-16">
|
||||||
Here are some of our past projects
|
Here are some of our past projects
|
||||||
</h2>
|
</h2>
|
||||||
<div className="py-20 [&>*:nth-child(odd)]:md:flex-row">
|
<div className="pb-20 [&>*:nth-child(odd)]:md:flex-row">
|
||||||
{projects.map((p) => (
|
{projects.map((p) => (
|
||||||
<div
|
<div
|
||||||
key={p.title}
|
key={p.title}
|
||||||
className="my-20 flex flex-col items-center gap-x-12 gap-y-6 md:my-0 md:flex-row-reverse"
|
className="mb-10 flex flex-col items-center gap-x-12 gap-y-6 md:flex-row-reverse lg:my-0"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<Polaroid
|
<Polaroid
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export default {
|
|||||||
padding: "1.5rem",
|
padding: "1.5rem",
|
||||||
},
|
},
|
||||||
fontSize: {
|
fontSize: {
|
||||||
xs: ["0.75rem", { lineHeight: "1rem" }], // 12px 0.75rem
|
xs: ["0.875rem", { lineHeight: "1rem" }], // 14px 0.875rem
|
||||||
sm: ["1rem", { lineHeight: "1.25rem" }], // 16px 1rem
|
sm: ["1rem", { lineHeight: "1.25rem" }], // 16px 1rem
|
||||||
base: ["1.25rem", { lineHeight: "1.5rem" }], // 20px 1.25rem
|
base: ["1.25rem", { lineHeight: "1.5rem" }], // 20px 1.25rem
|
||||||
lg: ["1.5rem", { lineHeight: "1.75rem" }], // 24px 1.5rem
|
lg: ["1.5rem", { lineHeight: "1.75rem" }], // 24px 1.5rem
|
||||||
|
|||||||
Reference in New Issue
Block a user