From 2ee267f99947248ad2d29e24cbcebfd647c9557b Mon Sep 17 00:00:00 2001 From: Lucas Campos <103159762+k1nha@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:59:51 -0300 Subject: [PATCH] [ISSUE-36] Prettier/eslint errors (#37) * fix: prettier/eslint errors * rename file to tsx --- app/layout.tsx | 18 +- app/octopost/layout.tsx | 26 +- app/octopost/page.tsx | 20 +- app/page.tsx | 8 +- app/petdex/layout.tsx | 26 +- app/petdex/page.tsx | 4 +- components/octopost/About/About.tsx | 30 +- .../octopost/About/assets/AboutLogo.tsx | 8 +- .../octopost/About/assets/AboutLogoIcons.tsx | 14 +- .../octopost/About/assets/CloudIcon.tsx | 6 +- components/octopost/Datas/Datas.tsx | 36 +- .../octopost/Datas/assets/CloudIcon.tsx | 2 +- components/octopost/Faq/Accordion.tsx | 80 +- components/octopost/Faq/Faq.tsx | 16 +- components/octopost/Faq/assets/FaqLogo.tsx | 2 +- components/octopost/Faq/assets/MinusIcon.tsx | 2 +- components/octopost/Faq/assets/PlusIcon.tsx | 2 +- components/octopost/Footer/Footer.tsx | 40 +- .../octopost/Footer/assets/InputIcon.tsx | 2 +- .../octopost/Footer/assets/inputWhatsIcon.tsx | 6 +- components/octopost/Hero/Hero.tsx | 42 +- components/octopost/Hero/assets/HeroImg.tsx | 4 +- .../octopost/Hero/assets/StickerLogo1.tsx | 2 +- .../octopost/Hero/assets/StickerLogo2.tsx | 2 +- .../octopost/Hero/assets/WaveAnimation.tsx | 106 +- components/octopost/Hero/assets/socials.tsx | 16 +- .../octopost/Hero/{waves.js => waves.tsx} | 12 +- components/octopost/JoinUs/JoinUs.tsx | 122 +- .../octopost/JoinUs/assets/JoinUsLogo.tsx | 2 +- components/octopost/Navbar/Navbar.tsx | 65 +- components/octopost/Navbar/assets/Logo.tsx | 4 +- components/octopost/Works/Card.tsx | 147 +-- components/octopost/Works/Works.tsx | 182 +-- .../Works/assets/ ColorfulEllipse.tsx | 49 +- components/octopost/Works/assets/Bubble.tsx | 1031 +++++++++++------ .../octopost/Works/assets/CloudIcon.tsx | 90 +- .../octopost/Works/assets/ColorfulCloud.tsx | 132 ++- components/octopost/Works/assets/Ellipse.tsx | 25 +- .../octopost/Works/assets/VectorLeft.tsx | 51 +- .../octopost/Works/assets/VectorRight.tsx | 46 +- components/octopost/Works/utils/Cards.ts | 32 +- lib/utils.ts | 6 +- 42 files changed, 1523 insertions(+), 993 deletions(-) rename components/octopost/Hero/{waves.js => waves.tsx} (77%) diff --git a/app/layout.tsx b/app/layout.tsx index f844040..b59709b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,22 +1,22 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; -import "../styles/globals.css"; +import type { Metadata } from 'next' +import { Inter } from 'next/font/google' +import '../styles/globals.css' -const inter = Inter({ subsets: ["latin"] }); +const inter = Inter({ subsets: ['latin'] }) export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; + title: 'Create Next App', + description: 'Generated by create next app', +} export default function RootLayout({ children, }: Readonly<{ - children: React.ReactNode; + children: React.ReactNode }>) { return ( {children} - ); + ) } diff --git a/app/octopost/layout.tsx b/app/octopost/layout.tsx index 4948bf3..a62b5f7 100644 --- a/app/octopost/layout.tsx +++ b/app/octopost/layout.tsx @@ -1,29 +1,29 @@ -import "../../styles/globals.css"; -import type { Metadata } from "next"; -import { Poppins } from "next/font/google"; -import React from "react"; +import '../../styles/globals.css' +import type { Metadata } from 'next' +import { Poppins } from 'next/font/google' +import React from 'react' const poppins = Poppins({ - subsets: ["latin"], - weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], -}); + subsets: ['latin'], + weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'], +}) export const metadata: Metadata = { - title: "Octopost", + title: 'Octopost', description: - "A octo te leva para um mergulho em todas suas redes em um click", -}; + 'A octo te leva para um mergulho em todas suas redes em um click', +} export default function RootLayout({ children, }: { - children: React.ReactNode; + children: React.ReactNode }) { return ( - + {children} - ); + ) } diff --git a/app/octopost/page.tsx b/app/octopost/page.tsx index 4f06b89..87b44a3 100644 --- a/app/octopost/page.tsx +++ b/app/octopost/page.tsx @@ -1,11 +1,11 @@ -import About from "@/components/octopost/About/About"; -import Datas from "@/components/octopost/Datas/Datas"; -import Faq from "@/components/octopost/Faq/Faq"; -import Hero from "@/components/octopost/Hero/Hero"; -import Navbar from "@/components/octopost/Navbar/Navbar"; -import JoinUs from "@/components/octopost/JoinUs/JoinUs"; -import Works from "@/components/octopost/Works/Works"; -import Footer from "@/components/octopost/Footer/Footer"; +import About from '@/components/octopost/About/About' +import Datas from '@/components/octopost/Datas/Datas' +import Faq from '@/components/octopost/Faq/Faq' +import Hero from '@/components/octopost/Hero/Hero' +import Navbar from '@/components/octopost/Navbar/Navbar' +import JoinUs from '@/components/octopost/JoinUs/JoinUs' +import Works from '@/components/octopost/Works/Works' +import Footer from '@/components/octopost/Footer/Footer' function Page() { return ( @@ -20,7 +20,7 @@ function Page() {