Skip to content

Commit

Permalink
Add Sponsor section
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRagstad committed Aug 7, 2024
1 parent 6746166 commit 90736b6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/components/Sponsor.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { motion } from "framer-motion";

import people from "../assets/images/stargazers/metrics.plugin.people.repository.svg";
import { CheckArrowIcon } from "../assets/icons/CheckArrowIcon";

export const Sponsor = () => {
return (
<section
className="w-full bg-bgDark2 pt-24 -mt-8 mb-8 sm:-mt-8 sm:mb-24 xl:-mt-8 2xl:mt-0 md:pt-[12vw] lg:pt-16"
id="features"
>
<motion.div
initial={{ opacity: 0 }}
whileInView={{ opacity: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.2 }}
>
<div className="flex flex-wrap items-center 2xl:w-[1450px] xl:w-[1300px] w-11/12 mx-auto md:pl-4 xl:pr-16 xl:pl-16">
<div className="w-full lg:w-1/2 mb-12 lg:mb-0">
<div className="mx-auto lg:mx-auto w-11/12 sm:w-4/5 md:w-3/4 lg:w-unset">
<span className="block-subtitle">Support the Project</span>
<h2 className="mt-6 mb-8 text-4xl lg:text-5xl block-big-title">
<span className="rainbow-text-gradient font-extrabold">Sponsor</span> Web X
</h2>
<p className="mb-10 text-secondaryText leading-loose">
The Web X project is maintained by a team of hard-working dedicated developers.
Your sponsorship and donations helps us keep the project alive and ensures continued delivery of high-quality software to our users.
</p>
<iframe src="https://github.com/sponsors/webx-net/card" title="Sponsor webx-net" className="w-full h-60 xs:h-36 lg:h-52 xl:h-fit" style={{ border: 0, borderRadius: '8px' }}></iframe>
</div>
</div>
<div className="mx-auto lg:w-1/2 max-w-[500px] flex flex-wrap lg:-mx-4 sm:pr-8 justify-center lg:pl-4 xl:px-8">
<div className="mb-8 lg:mb-0 w-full px-2 lg:px-0">
<img src={people.src} alt="Feature image 5" className="rounded-xl h-full w-full" />
</div>
</div>
</div>
</motion.div>
</section>
);
};
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Features2 } from "../components/Features2.jsx";
import { Testimonials } from "../components/Testimonials.jsx";
import { FeaturesDiagonal } from "../components/FeaturesDiagonal.jsx";
import { Pricing } from "../components/Pricing.jsx";
import { Sponsor } from "../components/Sponsor.jsx";
import { FAQ } from "../components/FAQ.jsx";
import { Brands } from "../components/Brands.jsx";
import { Blog } from "../components/Blog";
Expand All @@ -25,6 +26,7 @@ import "../styles/Diagonals.css";
<!-- <Pricing client:load /> -->
<Testimonials client:load />
<Brands client:load />
<Sponsor client:load />
<!-- <Blog client:load /> -->
<FAQ client:load />
<Footer />
Expand Down

0 comments on commit 90736b6

Please sign in to comment.