Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Header = ({
return (
<header className={`z-50 flex flex-col items-center md:items-start md:gap-6 ${className}`}>
<h1
className={`flex flex-wrap items-center md:items-center md:justify-start my-6 text-3xl font-bold ${
className={`flex flex-wrap items-center justify-center md:items-center md:justify-start my-6 text-3xl font-bold ${
darkBackground ? "text-slate-50" : "text-gray-800"
} md:my-6 lg:my-4 dark:text-white md:text-5xl lg:text-5xl xl:text-6xl 2xl:text-8xl`}
>
Expand Down
25 changes: 12 additions & 13 deletions src/pages/Tiers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,24 @@ const Tiers = ({ setTier }) => {
}, []);

return (
<div className="relative flex flex-col flex-grow gap-6 overflow-hidden lg:flex-row bg-slate-700 opacity-90 lg:items-center md:justify-center md:mt-0 lg:gap-0">
<div className="z-40 flex flex-col gap-4 my-8 md:text-start md:my-16 lg:my-0 lg:ml-24 lg:-mr-24 basis-1/2">
<div>
<Header
text="Offset your"
highlightedText="CO2 emissions"
caption={
"The most important step you can take is to reduce your plastic footprint. For those who wish to do more, you can offset the CO2 emissions originating from the plastic you use."
}
darkBackground={true}
/>
</div>
<div className="relative flex flex-col flex-grow gap-6 pb-8 md:overflow-hidden lg:flex-row bg-slate-700 opacity-90 lg:items-center md:justify-center md:mt-0 lg:gap-0">
<div className="z-40 flex flex-col gap-4 my-8 md:text-start md:my-16 lg:my-0 lg:ml-24 lg:-mr-24 md:basis-1/2">
<Header
text="Offset your"
highlightedText="CO2 emissions"
caption={
"The most important step you can take is to reduce your plastic footprint. For those who wish to do more, you can offset the CO2 emissions originating from the plastic you use."
}
darkBackground={true}
className="md:items-center lg:items-start"
/>
<Link to={"/faq"}>
<p className="font-bold text-center underline underline-offset-4 md:mt-8 lg:mt-0 lg:text-start text-emerald-500">
Where your money goes
</p>
</Link>
</div>
<section className="z-40 flex flex-col items-center h-screen gap-8 overflow-y-scroll snap-y md:px-16 lg:p-14 xl:p-32 basis-full md:gap-8 md:basis-full lg:basis-1/2">
<section className="z-40 flex flex-col items-center h-screen gap-8 overflow-y-scroll snap-y md:px-16 lg:p-14 xl:p-32 basis-full md:gap-8 md:basis-full lg:basis-3/4">
{data &&
tierCardData.map((tier) => {
return (
Expand Down