Skip to content

Commit

Permalink
[ISSUE-36] Prettier/eslint errors (#37)
Browse files Browse the repository at this point in the history
* fix: prettier/eslint errors

* rename file to tsx
  • Loading branch information
k1nha authored Aug 29, 2024
1 parent e5c950e commit 2ee267f
Show file tree
Hide file tree
Showing 42 changed files with 1,523 additions and 993 deletions.
18 changes: 9 additions & 9 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
)
}
26 changes: 13 additions & 13 deletions app/octopost/layout.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<html lang="en">
<body className={`${poppins.className} max-h-screen bg-primary-gray`}>
<body className={`${poppins.className} bg-primary-gray max-h-screen`}>
{children}
</body>
</html>
);
)
}
20 changes: 10 additions & 10 deletions app/octopost/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -20,7 +20,7 @@ function Page() {
<JoinUs />
<Footer />
</>
);
)
}

export default Page;
export default Page
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default function Home() {
return (
<main className="bg-blue-400 text-white flex min-h-screen bg-pattern h-screen bg-cover flex-col items-center justify-between p-24">
<div className="text-8xl font-extrabold animate-spin">Devhat</div>
<div className="text-4xl animate-ping duration-1000">Coming soon...</div>
<main className="bg-pattern flex h-screen min-h-screen flex-col items-center justify-between bg-blue-400 bg-cover p-24 text-white">
<div className="animate-spin text-8xl font-extrabold">Devhat</div>
<div className="animate-ping text-4xl duration-1000">Coming soon...</div>
</main>
);
)
}
26 changes: 13 additions & 13 deletions app/petdex/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import "../../styles/globals.css";
import type { Metadata } from "next";
import { Roboto } from "next/font/google";
import React from "react";
import '../../styles/globals.css'
import type { Metadata } from 'next'
import { Roboto } from 'next/font/google'
import React from 'react'

const roboto = Roboto({
subsets: ["latin"],
weight: ["100", "300", "400", "500", "700", "900"],
});
subsets: ['latin'],
weight: ['100', '300', '400', '500', '700', '900'],
})

export const metadata: Metadata = {
title: "Petdex",
title: 'Petdex',
description:
"Bem vindo ao petdex. Clique aqui para saber mais sobre os pets.",
};
'Bem vindo ao petdex. Clique aqui para saber mais sobre os pets.',
}

export default function RootLayout({
children,
}: {
children: React.ReactNode;
children: React.ReactNode
}) {
return (
<html lang="en">
<body className={`${roboto.className} max-h-screen bg-primary-gray`}>
<body className={`${roboto.className} bg-primary-gray max-h-screen`}>
{children}
</body>
</html>
);
)
}
4 changes: 2 additions & 2 deletions app/petdex/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function Page() {
return <h1>Petdex</h1>;
return <h1>Petdex</h1>
}

export default Page;
export default Page
30 changes: 15 additions & 15 deletions components/octopost/About/About.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import AboutLogo from "./assets/AboutLogo";
import AboutLogo from './assets/AboutLogo'
import {
AboutIcons1,
AboutIcons2,
AboutIcons3,
AboutIcons4,
AboutIcons5,
} from "./assets/AboutLogoIcons";
import CloudIcon from "./assets/CloudIcon";
} from './assets/AboutLogoIcons'
import CloudIcon from './assets/CloudIcon'

