centering features
This commit is contained in:
@@ -8,8 +8,8 @@ const Features: React.FC<
|
||||
}>
|
||||
> = ({ title, description, cta, children }) => {
|
||||
return (
|
||||
<section className="py-32 px-4">
|
||||
<div className="container flex flex-col gap-16 lg:px-16">
|
||||
<section className="py-32 px-4 container self-center">
|
||||
<div className="flex flex-col gap-16 lg:px-16">
|
||||
<div className="lg:max-w-sm">
|
||||
<h2 className="mb-3 text-xl font-semibold md:mb-4 md:text-4xl lg:mb-6">
|
||||
{title}
|
||||
@@ -43,7 +43,7 @@ export const FeatureItem: React.FC<
|
||||
}>
|
||||
> = ({ title, children, image, position }) => {
|
||||
const _image = () => (
|
||||
<div className="md:min-h-[24rem] lg:min-h-[28rem] xl:min-h-[32rem]">
|
||||
<div className="md:min-h-[18rem] lg:min-h-[24rem] xl:min-h-[28rem]">
|
||||
<img
|
||||
src={image}
|
||||
alt={title}
|
||||
@@ -61,7 +61,7 @@ export const FeatureItem: React.FC<
|
||||
);
|
||||
return (
|
||||
<div
|
||||
className={`flex ${position === "left" ? "flex-col" : "flex-col-reverse"} overflow-clip rounded-xl border border-border md:col-span-2 md:grid md:grid-cols-2 md:gap-6 lg:gap-8`}
|
||||
className={`flex ${position === "left" ? "flex-col" : "flex-col-reverse"} container self-center overflow-clip rounded-xl border border-border md:col-span-2 md:grid md:grid-cols-2 md:gap-6 lg:gap-8`}
|
||||
>
|
||||
{position === "left" ? (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user