diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..b31f14d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,7 @@ { - "extends": "next/core-web-vitals" -} + "extends": "next", + "rules": { + "react/no-unescaped-entities": "off", + "@next/next/no-page-custom-font": "off" + } +} \ No newline at end of file diff --git a/app/[locale]/globals.css b/app/[locale]/globals.css deleted file mode 100644 index 4e9e1db..0000000 --- a/app/[locale]/globals.css +++ /dev/null @@ -1,60 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -@font-face { - font-family: Estedad-Bold; - src: url(../../public/fonts/Estedad-Bold.ttf); -} - -* { - font-family: Estedad-Bold; -} - -html { - scroll-behavior: smooth; -} - -::-webkit-scrollbar { - width: 10px; -} - -::-webkit-scrollbar-track { - background-color: #1e2022; -} - -::-webkit-scrollbar-thumb { - background-color: #afafb6; - border-radius: 20em; -} - -.sidenav { - height: 100%; - width: 0; - position: fixed; - z-index: 30; - top: 0; - left: 0; - background-color: #111; - overflow-x: hidden; - transition: 0.5s; - padding-top: 60px; -} - -.sidenav .closebtn { - position: absolute; - top: 20px; - right: 30px; - font-size: 36px; - margin-left: 50px; -} - -@media screen and (max-height: 450px) { - .sidenav { - padding-top: 15px; - } - - .sidenav a { - font-size: 18px; - } -} \ No newline at end of file diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx deleted file mode 100644 index e9aead3..0000000 --- a/app/[locale]/layout.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import './globals.css' -import type { Metadata } from 'next' -import { Inter } from 'next/font/google' -import Head from 'next/head' -import { useLocale, useMessages } from 'next-intl'; -import { notFound } from 'next/navigation'; -import { NextIntlClientProvider } from 'next-intl'; - -const inter = Inter({ subsets: ['latin'] }) - -export const metadata: Metadata = { - title: 'Parch', - description: 'Parch Linux os', -} - -export default function RootLayout({ children, params }: { - children: React.ReactNode, params: { locale: string } -}) { - const locale = useLocale(); - const messages = useMessages(); - - // Validate that the incoming `locale` parameter is a valid locale - if (params.locale !== locale) { - notFound(); - } - return ( - - - {/* HTML Meta Tags */} - Parch Linux - - - {/* Facebook Meta Tags */} - - - - - - - {/* Twitter Meta Tags */} - - - - - - - - - - {children} - - - - ) -} \ No newline at end of file diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx deleted file mode 100644 index 8fc4268..0000000 --- a/app/[locale]/page.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import Nav from "@/components/Nav"; -import Main from "@/components/Main"; -import About from "@/components/About"; -import Ability from "@/components/Ability"; -import Footer from "@/components/Footer"; -export default function Home() { - return ( -
-
- ); -} diff --git a/app/favicon.ico b/app/favicon.ico deleted file mode 100644 index 71c86e3..0000000 Binary files a/app/favicon.ico and /dev/null differ diff --git a/components/Ability.tsx b/components/Ability.tsx deleted file mode 100644 index 094c5d7..0000000 --- a/components/Ability.tsx +++ /dev/null @@ -1,290 +0,0 @@ -"use client"; -import { Swiper, SwiperSlide } from "swiper/react"; -import { Autoplay } from "swiper/modules"; -import "swiper/css"; -import "swiper/css/effect-fade"; -import "swiper/css/navigation"; -import "swiper/css/pagination"; -import { useTranslations } from 'next-intl'; - -export default function Ability() { - const t = useTranslations('Index'); - return ( -
- - -
-
- - - - - - - - - - - - - - -

{t("Simple")}

-
-

- {t("SimpleExpanded")} -

-
-
- -
-
- - - - - - - - - -

{t("Privacy")}

-
-

- {t("PrivacyExpanded")} -

-
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -

{t("Fast")}

-
-

- {t("FastExpanded")} -

-
-
- -
-
- - - - - - - - - -

{t("Community")}

-
-

- {t("CommunityExpanded")} -

-
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{t("OpenSource")}

-
-

- {t("OpenSourceExpanded")} -

-
-
-
-
- ); -} diff --git a/components/About.tsx b/components/About.tsx deleted file mode 100644 index 16ed69d..0000000 --- a/components/About.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { useTranslations } from 'next-intl'; -export default function About() { - const t = useTranslations('Index'); - return ( -
-

{t("WhatIs")}

-

- {t("WhatIsExpanded")} -

-

- {t("WhyCall")} -

-

- {t("WhyCallExpanded")} -

-
- ); -} diff --git a/components/Attributes.tsx b/components/Attributes.tsx new file mode 100644 index 0000000..e33304e --- /dev/null +++ b/components/Attributes.tsx @@ -0,0 +1,117 @@ +import Image from 'next/image'; + +export default function Attributes() { + return ( +
+

New industry

+ +
+
+ bottle +
+ + + + + + + + + + +

Simple

+
+

Parch linux uses calamares graphical installer by default which makes it easier for you to install and use it.

+
+
+
+ bottle +
+ + + + + + + + + + +

Privacy

+
+

+ Unlike any other proprietary operating systems, Parch Linux respects your privacy and doesn't collect any information or data from you. +

+
+
+
+ bottle +
+ + + + + + + + + + + + + + + +

Fast

+
+

Parch Linux requires at least 1.5 GB of RAM with xfce desktop and at least 1 GB with lxqt desktop Give your old system a second chance with Parch Linux.

+
+
+
+ bottle +
+ + + + + + + + + + +

Community

+
+

Parch Linux in Telegram has an active community that will quickly solve your problems. If you have a bug or problem, you can report it in the community.

+
+
+
+
+ ); +} diff --git a/components/Footer.tsx b/components/Footer.tsx index 47716dd..6a72dd6 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,154 +1,84 @@ -"use client"; -import Link from "next-intl/link"; -import { useState } from "react"; -import { useTranslations } from 'next-intl'; - export default function Footer() { - const t = useTranslations('Index'); - const [isLangOpen, setIsLangOpen] = useState(false); return ( -