export default function About() {
return (
<section className="flex mx-48 h-screen bg-white">
<div className=" flex-center w-1/2">
<section className="mx-48 flex h-screen bg-white">
<div className="flex-center w-1/2">
<div className="relative">
<AboutLogo />
<div className="absolute top-36 left-14">
<div className="absolute left-14 top-36">
<AboutIcons1 />
</div>
<div className="absolute top-[278px] left-20">
<div className="absolute left-20 top-[278px]">
<AboutIcons2 />
</div>
<div className="absolute bottom-7 left-48">
Expand All @@ -26,17 +26,17 @@ export default function About() {
<div className="absolute bottom-10 right-[164px]">
<AboutIcons4 />
</div>
<div className="absolute top-56 right-8">
<div className="absolute right-8 top-56">
<AboutIcons5 />
</div>
</div>
</div>
<div className=" max-w-3/5 flex-center ">
<div className="max-w-3/5 flex-center">
<div className="space-y-12">
<h1 className="text-[#a076f9] text-5xl font-extrabold">
<h1 className="text-5xl font-extrabold text-[#a076f9]">
O que é a Octopost?
</h1>
<p className=" text-[#5C5CA0] w-full font-light">
<p className="w-full font-light text-[#5C5CA0]">
Octopost é um app que permite que o usuário faça publicações em
redes sociais all-in-one, mas de forma modular, ou seja, se sua rede
social não está presente ainda no app, não se preocupe, você pode
Expand All @@ -45,21 +45,21 @@ export default function About() {
<div className="flex gap-8">
<div className="">
<CloudIcon />
<p className="text-center primary-text-gradient">
<p className="primary-text-gradient text-center">
Free and Open <br />
Source
</p>
</div>
<div className="hover:bg-white">
<CloudIcon />
<p className="text-center primary-text-gradient">
<p className="primary-text-gradient text-center">
Free and Open <br />
Source
</p>
</div>
<div className="">
<CloudIcon />
<p className="text-center primary-text-gradient">
<p className="primary-text-gradient text-center">
Free and Open <br />
Source
</p>
Expand All @@ -68,5 +68,5 @@ export default function About() {
</div>
</div>
</section>
);
)
}
8 changes: 4 additions & 4 deletions components/octopost/About/assets/AboutLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React from 'react'

function AboutLogo() {
return (
Expand Down Expand Up @@ -203,7 +203,7 @@ function AboutLogo() {
></path>
<mask
id="mask0_242_392"
style={{ maskType: "luminance" }}
style={{ maskType: 'luminance' }}
width="380"
height="381"
x="413"
Expand Down Expand Up @@ -1013,7 +1013,7 @@ function AboutLogo() {
</linearGradient>
</defs>
</svg>
);
)
}

export default AboutLogo;
export default AboutLogo
14 changes: 7 additions & 7 deletions components/octopost/About/assets/AboutLogoIcons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React from 'react'

function AboutIcons1() {
return (
Expand Down Expand Up @@ -36,7 +36,7 @@ function AboutIcons1() {
</linearGradient>
</defs>
</svg>
);
)
}
function AboutIcons2() {
return (
Expand Down Expand Up @@ -74,7 +74,7 @@ function AboutIcons2() {
</linearGradient>
</defs>
</svg>
);
)
}

function AboutIcons3() {
Expand Down Expand Up @@ -113,7 +113,7 @@ function AboutIcons3() {
</linearGradient>
</defs>
</svg>
);
)
}

function AboutIcons4() {
Expand Down Expand Up @@ -152,7 +152,7 @@ function AboutIcons4() {
</linearGradient>
</defs>
</svg>
);
)
}

function AboutIcons5() {
Expand All @@ -174,7 +174,7 @@ function AboutIcons5() {
fill="white"
/>
</svg>
);
)
}

export { AboutIcons1, AboutIcons2, AboutIcons3, AboutIcons4, AboutIcons5 };
export { AboutIcons1, AboutIcons2, AboutIcons3, AboutIcons4, AboutIcons5 }
6 changes: 3 additions & 3 deletions components/octopost/About/assets/CloudIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React from 'react'

function CloudIcon() {
return (
Expand Down Expand Up @@ -368,7 +368,7 @@ function CloudIcon() {
</linearGradient>
</defs>
</svg>
);
)
}

export default CloudIcon;
export default CloudIcon
Loading

0 comments on commit 2ee267f

Please sign in to comment.