From d090fbabd119b2c56bce35408723914b44567b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20Eren?= Date: Thu, 25 Jul 2024 14:23:51 +0300 Subject: [PATCH] fix: website build errors --- .../src/app/components/ContributeSection.tsx | 9 +-- .../src/app/components/DescriptionSection.tsx | 2 +- website/src/app/components/Faq.tsx | 20 +++++-- website/src/app/components/Footer.tsx | 8 +-- website/src/app/components/Navbar.tsx | 12 ++-- .../src/app/components/NavigationLinks.tsx | 7 ++- .../features/DescriptionFeatures.tsx | 60 ++++++++++--------- website/src/app/features/page.tsx | 2 +- 8 files changed, 66 insertions(+), 54 deletions(-) diff --git a/website/src/app/components/ContributeSection.tsx b/website/src/app/components/ContributeSection.tsx index 6833bc76..14c07589 100644 --- a/website/src/app/components/ContributeSection.tsx +++ b/website/src/app/components/ContributeSection.tsx @@ -25,10 +25,11 @@ export function ContributeSection() {

Joyboy is available on iOS, Web and Android. It’s free and open source.

- + See all issues on Github diff --git a/website/src/app/components/DescriptionSection.tsx b/website/src/app/components/DescriptionSection.tsx index 2fd5b9fb..2ceedc74 100644 --- a/website/src/app/components/DescriptionSection.tsx +++ b/website/src/app/components/DescriptionSection.tsx @@ -44,7 +44,7 @@ export function DescriptionSection() { title="Social Payment" description="Tip, pay, and gift your Friends in a Decentralized manner, bring with you a Social graph for Bitcoin & ETH." /> -
- - - - + + + +
); diff --git a/website/src/app/components/Footer.tsx b/website/src/app/components/Footer.tsx index 3a95591e..4c22ef44 100644 --- a/website/src/app/components/Footer.tsx +++ b/website/src/app/components/Footer.tsx @@ -29,9 +29,7 @@ export function Footer() {
- + Joyboy Community Twitter / X {/* */} - + Joyboy Community Telegram
diff --git a/website/src/app/components/Navbar.tsx b/website/src/app/components/Navbar.tsx index 4de13ee9..c6222183 100644 --- a/website/src/app/components/Navbar.tsx +++ b/website/src/app/components/Navbar.tsx @@ -1,11 +1,11 @@ 'use client'; -import React, { useState } from 'react'; -import { createPortal } from 'react-dom'; - -import { MobileNavBar } from './MobileNavBar'; -import { NavigationLinks } from './NavigationLinks'; import Link from 'next/link'; +import React, {useState} from 'react'; +import {createPortal} from 'react-dom'; + +import {MobileNavBar} from './MobileNavBar'; +import {NavigationLinks} from './NavigationLinks'; export function Navbar() { const [toggleNav, setToggleNav] = useState(false); @@ -26,7 +26,7 @@ export function Navbar() { className="flex desktop:hidden" onClick={() => { setToggleNav(true); - window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }); + window.scrollTo({top: 0, left: 0, behavior: 'smooth'}); }} > diff --git a/website/src/app/components/NavigationLinks.tsx b/website/src/app/components/NavigationLinks.tsx index 81526dbf..f588ae97 100644 --- a/website/src/app/components/NavigationLinks.tsx +++ b/website/src/app/components/NavigationLinks.tsx @@ -1,11 +1,12 @@ 'use client'; -import Link from "next/link"; - +import Link from 'next/link'; export function NavigationLinks() { return ( diff --git a/website/src/app/components/features/DescriptionFeatures.tsx b/website/src/app/components/features/DescriptionFeatures.tsx index e96736d4..37a46a88 100644 --- a/website/src/app/components/features/DescriptionFeatures.tsx +++ b/website/src/app/components/features/DescriptionFeatures.tsx @@ -1,32 +1,31 @@ 'use client'; -import { motion } from 'framer-motion'; +import {motion} from 'framer-motion'; -import { Feature } from '../Feature'; +import {Feature} from '../Feature'; export function DescriptionFeatures() { return (

Freedom and Fair place

- - Joyboy grants you access to the social network and payment that a genuinely free and healthy society - necessitates — and merits. + Joyboy grants you access to the social network and payment that a genuinely free and + healthy society necessitates — and merits.

- Absolute Freedom and Ownership + Absolute Freedom and Ownership

- Freedom requires censorship resistance, and Nostr provides exactly that for your Identity, Money, Data & Content. + Freedom requires censorship resistance, and Nostr provides exactly that for your + Identity, Money, Data & Content.

- JoyBoy leverages Nostr’s decentralized and open social network to give you a platform and marketplace of the Content, DeSci, Education. Let's bring positivity and integrity to the world. + JoyBoy leverages Nostr’s decentralized and open social network to give you a platform + and marketplace of the Content, DeSci, Education. Let’s bring positivity and integrity + to the world.

diff --git a/website/src/app/features/page.tsx b/website/src/app/features/page.tsx index 7e068e84..f65ebe96 100644 --- a/website/src/app/features/page.tsx +++ b/website/src/app/features/page.tsx @@ -1,7 +1,7 @@ import {ContributeSection} from '../components/ContributeSection'; +import {DescriptionFeatures} from '../components/features/DescriptionFeatures'; import {Footer} from '../components/Footer'; import {Navbar} from '../components/Navbar'; -import { DescriptionFeatures } from '../components/features/DescriptionFeatures'; export default function Features() { return (