From 069a26f90031ff60a46a331b5f9e1a2eee9646c4 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sun, 15 Oct 2023 19:43:07 +0100 Subject: [PATCH] Improved the responsiveness of the website --- package.json | 2 + src/app/join/page.tsx | 153 ++++----------------------- src/app/page.tsx | 140 +++++------------------- src/app/success/page.tsx | 87 +-------------- src/components/Footer.tsx | 64 +++++++++++ src/components/Navbar.tsx | 182 ++++++++++++++++++++++++++++++++ src/components/PricingTable.tsx | 16 +++ yarn.lock | 14 ++- 8 files changed, 325 insertions(+), 333 deletions(-) create mode 100644 src/components/Footer.tsx create mode 100644 src/components/Navbar.tsx create mode 100644 src/components/PricingTable.tsx diff --git a/package.json b/package.json index 76ac192..70067ee 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ "lint": "next lint" }, "dependencies": { + "@headlessui/react": "^1.7.17", "@stripe/react-stripe-js": "^2.3.1", "@stripe/stripe-js": "^2.1.7", "axios": "^1.5.1", + "clsx": "^2.0.0", "moment": "^2.29.4", "next": "13.5.4", "react": "^18", diff --git a/src/app/join/page.tsx b/src/app/join/page.tsx index b91b76a..e211213 100644 --- a/src/app/join/page.tsx +++ b/src/app/join/page.tsx @@ -1,145 +1,28 @@ -"use client"; - /* eslint-disable @next/next/no-img-element */ -import Image from "next/image"; import Link from "next/link"; -import { - BsBookFill, - BsCardChecklist, - BsClipboardFill, - BsClock, - BsClockFill, - BsFacebook, - BsFillBookFill, - BsInstagram, - BsSearch, - BsShieldFillCheck, - BsTwitter, -} from "react-icons/bs"; +import {BsInstagram, BsTwitter} from "react-icons/bs"; import {BiLogoFacebook} from "react-icons/bi"; -import {PaymentElement} from "@stripe/react-stripe-js"; -import {Elements} from "@stripe/react-stripe-js"; -import {loadStripe} from "@stripe/stripe-js"; - -const stripePromise = loadStripe("pk_test_51NzD5xFI67mXFum2XDMXiLu89SbCAMY5O0RnKjlU6XqyfboRVvFHI3f5OJHaxsrjjB7WqDYqN7Y3eF8mq3sF354F00l30L5GuJ"); +import Navbar from "@/components/Navbar"; +import PricingTable from "@/components/PricingTable"; +import Footer from "@/components/Footer"; export default function Home() { return ( - -